Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

Numerical derivative

Please login with a confirmed email address before reporting spam

Hi,

I am using a scalar variable f(T) in a transient heat transfer model. Since the model is transient, T is dependent on time. How can I calculate the derivative df/dt (numerically or analytically)?
I need to know the derivative df/dt, since I want to specify another function g(df/dt).
Thanks in advance

Ivan

3 Replies Last Post Dec 3, 2010, 1:26 a.m. EST
Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Dec 2, 2010, 1:30 a.m. EST
Hi

in 4.1 check the doc about the "prev()" operator. Do an indexed search on the pdf doc.
I notice that 90% of the replies on the forum can be solved by a quick search on the pdf doc.
I find too that the doc are dense and one need to read them several times, but in fact about everything is in there (for 3.5a =< doc >= 4.1 ;)

--
Good luck
Ivar
Hi in 4.1 check the doc about the "prev()" operator. Do an indexed search on the pdf doc. I notice that 90% of the replies on the forum can be solved by a quick search on the pdf doc. I find too that the doc are dense and one need to read them several times, but in fact about everything is in there (for 3.5a =< doc >= 4.1 ;) -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Dec 2, 2010, 1:30 p.m. EST
Hi,

I am currently using v3.5, there the prev() command is not available. I tried the diff() command, but that one holds only if there is an explicit dependence on time.

Best
Ivan
Hi, I am currently using v3.5, there the prev() command is not available. I tried the diff() command, but that one holds only if there is an explicit dependence on time. Best Ivan

Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Dec 3, 2010, 1:26 a.m. EST
Hi

indeed v4 has among many other improvements the prev() operator.

I have decided currently to use the v4.1 for "serious/client" work, and have decided to forget 3.5a. The main issue I still have is the lack of a "summary report", but by doing a file reset and save the model as a ".m" file I have a readable trace (for me), apart that my clients are not able to understand it ;)

--
Good luck
Ivar
Hi indeed v4 has among many other improvements the prev() operator. I have decided currently to use the v4.1 for "serious/client" work, and have decided to forget 3.5a. The main issue I still have is the lack of a "summary report", but by doing a file reset and save the model as a ".m" file I have a readable trace (for me), apart that my clients are not able to understand it ;) -- Good luck Ivar

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.