6.6.3. Using Profiles

The procedure for using a profile to define a particular cell zone or boundary condition is outlined below.

  1. Create a file that contains the desired profile, following the format described in Profile File Formats.

  2. Read the profile using the Read... button in the Profiles Dialog Box (Figure 6.74: The Profiles Dialog Box)

    or the File/Read/Profile... ribbon tab item.

     Setup →   Cell Zone Conditions → Profiles...

     Setup →   Boundary Conditions → Profiles...

     File → Read → Profile...

    Note that if you use the Profiles dialog box to read a file, and a profile in the file has the same name as an existing profile, the old profile will be overwritten.

  3. If it is a point profile, you can choose the method of interpolation using the Profiles dialog box (Figure 6.74: The Profiles Dialog Box):

     Setup →   Cell Zone Conditions → Profiles...

     Setup →   Boundary Conditions → Profiles...

    Select the point profile in the Profile selection list. Then select one of the three choices in the Interpolation Method list and click the Apply button. The three choices include:

    • Constant

      This method is zeroth-order interpolation. For each cell face at the boundary, the solver uses the value from the profile file located closest to the cell. Therefore, the accuracy of the interpolated profile will be affected by the density of the data points in your profile file. This is the default interpolation method for point profiles.

    • Inverse Distance

      This method assigns a value to each cell face at the boundary based on weighted contributions from the values in the profile file. The weighting factor is inversely proportional to the distance between the profile point and the cell face center.

    • Least Squares

      This method assigns values to the cell faces at the boundary through a first-order interpolation method that tries to minimizes the sum of the squares of the offsets (residuals) between the profile data points and the cell face centers. The least squares solution is found using Singular Value Decomposition (SVD).


    Note:  The Inverse Distance and Least Squares profile interpolation methods are not applicable when a profile is attached to cell zones.


    For information about the interpolation methods employed for other profile types (that is, line, mesh, radial, or axial profiles), see Profile Specification Types.

  4. In the boundary conditions dialog boxes (for example, the Velocity Inlet and Pressure Inlet dialog boxes), the fields defined in the profile file (and those defined in any other profile file that you have read in) will appear in the drop-down list to the right of or below each parameter for which profile specification is allowed. To use a particular profile, select it in the appropriate list.

  5. Initialize the solution to interpolate the profile.


Note:  You can use a profile file or the DEFINE_PROFILE user-defined function to specify volumetric source terms. If you specify the source terms with a profile, you will not have access to the central coefficient of the equations solved in order to linearize the source term. You will need to use a user-defined function to do this.


For more information on UDFs, refer to the Fluent Customization Manual.

6.6.3.1. Checking and Deleting Profiles

Each profile file contains one or more profiles, and each profile has one or more fields defined in it. Once you have read in a profile file, you can check which fields are defined in each profile, and you can also delete a particular profile. These tasks are accomplished in the Profiles Dialog Box (Figure 6.74: The Profiles Dialog Box).

 Setup →   Cell Zone Conditions → Profiles...

 Setup →   Boundary Conditions → Profiles...

Figure 6.74:  The Profiles Dialog Box

The Profiles Dialog Box

To check which fields are defined in a particular profile, select the profile name in the Profile list. The available fields in that file will be displayed in the Fields list. In Figure 6.74: The Profiles Dialog Box, the profile fields from the profile file of Example are shown.

To delete a profile, select it in the Profile list and click the Delete button. When a profile is deleted, all fields defined in it will be removed from the Fields list.


Important:  If you are deleting an existing profile to replace it with a new profile, use the following procedure:

  1. Delete the existing profile.

  2. Change the parameters defined by the existing profile to Constant.

  3. Read the new profile and apply as desired.


6.6.3.2. Viewing Profile Data

The Plots task page options allow you to generate XY plots of data related to profiles. You can plot the original data points from the profile file you have read into ANSYS Fluent, or you can plot the values assigned to the cell faces on the boundary after the profile file has been interpolated. See XY Plots of Profiles for the steps to generate these plots.

You have the additional option of viewing the parameters) using the Plot or the Contours options. Note that these display options do not allow you to plot the actual values of the cell faces (as is done with the Interpolated Data option), because they interpolate the values stored in the adjacent cells. To view the boundary condition parameters you must first read in the profile, save a boundary condition with a profile field selected as a parameter, and initialize the flow solution. Then you can view the surface data as follows:

  • For 2D calculations, open the Solution XY Plot dialog box. Select the appropriate boundary zone in the Surfaces list, the variable of interest in the Y Axis Function drop-down list, and the desired Plot Direction. Ensure that the Node Values check button is turned on, and then click Plot. You should then see the profile plotted. If the data plotted does not agree with your specified profile, this means that there is an error in the profile file.

  • For 3D calculations, use the Contours dialog box to display contours on the appropriate boundary zone surface. The Node Values check button must be turned on in order for you to view the profile data. If the data shown in the contour plot does not agree with your specified profile, this means that there is an error in the profile file.

6.6.3.3. Example

For the example given in Example, the profiles are used for inlet values of velocity, turbulent kinetic energy, and turbulent kinetic energy dissipation rate, as illustrated in Figure 6.75: Example of Using Profiles as Boundary Conditions. (The velocity is set to a constant value of zero, since it is assumed negligible. However, a profile of velocity could also be used.)

Figure 6.75:  Example of Using Profiles as Boundary Conditions

Example of Using Profiles as Boundary Conditions


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