CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Is there a limit for CEL expression length?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 26, 2012, 17:48
Default Is there a limit for CEL expression length?
  #1
New Member
 
Join Date: Mar 2012
Posts: 1
Rep Power: 0
fml2 is on a distinguished road
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!
fml2 is offline   Reply With Quote

Old   March 26, 2012, 18:54
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,871
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Old   March 27, 2012, 03:20
Default
  #3
Senior Member
 
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22
Lance is on a distinguished road
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.
Lance is offline   Reply With Quote

Reply

Tags
cel expression, maximum length


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem About Running Fluent In Linux mitra FLUENT 18 June 20, 2019 03:11
Turbulence length scale and integral length scale rizhang CFX 2 April 22, 2016 08:22
How to install CGNS under windows xp? lzgwhy Main CFD Forum 1 January 11, 2011 19:44
CGNS lib and Fortran compiler manaliac Main CFD Forum 2 November 29, 2010 07:25
Lift, Drag Vs time chart,calculations Jamesd69climber CFX 8 February 17, 2005 18:23


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