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.

Time derivative of a scalar expression?

Please login with a confirmed email address before reporting spam

Hi

I am trying to calculate the time derivative of a variable that is defined in the scalar expression. I have the box "include time derivatives" checked under "output" tab in solver manager and it does give me all the time derivatives of the primitive variables but doesn't work for the variable under scalar expression. Can anyone please help me with this? Thanks.

-Gunjan.

3 Replies Last Post Nov 10, 2009, 1:55 p.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: 2 decades ago Oct 30, 2009, 3:39 a.m. EDT
Hi

I have not understood that COMSOL would provide you internally with time derivatives for other than the usual variables, I expect that you must make your time derivative yourself for "user" variables by manipulating the time sequence

but if you find another way, and if you have a nice piece of code, pls post it here so we coul all learn

Good luck
Ivar
Hi I have not understood that COMSOL would provide you internally with time derivatives for other than the usual variables, I expect that you must make your time derivative yourself for "user" variables by manipulating the time sequence but if you find another way, and if you have a nice piece of code, pls post it here so we coul all learn Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 2 decades ago Nov 2, 2009, 10:40 a.m. EST
Dear Gunjan,
maybe you can set your variable as part of a global equation (see Physics/Global equations) and then solve your problem togheter with the global equation.
Comsol manuals contain a lot of examples about the use of global equations.
I hope this help.

Alessandro
Dear Gunjan, maybe you can set your variable as part of a global equation (see Physics/Global equations) and then solve your problem togheter with the global equation. Comsol manuals contain a lot of examples about the use of global equations. I hope this help. Alessandro

Please login with a confirmed email address before reporting spam

Posted: 2 decades ago Nov 10, 2009, 1:55 p.m. EST
I tried few different things including the global equation section but no luck so far. So temporarily I am using the analytical solution of the time derivatives until I can come up with something different. It's working but still having some minor troubles. Will keep posted. Thanks a lot for your comments and ideas.

-G
I tried few different things including the global equation section but no luck so far. So temporarily I am using the analytical solution of the time derivatives until I can come up with something different. It's working but still having some minor troubles. Will keep posted. Thanks a lot for your comments and ideas. -G

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.