Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
• If your geometry has features of very disparate length scales (e.g., a very long,
thin pipe), single-precision calculations may not be adequate to represent the node
coordinates.
• If your geometry involves multiple enclosures connected via small-diameter pipes
(e.g., automotive manifolds), mean pressure levels in all but one of the zones can be
quite large (since you can set only one global reference pressure location). Double-
precision calculations may therefore be necessary to resolve the pressure differences
that drive the flow, since these will typically be much smaller than the pressure
levels.
c Fluent Inc. January 11, 2005 1-1
Starting and Executing FLUENT
• Start the solver from the command line without specifying a version, and then use
the Select Solver panel to choose the appropriate version.
• Start the solver from the command line without specifying a version, and then read
in a case file (or a case file and data file) to start the appropriate version.
1-2
c Fluent Inc. January 11, 2005
1.1 Starting FLUENT
2. Specify the precision by turning the Double Precision option on or off under Versions.
If the program executable is not in your search path, you can specify a complete pathname
to the executable in the Program text entry box before clicking Run.
c Fluent Inc. January 11, 2005 1-3
Starting and Executing FLUENT
Figure 1.1.2: The FLUENT version can be selected from the Select Solver
panel
1-4
c Fluent Inc. January 11, 2005
1.1 Starting FLUENT
• Click the Start button, select the Programs menu, select the Fluent.Inc menu,
and then select the FLUENT 6 program item. (Note that if the default “Fluent.Inc”
program group name was changed when FLUENT was installed, you will find the
FLUENT 6 menu item in the program group with the new name that was assigned,
rather than in the Fluent.Inc program group.)
• Start from an MS-DOS Command Prompt window by typing fluent 2d (for the
2D single-precision solver), fluent 3d (for the 3D single-precision solver), fluent
2ddp (for the 2D double-precision solver), or fluent 3ddp (for the 3D double-
precision solver) at the prompt. Before doing so, however, you must first modify
your user environment so that the MS-DOS Command utility will find fluent.
You can do this by selecting the program item “Set Environment”, which is also
found in the Fluent.Inc program group. This program will add the Fluent.Inc
directory to your command search path.
From the MS-DOS Command Prompt window, you can also start the parallel
version of FLUENT. To start the parallel version on x processors, type fluent
version -tx at the prompt, replacing version with the desired solver version (2d,
3d, 2ddp, or 3ddp) and x with the number of processors (e.g., fluent 3d -t3 to
run the 3D version on 3 processors). For information about the parallel version of
FLUENT, see Chapter 32: Parallel Processing.
c Fluent Inc. January 11, 2005 1-5
Starting and Executing FLUENT
If a case and data file are already loaded into FLUENT, the Case & Data button under
Write will be active, which will allow you to write out the case and data files for the
current session. You must save your case and data files in order to use them on the RSF.
Once you save the case and data files and launch the RSF, you can exit from FLUENT.
To start an RSF session, click Start RSF to open your web browser and load the page for
the FLUENT Remote Simulation Facility (RSF).
For more information about the RSF, see
http://www.fluent.com/software/rsolve/index.htm.
To link to the RSF on UNIX platforms, you must first have installed the
i contents of the FLUENT 6.x Documentation CD, which contains the files
necessary to launch your browser so you can automatically view the ap-
propriate web pages.
1-6
c Fluent Inc. January 11, 2005
1.1 Starting FLUENT
c Fluent Inc. January 11, 2005 1-7
Starting and Executing FLUENT
tion -cx host:p1:p2 is used only when you are starting the solver manually (see Sec-
tion 1.1.2: Specifying the Solver Version in the Select Solver Panel).
If you type fluent -driver, you can specify the graphics driver to be used in the
solver session (e.g., fluent -driver xgl). Typing fluent -env will list all environment
variables before running FLUENT.
fluent -g will run Cortex without graphics and without the graphical user interface.
This option is useful if you are not on an X Window display or if you want to submit a
batch job. fluent -gu will run Cortex without the graphical user interface and fluent
-gr will run Cortex without graphics. (On Windows systems, fluent -gu will run FLU-
ENT keeping it in a minimized window; if you maximize the window, the GUI will be
available. This option can be used in conjunction with the -i journal option to run a
job in “background” mode.)
To start the solver and immediately read a journal file, type fluent -i journal, replac-
ing journal with the name of the journal file you want to read. The -nocheck option
speeds up the solver startup by not checking to see if the license server is running. This is
useful if you know that the license daemon is running or you would rather not try to start
it if it is not running (e.g., if you do not have privileges to do so). fluent -post will run
a version of the solver that allows you to set up a problem or perform postprocessing,
but will not allow you to perform calculations.
Typing fluent version -r, replacing version with the desired version, will list all
releases of the specified version. fluent -rx will run release x of FLUENT. You may
specify a version as well, or you can wait and specify the version when prompted by
the solver. fluent -v will list the available versions. fluent -vx will run version x of
FLUENT.
You can type fluent -n or use the -n option in conjunction with any of the others to
see where the (specified) executable is without actually running it.
The remaining options are used in association with the parallel solver. -hcl is used to
pass an argument to the FLUENT host process and -ncl is used to pass an argument
to the FLUENT compute node process(es). -loadx is used to start the parallel compute
node processes on a dedicated parallel machine from its remote front-end machine (x).
-manspa is used to disable the default automatic spawning of compute node processes.
-px specifies the use of parallel communicator x, where x can be any of the communicators
listed in Section 32.2.1: Running on a Multiprocessor UNIX Machine. -pathx specifies
the root path (path) to the Fluent.Inc installation directory. -tx specifies that x
processors are to be used. For more information about starting the parallel version of
FLUENT, see Section 32.2: Starting the Parallel Version of the Solver.
1-8
c Fluent Inc. January 11, 2005
1.2 Remote Execution
• You will not be able to read or write files using the items in the File pull-down menu;
use the text commands for reading and writing files instead. See the separate Text
Command List for details.
3. In the Select Solver panel, under Remote Execution, set the internet name of the
remote machine (Hostname), your username at that machine (Username), and your
password at that machine (Password).
c Fluent Inc. January 11, 2005 1-9
Starting and Executing FLUENT
4. Specify the appropriate solver version under Versions and Options in the Select
Solver panel. (More information about these items is available in Sections 1.1 and
32.2.)
5. Click the Run button.
If the remote processor refuses to start the solver, you may need to try the procedure
described in Section 1.2.3: Starting the Solver Manually on the Remote Machine.
1. Click the Listen button in the Select Solver panel or type listen at the version>
prompt (and press <RETURN> to accept the default “time out”).
FLUENT will print a message telling you what arguments you should use to start
the solver on a remote machine. The arguments will be in this format:
-cx host:p1:p2
where host is the name of the host Cortex is running on, and :p1:p2 are two
colon-separated integers indicating the port numbers being used.
2. Open a telnet or xterm window and log onto the remote machine where you want
to launch the solver.
3. In the telnet or xterm window, type the following to start the desired version of
FLUENT:
fluent version -cx host:p1:p2
replacing version by the version that you wish to run (e.g., 3d), and the host and
port numbers by the values displayed above when you clicked Listen in the Select
Solver panel or typed listen in the FLUENT console window.
1-10
c Fluent Inc. January 11, 2005
1.3 Batch Execution
or in a Bourne/Korn-shell, type:
In these examples,
• -g indicates that the program is to be run without the GUI or graphics (see Sec-
tion 1.1: Starting FLUENT).
• inputfile is a file of FLUENT commands that are identical to those that you would
type interactively.
• outputfile is a file that the background job will create and which will contain the
output that FLUENT would normally print to the screen (e.g., the menu prompts
and residual reports).
• & tells the UNIX system to perform this task in background and to send all standard
system errors (if any) to outputfile.
c Fluent Inc. January 11, 2005 1-11
Starting and Executing FLUENT
The file inputfile can be a journal file created in an earlier FLUENT session, or it can
be a file that you have created using a text editor. In either case, the file must consist
only of text interface commands (since the GUI is disabled during batch execution). A
typical inputfile is shown below:
This example file reads a case file example.cas, initializes the solution, and performs
100 iterations in two groups of 50, saving a new data file after each 50 iterations. The
final line of the file terminates the session. Note that the example input file makes use
of the standard aliases for reading and writing case and data files and for iterating. (it
is the alias for /solve/iterate, rc is the alias for /file/read-case, wd is the alias for
/file/write-data, etc.) These predefined aliases allow you to execute commonly-used
commands without entering the text menu in which they are found. In general, FLUENT
assumes that input beginning with a / starts in the top-level text menu, so if you use any
text commands for which aliases do not exist, you must be sure to type in the complete
name of the command (e.g., /solve/initialize/initialize-flow). Note also that
you can include comments in the file. As in the example above, comment lines must
begin with a ; (semicolon).
An alternate strategy for submitting your batch run, as follows, has the advantage that
the outputfile will contain a record of the commands in the inputfile. In this ap-
proach, you would submit the batch job in a C-shell using:
or in a Bourne/Korn-shell using:
1-12
c Fluent Inc. January 11, 2005
1.3 Batch Execution
fluent 3d -g -i journal
In these examples,
• -wait is the command you type in a DOS batch file or some other script in a
situation where the script needs to wait until FLUENT has completed its run.
• -hidden is similar to the -wait command, but also executes FLUENT completely
hidden and noninteractively.
To get an output (or transcript) file while running FLUENT in the background on a Win-
dows system, the journal file must contain the following command to write a transcript
file:
where the outputfile is a file that the background job will create and which will contain
the output that FLUENT would normally print to the screen (e.g., the menu prompts
and residual reports).
See Section 4.7: Creating and Reading Journal Files for details about journal files. See
Section 4.8: Creating Transcript Files for details about transcript files.
c Fluent Inc. January 11, 2005 1-13
Starting and Executing FLUENT
Confirm File Overwrite determines whether FLUENT confirms a file overwrite. This
option is turned on by default.
Hide Questions allows you to hide Question dialog boxes. This option is turned off by
default.
Exit on Error allows you to automatically exit from batch mode when an error occurs.
This option is turned off by default.
Note that these options are also available in the file/set-batch-options command in
the text interface.
file −→set-batch-options
Any combination of these options can be turned on or off at any given time prior to
running in batch mode.
1-14
c Fluent Inc. January 11, 2005
1.4 Checkpointing a FLUENT Simulation
Batch option settings are not saved with case files. They are meant to
i apply for the duration of the current FLUENT session only. If you read in
additional mesh or case files during this session, the batch option settings
will not be altered. As batch options are not saved with case files, journal
files developed for use in batch mode should begin by enabling the desired
batch option settings (if different from the default settings).
c Fluent Inc. January 11, 2005 1-15
Starting and Executing FLUENT
and
where pathname is the path you wish to set as the new default location of the saved
case and data files.
sh kill-fluent-thor-32895
1-16
c Fluent Inc. January 11, 2005
1.6 Exiting the Program
Or, if the shell script already has executable permissions, simply type:
kill-fluent-thor-32895
c Fluent Inc. January 11, 2005 1-17
Starting and Executing FLUENT
1-18
c Fluent Inc. January 11, 2005