CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > CFX

CFX Expression Statement

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

LinkBack Thread Tools Search this Thread Display Modes
Old   June 2, 2006, 15:14
Default CFX Expression Statement
Posts: n/a
I am trying to modeling 3 periodic boundary conditions in CFX and I want to use an IF.THEN.STATEMENT in the expression editor. CFX doesn't seem to recognize "IF", does anyone know how to write this type of expression within CFX expression editor?
  Reply With Quote

Old   June 2, 2006, 16:42
Default Re: CFX Expression Statement
Posts: n/a
Depends on what exactly you are trying to do.

Perl code can be included in CFXpre session and CCL files.

Search for "perl" in the manual ...
  Reply With Quote

Old   June 4, 2006, 18:18
Default Re: CFX Expression Statement
Glenn Horrocks
Posts: n/a

CEL does not support If/then/else statements. You can do the same functionality using the step statement. You can also do it using Perl statements as Joe says, but that is evaluated once as the simulation starts and is not re-evaluated as the simulation proceeds.

Glenn Horrocks
  Reply With Quote

Old   June 5, 2006, 11:42
Default Re: CFX Expression Statement
Posts: n/a
Hi Ivan,

If you need more complicated logic than what is available through standard CEL, you can write a user CEL function in FORTRAN instead.

That said, what is it you are trying to do? There may be another way to accomplish this without your logic statements.

Regards, Robin
  Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 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 02:11
Importing solutions in CFX. Alphonso CFX 1 August 1, 2008 14:01
cfx expression variables Manoj Kumar CFX 2 February 16, 2006 10:03
Lift, Drag Vs time chart,calculations Jamesd69climber CFX 8 February 17, 2005 17:23
CFX 4.4 installation problem Pandu Sattvika CFX 1 December 1, 2001 04:07

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