CFD Online Logo CFD Online URL
Home > Forums > CFX

CFX 5 input file?

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

LinkBack Thread Tools Display Modes
Old   August 6, 2002, 09:54
Default CFX 5 input file?
Posts: n/a

Is it possible to make use of an input-file which can read Build? This would be very convenient when changing parameters such as lengths or so.


  Reply With Quote

Old   August 6, 2002, 14:01
Default Re: CFX 5 input file?
Posts: n/a
Hi Jaap,

All Build sessions are written to a session file, plus a journal file (.db.jou) is written for each database. You can play back a session file to execute a series of actions, or a journal file to recreate an entire model. These are simple text files, so it is possible for you to edit these to create parametric models.

Build is based on MSC.Patran, thus the command language is known as Patran Command Language (PCL). Every Build action has a corresponding PCL code (echoed in the History window). If you want to know what the corresponding PCL command is, have a look at the history window or read through your session or journal file. It is also possible to create your own gui elements, menu's etc., using PCL.

If necessary, you can download the PCL manuals from the CFX community pages, or by contacting customer support.

Regards, Robin
  Reply With Quote

Old   August 8, 2002, 06:55
Default Re: CFX 5 input file?
Posts: n/a
Thank you Robin,

One more question: how do I declare variables in the journal-file. I tried to create them using the Expression Editior to create a value. However, when defining my geometry, I cannot use these values for Build doesn't recognize them. Do you have a solution?

Regards, Jaap
  Reply With Quote

Old   August 8, 2002, 09:01
Default Re: CFX 5 input file?
Posts: n/a

Variables and expressions in the Expression Editor are CFX Expression Language (CEL) components and are evaluated by the solver. Build only provides a means of entering these expressions. They are not evaluated by Build, except for using the "Calculate" or "Plot" functions in the expression editor.

If you wish to use expressions and variables in Build to create geometry, you can declare them using the Patran Command Language (PCL). For instance, if you wanted to declare a set of REAL variables named length , width , and height, you would do the following:

REAL length, width, height

length = 10.0 width = 5.8 height =2.3

You could then use these to define geometry in Build. To use a variable or expression in a form, delimeter it with a backward quote `. For instance, to use our variables to define a vector, you would write the vector like this:

<`length` `width` `height`>

which equates to

<10 5.8 2.3>

Or perhaps you want to use a function of one of these variables to define a point location:

[ 0 `2*width` 0]

which equates to

[0 11.6 0]

This is only scratching the surface. I highly recommend dowmloading a copy of the PCL documentation from the community pages to learn more about PCL. The files are downloadable from the here on the CFX Community Pages. If you are a CFX user (including students) and you do not have a community pages password, fill out the on-line form to get one at

Best regards, Robin

  Reply With Quote


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
swak4foam building problem GGerber OpenFOAM Installation 54 April 24, 2015 16:02
OpenFOAM Install Script ljsh OpenFOAM Installation 82 October 12, 2009 11:47
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 01:24
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51

All times are GMT -4. The time now is 04:07.