CFD Online URL
[Sponsors]
Home > Forums > CFX

CFX Expression Statement

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 2, 2006, 16:14
Default CFX Expression Statement
  #1
Ivan
Guest
 
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, 17:42
Default Re: CFX Expression Statement
  #2
Joe
Guest
 
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, 19:18
Default Re: CFX Expression Statement
  #3
Glenn Horrocks
Guest
 
Posts: n/a
Hi,

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, 12:42
Default Re: CFX Expression Statement
  #4
Robin
Guest
 
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

Reply

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


All times are GMT -4. The time now is 23:25.