6.6.2. Profile File Formats

There are two profile format options:

6.6.2.1. Standard Profiles

The format of the profile files is fairly simple. The file can contain an arbitrary number of profiles. Each profile consists of a header that specifies the profile name, profile type (point, line, mesh, radial, or axial), and number of defining points, and is followed by an arbitrary number of named “fields”. Some of these fields contain the coordinate points and the rest contain boundary data.


Important:  Keep profile names to 64 characters or less. If the profile name contains more than 64 characters, Fluent truncates the name to the first 64 characters.

All quantities, including coordinate values, must be specified in SI units because ANSYS Fluent does not perform unit conversion when reading profile files.


Parentheses are used to delimit profiles and the fields within the profiles. Any combination of tabs, spaces, and newlines can be used to separate elements.


Important:  In the general format description below, “ |” indicates that you should input only one of the items separated by |’s and “ ...” indicates a continuation of the list.


((profile1-name point|line|radial n)
 (field1-name a1 a2 ... an)
 (field2-name b1 b2 ... bn)
.
.
.
 (fieldf-name f1 f2 ... fn))
 
((profile2-name mesh m n)
  (field1-name  a11 a12 ... a1n
                a21 a22 ... a2n
                .
                .
                .
                am1 am2 ... amn)
.
.
.
(fieldf-name   f11  f12 ... f1n
               f21  f22 ... f2n
               .
               .
               .
               fm1 fm2 ... fmn)) 

Profile names must have all lowercase letters (for example, name). Uppercase letters in profile names are not acceptable. Each profile of type point, line, and mesh must contain fields with names x, y, and, for 3D, z. Each profile of type radial must contain a field with name r. Each profile of type axial must contain a field with name z. The rest of the names are arbitrary, but must be valid Scheme symbols. For compatibility with old-style profile files, if the profile type is missing, point is assumed.

6.6.2.1.1. Example

A typical usage of a profile file is to specify the profile of the boundary layer at an inlet. For a compressible flow calculation, this will be done using profiles of total pressure, , and . For an incompressible flow, it might be preferable to specify the inlet value of streamwise velocity, together with and .

Below is an example of a profile file that does this:

((turb-prof point 8)
 (x
     4.00000E+00  4.00000E+00  4.00000E+00  4.00000E+00
     4.00000E+00  4.00000E+00  4.00000E+00  4.00000E+00 )
 (y
     1.06443E-03  3.19485E-03  5.33020E-03  7.47418E-03
     2.90494E-01  3.31222E-01  3.84519E-01  4.57471E-01 )
 (u
     5.47866E+00  6.59870E+00  7.05731E+00  7.40079E+00
     1.01674E+01  1.01656E+01  1.01637E+01  1.01616E+01 )
 (tke
     4.93228E-01  6.19247E-01  5.32680E-01  4.93642E-01
     6.89414E-03  6.89666E-03  6.90015E-03  6.90478E-03 )
 (eps
     1.27713E+02  6.04399E+01  3.31187E+01  2.21535E+01
     9.78365E-03  9.79056E-03  9.80001E-03  9.81265E-03 )
 )

6.6.2.2. CSV Profiles

CSV profiles are compatible with spreadsheets and are available for both reading and writing in Fluent. Many profile types can be written in CSV format, including:

  • Radial

  • Axial

  • Point (X, Y, Z)

  • Transient

  • Transient-Periodic

If writing a profile using the Write Profile dialog box, you can save the profile in CSV format by saving with a .csv extension.

Formatting Rules:

CSV profiles must be setup so they can be read and interpreted correctly in Fluent:

  1. The profile file must contain the section identifiers shown in Table 6.4:  CSV Profile Section Identifiers . These identifiers must be used in the order, [Name] then [Data].

    Table 6.4:   CSV Profile Section Identifiers

    Section Identifiers Remark
    [Name]Next line should have the profile name. Note- if the profile name has space characters, they will be replaced with '_' (space character is not allowed).
    [Data]Data values begin on the next line.

  2. After the [Data] identifier you must label the type of data that you are providing; refer to Table 6.5: Profile Types and the Corresponding Required Field Labels for the correct labels. If Fluent does not find one of the expected labels, the profile read will fail.

    Table 6.5:  Profile Types and the Corresponding Required Field Labels

    Profile Type Required Field Label
    radialradius
    axialaxis
    pointX, Y, Z
    transienttime, angle
    transient-periodictime-periodic, angle-periodic

  3. If there is an unsupported section identifier, Fluent ignores the section and looks for the [Name] and [Data] section identifiers.

  4. Multiple profiles may be included in a single file.


Important:
  • Only use commas as value separators. Space characters should not be used as they will confuse external spreadsheet applications.

  • Only SI values are supported. Quantities cannot be entered with units.


CSV Profile File Examples

A file containing one profile:

[Name]
outlet

[Data]
x,y,z,x-velocity
-0.00036448459,0.0068932362,3,0.5
0.0014999653,-0.0090896944,3,0.5
-0.0014358073,-0.0094413245,3,    0.5
0.0022810854,0.014916174,3,0.5
-0.0024638004,0.014873175,3,0.5
-0.0069573424,0.013364096,3,0.5

A file containing two profiles, the first one is spatial (steady-state) and the second is transient.

[Name]
outlet

[Data]
x,y,z,x-velocity
-0.00036448459,0.0068932362,3,0.05
0.0014999653,-0.0090896944,3,0.05


[Name]
transient-temperature
[Data]
time,temperature
1.1,300
1.2,350
1.3,400

Release 18.2 - © ANSYS, Inc. All rights reserved.