CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   CFX (http://www.cfd-online.com/Forums/cfx/)
-   -   CEL and if statements (http://www.cfd-online.com/Forums/cfx/20874-cel-if-statements.html)

Paul December 20, 2004 01:41

CEL and if statements
 
Hi All,

I am fairly new to CFX and I was wondering if it is possible to use "if" statements in CEL. Basically I would like to be able to alter the time step according to my own criteria (i.e. something like; if a>1.0 then b=2, else, b=3, endif).

Thanks in advance,

Paul.

Erica December 20, 2004 04:56

Re: CEL and if statements
 
Hi Paul maybe you can use the step function for a simple question,or user function for a complexit one Erica

test December 21, 2004 03:36

Re: CEL and if statements
 
Hi,

You can use the step function for a simple case where you want to change the values over some fixed ranges of time steps..

Else you can use embedded perl syntax to define a simple "If" loop within the ccl. Simple examples are avaliable in Help or contact your customer support for the same.

Neale December 23, 2004 22:55

Re: CEL and if statements
 
Embedded perl will not during the run. User fortran or step functions are the only route here.

Neale


All times are GMT -4. The time now is 11:13.