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.

Evaluate variable for a specific time during solving

Please login with a confirmed email address before reporting spam

Hello everybody,

I had an idea this morning, but I could not find anything in the documentation, that this would be possible. Is it possible to store the value of a specific time during solving into another variable, that does not change for the further solving process, e. g. to simulate the thermal strain of a material, that is heaten until a certain time and then cools down? At the end of the heating phase, I want to evaluate the temperature to become it the new reference temperature for my material.
I thought, this could be a workaround for my plasticity problem: www.comsol.de/community/forums/general/thread/26467/ In that model I use two study steps with two different heat transfer modules. The second one uses the temperature distribution at the end of the heating phase of the first one as initial values and then it is used as new reference temperature for the thermal strain, but that way always something goes wrong with the plasticity variables. If I was able to store the new reference temperature in a new variable and put everything in one study step, it could be a solution for the initial strain value problem, I think.

7 Replies Last Post 2012年3月1日 GMT-5 15:01

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2012年2月29日 GMT-5 10:32
Check table 3-3 in the Comsol multiphysics users guide, operators such as 'at', 'with' and 'prev'. should help you with what you want.

-Jaap
Check table 3-3 in the Comsol multiphysics users guide, operators such as 'at', 'with' and 'prev'. should help you with what you want. -Jaap

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2012年2月29日 GMT-5 10:37
I read that chapter of the user's guide, but there was mentioned that those operators could only be used during the results evaluation and not for model setup and that the prev operator would only work for the time-discret solver. That is why I am asking, if there is a trick or something.
I read that chapter of the user's guide, but there was mentioned that those operators could only be used during the results evaluation and not for model setup and that the prev operator would only work for the time-discret solver. That is why I am asking, if there is a trick or something.

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 2012年2月29日 GMT-5 11:18
Hi

i have also understood that those are to be used during postprocessing, as a few others. for time derivatives one need to define a new global equation and variable see the KB (Knowledge Base

--
Good luck
Ivar
Hi i have also understood that those are to be used during postprocessing, as a few others. for time derivatives one need to define a new global equation and variable see the KB (Knowledge Base -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2012年2月29日 GMT-5 11:26
Thanks for your reply, but I just don't understand what you mean. :-)
Thanks for your reply, but I just don't understand what you mean. :-)

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 2012年2月29日 GMT-5 13:32
Hi

I understand, te web ate up the end of my answer ;)

I was thinking of methods based on
www.comsol.eu/support/knowledgebase/913/
www.comsol.eu/support/knowledgebase/1101/
+ one more that I couldn t find back

Then to constrain this new variable in its equation.

But I might have missed your problem ;)

If you are looking for ways in stationary to prestress material w.r.t. different temperatures, based on their respective theal expansion, you can also play with the Linear material node "zero strain temperature" for the different materials.

--
Good luck
Ivar
Hi I understand, te web ate up the end of my answer ;) I was thinking of methods based on http://www.comsol.eu/support/knowledgebase/913/ http://www.comsol.eu/support/knowledgebase/1101/ + one more that I couldn t find back Then to constrain this new variable in its equation. But I might have missed your problem ;) If you are looking for ways in stationary to prestress material w.r.t. different temperatures, based on their respective theal expansion, you can also play with the Linear material node "zero strain temperature" for the different materials. -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2012年2月29日 GMT-5 16:41
Thanks, but that is not what I'm looking for. Let's say, I solve a time dependent problem for 10 seconds. For the last 6 seconds I want to do time dependent computations, that depend on a variable value of t = 4s. I think it is not that easy like "T(4s)".
Thanks, but that is not what I'm looking for. Let's say, I solve a time dependent problem for 10 seconds. For the last 6 seconds I want to do time dependent computations, that depend on a variable value of t = 4s. I think it is not that easy like "T(4s)".

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 2012年3月1日 GMT-5 15:01
Hi

in v4.2a you have the prev() operator, but it does not count in "time" but in steps w.r.t current. See UsersGuide 4.2a p119. Also search for special operators

But I have never used it myself

--
Good luck
Ivar
Hi in v4.2a you have the prev() operator, but it does not count in "time" but in steps w.r.t current. See UsersGuide 4.2a p119. Also search for special operators But I have never used it myself -- 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.