CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Logical Expression Interupt Control (https://www.cfd-online.com/Forums/cfx/128541-logical-expression-interupt-control.html)

JuPa January 15, 2014 06:25

Logical Expression Interupt Control
 
Hi,

I have defined a new dimensionless variable called Tstar. I am monitoring Tstar at various points in the domain whilst the simulation is running.

I would like to set an interupt control which tells CFX to stop the simulation when Tstar > 0 at a particular point of my choice.

Is there a way to do this using CEL and not user Fortran? If user Fortran is the only way then do you invisage it being simple to implement?

Something along the lines of

If
Tstar > 0 @ Monitor Point 6 then stop
End if

Thanks

Lance January 15, 2014 10:10

Im not sure you can do that with CEL. Have you tried:
if(probe(Tstar)@MyMonitor > 0,1,0) ? (MyMontior being the name of the montitor)

If that wont work you might be able to create a source point and go with
if(probe(Tstar)@Source Point 1 > 0,1,0) ?

JuPa January 16, 2014 05:08

Hi!

Thanks for the reply. I'll try it and report back.


All times are GMT -4. The time now is 04:38.