CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Using CEL Funtion (https://www.cfd-online.com/Forums/cfx/26255-using-cel-funtion.html)

jaiye August 13, 2008 15:46

Using CEL Funtion
 
I created an expression with CEL which has velocity as its denominator. However, when CFX solver runs, it crashes because there are regions within my domain which have zero velocity i.e velocity = 0.(since a zero denominated equation cannot be solved). Please how can I limit or minimise the value of the velocity in the CEL expression to around 0.001 to enable CFX solver run successfully. Thanks.

Chris Basciano August 13, 2008 17:09

Re: Using CEL Funtion
 
check the help files for the CEL functions min( ) and max( ) and create a CEL parameter that depends on the the comparison between your threshold (0.001) and the velocity.

jaiye August 14, 2008 17:30

Re: Using CEL Funtion
 
Thanks alot Chris

Chris Basciano August 15, 2008 11:14

Re: Using CEL Funtion
 
Glad the tip worked for you! Good luck with your remaining simulations.

Rogerio Fernandes Brito August 15, 2008 19:09

Re: Using CEL Funtion
 
But tell us how to do that?

Best

Chris Basciano August 18, 2008 09:38

Re: Using CEL Funtion
 
Apologize if my first response was a bit vague (other forums do not like full descriptions). Here are some additional details.

1) Help files - check the CFX Pre help files for CEL functions and variables. There will be min() and max() functions and the variables for velocity. 2) Create a new CEL parameter - create a new CEL expression either through the toolbar button or the menus at the top. 3) In the parameter use the following syntax (without quotation marks): " max( [0.001] [velocity variable] ) ". 4) Use this parameter in another CEL expression to ensure that either the minimum value your newly created CEL parameter can have is 0.001

Hope the additional details help.

Rogerio Fernandes Brito August 18, 2008 19:37

Re: Using CEL Funtion
 
Thanks.


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