CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Is there a limit for CEL expression length? (https://www.cfd-online.com/Forums/cfx/99130-there-limit-cel-expression-length.html)

fml2 March 26, 2012 17:48

Is there a limit for CEL expression length?
 
Hello.

In my model, I use a rather long CEL expression for temperature. It should be a periodic function with not very trivial shape, and I want to avoid user subroutines in fortran. I tried to specify the shape using CEL and with if-expressions.

However, I get an error message (something with "exceeds normal size", can't tell off of my head). If I remove a part of the expression, everything works OK. If I add a piece again, I get the error message. I've checked the syntax several times and think that there is no syntax errors.

Hence I suspect that I hit some limit of the CEL expression length. Is there such limit? If yes, what is the value?

Any help will be much appreciated!

ghorrocks March 26, 2012 18:54

I am not sure whether it is a length restriction or a complexity restriction (ie how many functions an expression has), but I am sure there is a restriction.

In that case split the CEL expression into several variables to simplify the expression.

Lance March 27, 2012 03:20

Yep, there's a limit. Cant remember the exact limit, but one of my expressions had about 30 nested if-statements which worked. If you need the exact limit I suggest you contact Ansys.


All times are GMT -4. The time now is 06:15.