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.

Stop condition

Please login with a confirmed email address before reporting spam

Hi all

I am running a time-depedent heat transfer simulation. I want to stop the simulation when the average temperature is higher than 310K. i defined Tm as the average temperature in the domain. I used the stop condition: 1-mod1.Tm>310 [K], and tried to terminate the simulation when the condition was fulfilled. But it didn't work. Could anyone suggest any solutions? Thanks a lot.


2 Replies Last Post 25 ott 2012, 10:25 GMT-4
Nagi Elabbasi Facebook Reality Labs

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 25 ott 2012, 08:17 GMT-4
You need brackets to evaluate the comparison before the subtraction, and you need to make the expression negative for stopping. Try this: 0.5-(mod1.Tm>310 [K]) or even simpler this: mod1.Tm-310[K].
You need brackets to evaluate the comparison before the subtraction, and you need to make the expression negative for stopping. Try this: 0.5-(mod1.Tm>310 [K]) or even simpler this: mod1.Tm-310[K].

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 25 ott 2012, 10:25 GMT-4
thanks a lot. it is solved.
thanks a lot. it is solved.

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.