Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

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.

Prev in Time Dependent Study

Please login with a confirmed email address before reporting spam

Hello,

I am solving a time dependent Non-Isothermal Flow problem. I need a way to generate a delta T value during processing. In other words, I need a way to access the value of T from the previous time step and use it to calculate a variable, while the problem is being solved..

Is there any sort of prev(T,1) ability for a time-dependent study?

Thank you for your help!

5 Replies Last Post 28 sept. 2012, 08:21 UTC−4

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 27 sept. 2012, 08:25 UTC−4
If anybody has any tips for running a time discrete solver model that may help as well.

But there has to be a way to access a previous time step value of a dependent variable during processing. The values are saved because I can view them in post processing.
If anybody has any tips for running a time discrete solver model that may help as well. But there has to be a way to access a previous time step value of a dependent variable during processing. The values are saved because I can view them in post processing.

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 27 sept. 2012, 09:43 UTC−4
Hi

you have this reference, old but still valid www.comsol.eu/support/knowledgebase/1042/

but also check "Help " Operators - Special Operators prev() (or BDF if applicable)

You can also search on the FORUM, it has been discussed several times ;)

--
Good luck
Ivar
Hi you have this reference, old but still valid http://www.comsol.eu/support/knowledgebase/1042/ but also check "Help " Operators - Special Operators prev() (or BDF if applicable) You can also search on the FORUM, it has been discussed several times ;) -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 27 sept. 2012, 10:25 UTC−4

Hi

you have this reference, old but still valid www.comsol.eu/support/knowledgebase/1042/

but also check "Help " Operators - Special Operators prev() (or BDF if applicable)

You can also search on the FORUM, it has been discussed several times ;)

--
Good luck
Ivar


Hi Ivar,

Thank you for the reply. I searched the forum but could not find anything useful for a time-dependent solver. I may have found a work around, however.

I set the time step to be strictly 0.01s (this may change if I find it is not accurate enough) and use the Tt value (slope of Temperature at that time step). By multiplying 0.01 [s] by Tt, this should give delta T for the last time step.

Does this make sense to you? At first glance it seems to be returning correct delta T values, but more investigation is needed before I can say definitively.
[QUOTE] Hi you have this reference, old but still valid http://www.comsol.eu/support/knowledgebase/1042/ but also check "Help " Operators - Special Operators prev() (or BDF if applicable) You can also search on the FORUM, it has been discussed several times ;) -- Good luck Ivar [/QUOTE] Hi Ivar, Thank you for the reply. I searched the forum but could not find anything useful for a time-dependent solver. I may have found a work around, however. I set the time step to be strictly 0.01s (this may change if I find it is not accurate enough) and use the Tt value (slope of Temperature at that time step). By multiplying 0.01 [s] by Tt, this should give delta T for the last time step. Does this make sense to you? At first glance it seems to be returning correct delta T values, but more investigation is needed before I can say definitively.

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 27 sept. 2012, 11:17 UTC−4
Hi

I cannot really say which is best, as what you are doing is not something I have done so far (prev() operators),
To date, I have always managed with only the old "3.5 way" that works also in v4 ;)

--
Good luck
Ivar
Hi I cannot really say which is best, as what you are doing is not something I have done so far (prev() operators), To date, I have always managed with only the old "3.5 way" that works also in v4 ;) -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 28 sept. 2012, 08:21 UTC−4
An update to my solution: I found in the documentation that you can use the variable "timestep" which holds the value of the current timestep the solver is taking.

So to find my delta Temperature, I multiplied the slope of Temperature at the current timestep, Tt, by the variable "timestep" which should provide a delta value.
An update to my solution: I found in the documentation that you can use the variable "timestep" which holds the value of the current timestep the solver is taking. So to find my delta Temperature, I multiplied the slope of Temperature at the current timestep, Tt, by the variable "timestep" which should provide a delta value.

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.