Stop criteria in CFX
Is it possible to set a convergence criteria to stop once it has reached an asymptotic limit ?
Thank you very much for your help |
Quote:
|
Yes, but how do we take into account the previous iteration in a expression ?
For example, if I want to stop the convergence when: Qte,max-Qte,min < 1% during twenty iterations ? Quote:
|
Quote:
1. quantity value becomes close enought to target value 2. its time derivative -> 0. In this case there's no problem to implement such condition using if-CEL expression, for example: if((abs(quantity - target) < eps1) && abs(quantity.dt) < eps2,1,0) |
Sorry, but I don't understand how work the Interrupt Control Conditions in CFX !
Where and how I have to write the logical expression ? In the tab ''Expressions'' or in ''Logical Expression'' of the tab ''Solver Control'' ? What am I supposed to write in ''Logical Expression'' of the tab ''Solver Control'' ? I would like that the solver stops when the imbalance of mass flow is below a certain level. So I have the expression following: if(Imbalance < 10^-4, 1,0). Quote:
|
MyImbalance = abs(massFlow()@MyInlet - massFlow()@MyOutlet)
Logical Expression = if(MyImbalance < 10^-4 [kg s^-1], 1,0) Hope the above helps, |
Quote:
Anyway, interrupt conditions are set inside Solver Control on Basic Settings tab (look for 'Interrupt Control' checkbox). |
Yes, it is possible to do it so. Check "ANSYS CFX Solver Modeling Guide". A section called "Using Interrupt Control in Cases with Transient Convergence Behavior" describes how you can do it.
|
All times are GMT -4. The time now is 20:16. |