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

Is there a limit for CEL expression length?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   March 26, 2012, 16: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, 17:54
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 10,824
Rep Power: 85
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
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, 02:20
Default
  #3
Senior Member
 
Lance
Join Date: Mar 2009
Posts: 522
Rep Power: 11
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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem About Running Fluent In Linux mitra FLUENT 12 October 15, 2014 09:27
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
Turbulence length scale and integral length scale rizhang CFX 1 September 10, 2009 06:38
Lift, Drag Vs time chart,calculations Jamesd69climber CFX 8 February 17, 2005 18:23


All times are GMT -4. The time now is 16:57.