In a transient simulation you may want to stop the solver when one goal reaches a specific value. This article describes how we can monitor different goals at the same time and stop the simulation when only one of those goals reaches a certain value.
In the "Finishing" tab from the "Calculation control options" we can define the condition or conditions that will be considered to stop the calculation, such as goals convergence, physical time, or number of iterations. If we want to stop the solver when one single goal reaches a specific value, then we have to activate the "Goal Convergence" finish condition. For the "Criterion to stop", “one satisfied” doesn’t mean that the simulation will stop if only one goal criteria is satisfied, it means that the goals convergence is the only criterion.
Let's consider a case when we create three different volume goals to monitor the maximum temperature of three different components. If we want to stop the calculation when only one of these goals reaches a specific value, we can proceed with the following procedure:
IF((({VG T1 Max}>{T1_LimitTemp})OR({VG T2 Max}>{T2_LimitTemp})OR({VG T3 Max}>{T3_LimitTemp}));2;0)
This formula means that the “FinishCond” parameter will change from 0 to 2 if one of the created goals values is higher than the defined limit temperature value. For the formula creation you can use the “Parameter” and “Goal” buttons to add the goals and parameters to the formula definition: