• Embed Doc
  • Readcast
  • Collections
  • CommentGo Back
Download
 
Chapter 4. Reading and Writing Files
During a
FLUENT
session you may need to import and export several kinds of files. Filesthat are read include mesh, case, data, profile,
Scheme
, and journal files. Files that arewritten include case, data, profile, journal, and transcript files.
FLUENT
also has featuresthat allow you to save panel layouts and hardcopies of graphics windows. You can alsoexport data for use with various visualization and postprocessing tools. These operationsare described in the following sections.
Section4.1:Shortcuts for Reading and Writing Files
Section4.2:Reading Mesh Files
Section4.3:Reading and Writing Case and Data Files
Section4.4:Reading
FLUENT/UNS
and
RAMPANT
Case and Data Files
Section4.5:Importing
FLUENT
4 Case Files
Section4.6:Importing
FIDAP
Neutral Files
Section4.7:Creating and Reading Journal Files
Section4.8:Creating Transcript Files
Section4.9:Reading and Writing Profile Files
Section4.10:Reading and Writing Boundary Conditions
Section4.11:Writing a Boundary Grid
Section4.12:Saving Hardcopy Files
Section4.13:Exporting Data
Section4.14:Grid-to-Grid Solution Interpolation
Section4.15:Reading
Scheme
Source Files
Section4.16:The
.fluent
File
Section4.17:Saving the Panel Layout
c
Fluent Inc. January 11, 2005
4-1
 
Reading and Writing Files
4.1 Shortcuts for Reading and Writing Files
The following features in
FLUENT
make reading and writing files convenient:
Automatic appending or detection of default filename suffixes.
Binary file reading and writing.
Automatic detection of file format (text/binary).
Recent file list.
Reading and writing of compressed files.
Tilde expansion.
Automatic numbering of files.
Ability to disable the overwrite confirmation prompt.
4.1.1 Default File Suffixes
Each type of file read or written in
FLUENT
has a default file suffix associated with it.When you specify the first part of the filename (the prefix) for the commonly used files,the solver automatically appends or detects the appropriate suffix. For example, to writea case file named
myfile.cas
, just specify the prefix
myfile
and
.cas
is automaticallyappended. Similarly, to read the case file named
myfile.cas
into the solver, you can just specify
myfile
and
FLUENT
automatically searches for a file of that name with thesuffix
.cas
.The default file suffix for case and data files, PDF (Probability Density Function) files,DTRM ray files, profiles, scheme files, journal files, etc., are automatically detected andappended. The appropriate default file suffix appears in the
Select File
dialog box foreach type of file.
4-2
c
Fluent Inc. January 11, 2005
 
4.1 Shortcuts for Reading and Writing Files
4.1.2 Binary Files
When you write a case, data, or ray file, a binary file is saved by default. Binary files takeup less memory than text files and can be read and written by
FLUENT
more quickly.
Note:
You cannot read and edit a binary file, as you can do for a text file.
To save a text file, turn off the
Write Binary Files
option in the
Select File
dialog box whenyou are writing the file.
i
FLUENT
can read binary files that were saved on different platforms, butother products (such as
TGrid
) cannot. If you are planning to read acase file into
TGrid
on a different platform, you should save a text file in
FLUENT
.
4.1.3 Detecting File Format
When you read a case, data, mesh, PDF, or ray file, the solver automatically determineswhether it is a text (formatted) file or binary file.
c
Fluent Inc. January 11, 2005
4-3
of 00

Leave a Comment

You must be to leave a comment.
Submit
Characters: ...
You must be to leave a comment.
Submit
Characters: ...