-
-
August 13, 2026 at 2:56 pm
Eduardo Miranda
SubscriberHello everybody!
 Recently i've research on how to auto stop a simulation when a specific value is reached and didn't find any easy way to do that. Some UDFs options were presented but seem too complicated.
 I found a work around using named expressions, Report definitions and Convergence conditions that goes:
1° Set a Report definition of the region you want to monitor (in my case is the copper surface temperature)
Â
2° Set a Named expression to output a constant value when the target value is reached and the original value if not. This is the work around to use in the 4° step convergence condition.
-Â Â Â Expression used: IF((1355[K]-{copper-surface})>0[K],{copper-surface},1355[K])
(The constant value of 1355 I used was the desired value to don't mess with the graph)
Â
3° Set a Expression Report Definition using 'new -> expression' with the named Named Expression set in 2° step
4° Set a Convergence Condition using the Named Expression of step 3° in Report Definition and a stop criteria of 0,001 or lessÂ
That's it! Hope to be useful for someone else! :D
I couldn't upload prints to help the visualization :/
Any doubts I will be glad to answer! -
August 13, 2026 at 3:18 pm
Rob
Channel PartnerThanks. We're working on that, so please try posting images another time.Â
-
- You must be logged in to reply to this topic.
-
6880
-
1906
-
1544
-
1344
-
1217
© 2026 Copyright ANSYS, Inc. All rights reserved.