CFD Analysis

Tecplot 360 helps you analyze computational fluid dynamics and similar solutions. Data analysis capabilities are available via the analyze menu, and include:

  • Function calculations, including grid quality functions (such as skewness) and flow variable functions (such as vorticity). Many of these functions duplicate functions that are available in NASA’s PLOT3D and FAST plotting programs.

  • Integration of input or calculated data, including scalar, vector-dot-normal and vector-dot-tangential integrands, as well as a special forces and moments option for calculating lift, drag and moments.

  • Turbulence variable calculations.

  • Particle path and streakline calculations, including particles with mass.

  • Error analysis using Richardson extrapolation.

  • Flow feature detection, including vortex cores, separation and attachment lines, and shock surfaces.

Units (Dimensions)

Analysis may be performed with data representing any system of units or dimensions, including non-dimensional data. All dataset variables and other parameters must, however, be in the same set of units. Unit conversions are not available. Linux and Mac users may wish to use the units utility for unit conversions. Analysis results will be in the same units as the data.

Specifying Fluid Properties

Fluid properties, such as viscosity, describe the fluid model used to create the dataset. These properties are required for many calculations performed by other dialogs. They are set via the Fluid Properties dialog. Values entered must be dimensionally consistent with each other and with your dataset. If you imported your data using the PLOT3D data loader, the default fluid properties will most likely suit your needs.

For a layout with multiple datasets, a separate set of fluid properties is maintained for each dataset. You can copy the settings from one dataset to another using the Save Settings and Load Settings options in the Analyze menu. These actions also transfer the settings made in the Reference Values, Field Variables, Geometry and Boundaries, and Unsteady Flow Options dialogs.

The Fluid Properties dialog is accessed by selecting Fluid Properties from the Analyze menu.

fluid properties

The Fluid Properties dialog allows you to specify properties for a compressible or incompressible fluid. For incompressible (uniform density) fluids, you specify density, specific heat, viscosity and conductivity. For compressible (variable density) fluids, you specify the gas constant, gamma (the ratio of specific heats), viscosity and conductivity.

By default, each fluid property is a constant. However, each property can be overridden by a field (dataset) variable (with the exception of density). When a field variable is assigned, the local value of that variable is used for field calculations using that property, and the constant value is used only for global calculations, such as the calculation of reference (free-stream) quantities. To assign a field variable for a particular property, set the Use Field Variable toggle and click Select to choose a variable from the current dataset from the Select Variable dialog.

Incompressible

Toggle-on to indicate the fluid is incompressible. For incompressible fluids, you must specify density, specific heat, viscosity and conductivity. For compressible fluids, you must specify gas constant, gamma, viscosity and conductivity.

Density (for incompressible fluids only)

Density represents the mass of fluid occupied by a unit volume. Its dimensions are

Specific Heat (for incompressible fluids only)

Specific heat is the amount of energy required to raise a unit mass of the fluid one degree in temperature. Dimensions are .

Gas Constant (for compressible fluids only))

The specific gas constant has dimensions of .

Gamma (for compressible fluids only)

Gamma represents the ratio of the specific heat at constant pressure to the specific heat at constant volume, a non-dimensional quantity.

Viscosity

The dynamic viscosity’s dimensions are .

Conductivity

The thermal conductivity’s dimensions are .

Specifying Incompressible Fluid Properties

When the Incompressible check box is selected, the density of the fluid and its specific heat ( ), viscosity ( ), and conductivity ( ) must be entered. Gamma ( ), the ratio of specific heats at constant volume and pressure, is unity for incompressible fluids, so the Gamma section is inactive. Gas Constant ( ) is also inactive. The thermal and caloric equations of state for incompressible fluids are shown below. is density, and represents the internal energy per unit mass.

Since the density entered in the Fluid Properties dialog represents the density of the fluid throughout the physical domain, you are not allowed to enter a reference value for density in the Reference Values dialog, or choose a density field variable on the Field Variables dialog (see Identifying State Variables).

Specific heat ( ) is the amount of energy required to raise a unit mass of the fluid one degree. It has dimensions of:

Viscosity ( ) represents the dynamic viscosity coefficient, in units of

Conductivity ( ) is the thermal conductivity of the fluid, in units of:

Specifying Compressible Fluid Properties

When the Incompressible check box is not selected, the specific gas constant, gamma, viscosity and conductivity must be entered. Since density is not a constant property of compressible fluids, the Density text field is inactive, as is the Specific Heat section of the dialog. The thermal and caloric equations of state for compressible fluids are shown below. is pressure, and is internal energy per unit mass:

The caloric equation of state assumes constant specific heats for the fluid. In situations where this assumption is not valid (such as high-temperature flows) Tecplot 360 will calculate inaccurate values of temperature. For these cases, it is best to have your solver output temperature, and then input it into Tecplot 360 for other calculations (see Identifying State Variables). If your solution represents a chemically reacting flow, your solver should also output and as field variables, which you can identify as discussed earlier in this chapter in Specifying Incompressible Fluid Properties.

The gas constant is the universal gas constant divided by the molecular weight of the fluid:

giving units of:

Gamma is the ratio of the gas specific heats and is non-dimensional:

Working with Non-dimensional Data

Consider a case where temperature is non-dimensionalized by dividing it by free-stream temperature:

and pressure is non-dimensionalized with gamma (the ratio of specific heats) and free-stream pressure:

We wish to know what to enter for the gas constant in the Fluid Properties dialog. We plug what we know into the thermal equation of state (where is density and is the gas constant):

Since the equation of state must hold for the free-stream conditions, we know:

From this, we see that the product of denominators (1) and (2) in the second-previous equation must equal thus:

This doesn’t entirely answer our question, however, and in the absence of additional information, we simply need to decide how and are each individually non-dimensionalized. The requirement we just determined is that the product of the two must be non-dimensionalized by So we may decide to non-dimensionalize density by free-stream density, , which leaves the gas constant non-dimensionalized (that is, divided) by . In the Fluid Properties dialog, we enter for Gas Constant. If we chose to leave Gas Constant at unity, density would be non-dimensionalized by gamma and free-stream density, .

Specifying Reference Values

Certain calculations, such as Pressure Coefficient (see Calculating Variables) require reference, or free-stream values. If you loaded your data with the PLOT3D loader, this information has probably been loaded along with the data. Otherwise, you may supply this information using the Reference Values dialog.

For a layout with multiple datasets, separate settings are maintained for each dataset. You can copy the settings from one dataset to another using the Save Settings and Load Settings options in the Analyze menu. These actions also transfer the settings made in the Fluid Properties, Geometry and Boundaries, Field Variables, and Unsteady Flow Options dialogs.

There must be data in the active frame for the Reference Values dialog to be displayed. The Reference Values dialog is shown below.

reference values

The dialog options are as follows:

U Velocity/Mach Number

the first two text fields, you may specify free-stream velocity as either U Velocity and V Velocity, or as Mach Number and Angle of Attack. (Z-velocity is assumed to be zero.) Angle of attack must be specified in degrees; flow proceeding in the +X- and +Y-direction has a positive angle of attack. For incompressible flow (see Specifying Incompressible Fluid Properties) only U and V-velocities may be specified.

Pressure/Density

The third text field allows you to specify either Density or Pressure. Select the corresponding option in the drop-down. For incompressible flow, you must specify Pressure, because density is specified in the Fluid Properties dialog.

V Velocity/Angle of Attack

If the first field is set to U Velocity, set this field to V Velocity. If it is set to Mach Number, set this field to Angle of Attack.

Temperature/Sound Speed

The final text field allows you to specify Temperature or Sound Speed. Temperature must be in absolute units, such as Kelvin or Rankine. For incompressible flow you must specify temperature. For incompressible fluids, the speed of sound is undefined and the density of the fluid is constant.

Identifying Field Variables

Data analysis is performed on data in the active frame. Many of these calculations require information about what the data represents. For example, if you wish to calculate pressure from your data you must identify two other thermodynamic state variables with which Tecplot 360 can perform the calculation using the thermal equation of the state. X, Y, and Z are taken from the axis assignments for the 2D or 3D plot in the active frame. The FLUENT and PLOT3D data loaders supply most or all of the remaining information to Tecplot 360. You may also supply this information using the Field Variables dialog.

For a layout with multiple datasets, separate settings are maintained for each dataset. You can copy the settings from one dataset to another using the Save Settings and Load Settings options in the Analyze menu. These actions also transfer the settings made in the Fluid Properties, Geometry and Boundaries, Reference Values, and Unsteady Flow Options dialogs.

You must have data in the active frame to open the Field Variables dialog. The Field Variables dialog is shown below

field variables

The top section of the dialog allows you to specify a vector of convective variables, either velocity or momentum (velocity multiplied by density). The bottom section of the dialog contains two drop-down menus and associated text fields for identifying two thermodynamic state variables in your dataset.

The variables selected in the Field Variables dialog are per unit volume.

Choosing the Convective Variables

Select the convective variables in your dataset by clicking the Select button in the top section of the Field Variables dialog. Choose one of the two options on the Field Variables dialog to indicate whether these variables represent pure velocity or momentum.

The convective variables used in data analysis are not the same variables that are used to create vector plots for your solution data, though their initial values may be set the same.

Identifying State Variables

The State Variables region of the dialog allows you to identify up to two variables, such as pressure and temperature, in your data. From the two drop-downs, select any two choices from the types: Pressure, Temperature, Density, Stagnation Energy, Mach Number, or Not Used. Then click Select, and choose the corresponding variable(s) from your data. If you have only one thermodynamic variable, select "Not Used" in one of the drop-downs. For incompressible flow, (see Specifying Incompressible Fluid Properties) you may specify Pressure for one variable, and you may specify Temperature or Stagnation Energy (per unit volume) for the other.

Temperature must be in absolute units, such as Kelvin or Rankin.

The Select button launches the Select Variables dialog which allows you to select variables in your dataset. The selections in the drop-down menus mentioned above determine whether these variables represent pressure, temperature, density, stagnation energy or Mach number.

Setting Geometry and Boundary Options

For certain calculations, you will need to specify information about your data that Tecplot 360 may not automatically detect. For example, a 2D solution may actually represent a 3D axisymmetric solution, affecting any integrations you perform. Adjacent zones may be connected, affecting other calculations such as grid stretch factors, gradients, and flow features such as vortex cores. Certain zones or zone surface regions may represent wall boundaries in your solution, on which separation and attachment lines may be calculated. The FLUENT data loader identifies most of these characteristics for you when you import FLUENT case and data files. You may also specify them with the Geometry and Boundaries dialog (accessed via the Analyze menu).

For a layout with multiple datasets, separate settings are maintained for each dataset. You can copy the settings from one dataset to another using the Save Settings and Load Settings options in the Analyze menu. These actions also transfer the settings made in the Fluid Properties, Reference Values, Field Variables, and Unsteady Flow Options dialogs.

You must have data in the active frame to launch the Geometry and Boundaries dialog. Select "Geometry and Boundaries" from the Analyze menu to display the dialog.

geometry and boundaries
Specifying an Axisymmetric Solution

Selecting Axisymmetric About Variable enables the Variable drop-down menu and allows you to enter a value in the Equals field. Select X or Y from the Variable drop-down, and enter the constant value of this variable that defines the axis of symmetry. If you choose the axisymmetric option, all integrations will be performed as 3D axisymmetric integrations by multiplying the integrand by where is the distance from the specified axis of symmetry. Integrations are described in Performing Integrations.

Connecting Adjacent Zones

Tecplot 360 can calculate whether nodes on the boundaries of adjacent zones (or the same zone) overlap. It uses this information in calculating the Stretch Ratio grid quality function (see I, J, K-stretch Ratio), calculating gradients, and extracting fluid flow features (see Extracting Fluid Flow Features). Connections between zones are calculated cell face by cell face. The two cells are considered connected wherever all nodes of a particular boundary cell face overlap all nodes of an adjacent boundary cell face.

For unsteady flows (see Unsteady Flow), only zones within the same time level are examined for connections. To enable this option, select the Connect Adjacent Zones option and enter the maximum distance at which two nodes will be considered to overlap in the Nodal Proximity text field. Note that this text field value is also used for zone-type boundaries, discussed below.

The zone connection feature is overridden, cell-by-cell, by any face neighbors contained in a dataset. Both connection mechanisms are overridden by any boundary conditions set on a particular face. That is, if you specify a boundary condition in the Geometry and Boundaries dialog that covers a specific cell face, that face will not be connected to an adjacent cell, irrespective of any face neighbors or overlapping nodes present.

Performance Considerations

Establishing connections across zone boundaries allows Tecplot 360 to calculate better gradient quantities at these locations. There may be a substantial performance penalty for ordered-zone calculations, because at these boundary locations, Tecplot 360 uses the finite element least-squares formulation for calculating the gradients. Refer to Gradient Calculations for a discussion of gradient calculations.

Specifying Boundaries and Boundary Conditions

You may associate cell boundary faces (cell faces on the exterior of a zone) with a boundary condition. There are two reasons why you might want to do this:

  • To ensure that boundary faces are not connected to adjacent cells (see the above discussion on connections).

  • To identify wall boundaries in 3D solutions for feature extraction (see Extracting Fluid Flow Features).

If you set a boundary condition on a particular cell boundary face, that face will not be considered connected to any other cells by the gradient calculation routines. This may be advantageous, for example, in solutions containing a thin flat plate, where nodes on either side of the flat plate overlap and would otherwise be connected by the connection mechanism.

For three-dimensional flow solutions, you can use the Extract Flow Features dialog to extract separation and attachment lines. These lines are only calculated on boundaries you have identified as wall boundaries. While other boundary conditions may be specified, this information is not currently used, aside from inhibiting connections.

Specifying the Default Boundary Condition

Tecplot 360 keeps track of all unconnected boundary cell faces (see Setting Geometry and Boundary Options) It applies the default boundary condition to any unconnected faces to which you do not specifically apply a boundary as described below. Choose the desired boundary condition from the Default Boundary Condition drop-down. The default boundary condition is at the bottom of the boundary 'pecking order.' If a cell boundary face is not covered by any other boundary condition, and is not connected to any other cells by either Geometry and Boundaries connection settings or Tecplot 360 face neighbors, then the default boundary condition is applied to it.

Identifying Zone Boundaries

Regions on the boundaries of zones may be explicitly identified and associated with particular boundary conditions. For ordered zones only, you may identify a boundary region by zone boundary (that is, the I=1 boundary) and index range on that boundary. For all zone types, you may identify a boundary region by selecting one or more boundary zones.

Boundary zones are zones of dimension one less than the current plot type. They are surfaces in 3D Cartesian plots, or lines in 2D Cartesian plots. Boundaries are considered to exist wherever the nodes of these boundary zones coincide with nodes on the boundaries of volume zones in 3D Cartesian plots, or surfaces in 2D Cartesian plots. For example, you can identify boundary regions on a tetrahedral (3D) zone using triangular zones that lie on the surface of the tetrahedral zone. The boundary is applied wherever the nodes of the triangular zone overlap boundary nodes of the tetrahedral zone. As with connecting adjacent zones, the matching is done cell face by cell face using the Nodal Proximity setting of the Geometry and Boundaries dialog to determine how close to each other nodes must be to be considered overlapping.

It is easy to create boundary zones by extracting subzones from ordered zones in your dataset. For finite element zones, it may be possible to extract the desired boundary region using blanking and FE-boundary extraction. In general, however, finite element boundary zones must come from your grid generator or flow solver.

New boundaries are created by clicking New on the Geometry and Boundaries dialog. This displays The Edit Boundary dialog, shown below.

Displaying Boundaries

The current settings of the Geometry and Boundaries dialog may be displayed by clicking the [Display Boundaries] button. This creates a new frame and plots all zone boundaries. For each zone in your solution data, one zone will be created in the new frame for each boundary condition applied to the boundary faces of that zone. The names of these zones indicate their zone of origin in your solution data and the applied boundary condition.

For each boundary face in your solution, Tecplot 360 applies some simple rules to determine that face’s boundary condition. First, all faces covered by the boundary definitions in the Boundaries list have the boundary conditions prescribed in the list applied to them. If a particular face is covered by more than one of these boundaries, the boundary lowest in the list takes precedence. If you have selected the Connect Adjacent Zones option, any faces not covered by the listed boundaries are then checked to see if they overlap faces of neighboring zones. Overlapping faces are assigned the boundary condition 'Interzone Boundary.' Finally, any boundary faces not assigned any other boundary condition will be assigned the default boundary condition you have chosen.

Since the Geometry and Boundaries dialog is modeless, you can explore the boundary definitions in this new frame prior to applying your settings. This is a convenient way to make sure you are applying the desired boundary settings.

Selecting the [Display Boundaries] button records a DISPLAYBOUNDARIES macro command if you are recording a macro file.

Since this feature creates a new frame, it cannot be saved in the data journal, and the current data journal is invalidated. If you subsequently save a layout file, you will be prompted to save a new data file.

Saving Geometry and Boundary Settings

Once you are satisfied with your geometry and boundary settings, you can save them by selecting the [Apply] button. When you apply your settings, a SETGEOMETRYANDBOUNDARIES macro is recorded (if you are recording a macro file).

The Edit Boundary dialog

The Edit Boundary dialog is displayed by clicking New on the Geometry and Boundaries dialog, or by selecting an existing boundary and then selecting Edit.

edit boundary

It allows you to identify a boundary of one or more zones, either by entering the zone number(s), face and index range on that face, or by entering the zone numbers of boundary zones, as discussed in Setting Geometry and Boundary Options. Enter the desired options and select OK to add the boundary to the Geometry and Boundaries dialog.

Using Index Range-type Boundaries

For ordered zones, you may identify boundary regions by choosing a zone boundary, or face, and index ranges to specify a region on the face. To create an index range-type boundary, select Zone, Face and Index Range, and choose the desired boundary condition from the Boundary Condition drop-down menu. Select the zones to which this boundary will apply by entering their zone numbers in the Zone Numbers text field, or clicking [Select] and choosing the zones from the resulting dialog. (See Performing Integrations for a description of the Select Zones dialog.) If you have selected zones by clicking in the work space, you may enter these zone numbers by clicking Use Selected. Choose a face from the Zone Face drop-down and enter the index ranges in the remaining text fields. When you select OK, the new boundary will appear in the Boundaries list in the following format:

<bc>,<set>,<face>,INDEX1MIN,INDEX1MAX,INDEX2MIN,INDEX2MAX

<bc> is the boundary condition, one of Inflow, Outflow, Wall, Slipwall, Symmetry, and Extrapolated. <set> is the set of zone numbers to which the boundary applies, enclosed in square brackets. <face> is one of I=1, I=IMAX, J=1, J=JMAX, K=1, and K=KMAX and the remaining parameters are the minimum and maximum indices on the face, with zero indicating the maximum index value, and negative numbers indicating offsets from the maximum index value. For example, the following line would indicate a wall boundary condition set on the J = 1 face of zones 2, 4, 5, and 6 from I = 1 to IMax and K = 3 to KMax - 2:

Wall,[2,4-6],J=1,1,0,3,-2

Using Boundary Zone-Type Boundaries

For all zone types, you may identify boundary zones, as discussed in Setting Geometry and Boundary Options. Toggle-on Specify Boundary Zones and choose the desired boundary condition from the Boundary Condition drop-down menu. Enter the zone numbers of the boundary zones, or click Select and choose them from the resulting dialog. The boundary will be applied to any volume (3D) or surface (2D) zones in the dataset. The boundary appears in the Boundaries list in the following format:

<bc>,<set>

where <bc> is as described above, and <set> is the set of boundary zones that define the boundary.

Unsteady Flow

Tecplot 360 can perform particle path and streakline calculations for unsteady flow solutions. To enable this feature, it must know which zones correspond to which solution time levels in your unsteady solution. Each solution time level may comprise one or more zones, which may be ordered, finite element, or both. Many data loaders supply this information. You may also enter it in the Unsteady Flow Options dialog.

For a layout with multiple datasets, separate settings are maintained for each dataset. You can copy the settings from one dataset to another using the Save Settings and Load Settings options in the Analyze menu. These actions also transfer the settings made in the Fluid Properties, Reference Values, Field Variables, and Geometry and Boundaries dialogs.

The Unsteady Flow Options dialog, shown below, is displayed by selecting Unsteady Flow Options in the Analyze menu.

unsteady flow options

It contains an option allowing you to specify that your solution is steady-state, a list to display unsteady time levels you enter, as well as controls for entering new time levels.

Specifying a Steady-state Solution

To direct Tecplot 360 to treat your dataset as representing a steady-state solution, select the Flow Solution is Steady-State option. This setting disables the remainder of the dialog.

To direct Tecplot 360 to treat your dataset as an unsteady solution, toggle-off Flow Solution is Steady-State. This enables the remainder of the dialog, where you can identify your solution time levels.

An unsteady flow solution consists of a sequence of zones that represent successive solution times. Each time level may be represented by one or more zones. Identify solution time levels by entering the zone number(s) for a particular solution time level in the Zones text field and the time they represent in the Time text field, then selecting [Add]. The zones and associated time appear in the Solution Time Levels list. You may edit an existing time level by selecting it in the list. Its time and zones appear in the text fields, where you may edit them. Clicking Replace updates the currently selected list time level with the modified one.

By manually entering each time and associated zones in the text fields, you may identify all solution time levels in the current dataset. For large numbers of zones, two additional methods of entering time levels are provided. If your solution, or some portion of it was calculated with a constant time step, you may use the Group Zones by Time Step Dialog to enter all of these time levels at once. Alternatively, if your zone names contain the solution time each zone represents, you may enter all of your time levels by parsing the zone names for their corresponding solution time. These options are discussed below.

Group Zones by Time Step Dialog

The Group Zones by Time Step dialog allows you to enter a sequence of solution time levels into the Unsteady Flow dialog more easily than manually entering each time level.

group zones by time step
Starting Zone

Enter the first zone of your solution data that you wish to be included in the grouping operation.

Ending Zone

Enter the final zone of your solution data that you wish to be included in the grouping operation.

Zones per Level

Enter how many zones represent each solution time level.

Starting Time

Enter the solution time which will be assigned to the first zone or group of zones identified in this operation.

Time Step

Enter the time step of your solution. The solution time of each time level will be calculated by adding this time step to the previous time level’s solution time.

Add to List

Toggle-on to add all time levels identified by this operation to any time levels which already exist. If the time calculated for any of the new levels already exists in the list, this will generate an error.

Replace List

Toggle-onto replace any time levels in the list with the time levels identified in this operation.

Parsing Zone Names for Solution Time

If the names of your solution zones contain the solution time they represent, you may automatically enter all time levels by parsing the zone names for these times. Zones of the same solution time will be grouped together. The times must be preceded in the zone name by some identifiable text, such as "Time=." Enter this text (without quotes) in the text field, then select Parse.

This action will first delete all existing time levels, and then attempt to parse the zone names for new time levels. You may wish to view your zone names before attempting this action. You may view and edit zone names with the Data Set Information dialog (accessed via the Data menu).

Calculating Variables

The PLOT3D functions create dataset variables which are derived from CFD grids and solution data. This group of functions initially appeared in NASA’s PLOT3D program and were expanded in PLOT3D’s successor, FAST. The functions include grid quality measures, as well as scalar and vector flow variables. For a complete list of functions, refer to Calculate Variables Reference. The functions are calculated with the Calculate dialog.

Many of these calculations are affected by settings in the Fluid Properties dialog (see Specifying Fluid Properties), the Reference Values dialog (see Specifying Reference Values) and the Field Variables dialog (see Identifying Field Variables)

For the Calculate dialog to be displayed, the active frame must contain a dataset. The Calculate dialog, shown below, may then be displayed by selecting Calculate Variables in the Analyze menu.

calculate
Name

This text field indicates which function will be used for the calculation. Type in the name of the desired function, or click Select to choose from a list of all available functions (see the Selecting a Function dialog). Alternatively, you may enter the equivalent PLOT3D function number, as shown in the Calculate Variables Reference.

Normalizing a Function

A function may be normalized in one of two ways:

Maximum Magnitude

Divides the function value at each grid point by the maximum value in magnitude, such that the absolute value of the function is never greater than one. For vector functions, each vector component is divided by the maximum vector length.

Reference Values

Divides the function value at each grid point by the same function calculated with the reference values (the values entered in the Reference Values section of the dialog). This is the type of normalization performed by PLOT3D in its normalized functions. This option is not available for grid quality functions, since no meaningful reference values exist for these functions. It is also not available for functions whose reference value is zero, such as pressure coefficient.

No Normalization

Select to disable normalization.

New Var Location

You may select the location (nodal or cell-centered) of new variables created during a calculation with the New Var Location dropdown. Variables that already exist in the dataset keep their existing locations.

Calculate on Demand

This option adds the selected variable to the dataset, but delays the actual calculation until it is needed. This is discussed in more detail below.

Calculating the Function

Selecting Calculate performs the calculation for each zone in the active frame. If this is the first time the selected function has been calculated, a new variable is added to the dataset with the name of the function. Otherwise, you will be prompted to overwrite the previously calculated variable with new values. For vector functions, each component of the function is added to the dataset, with X, Y, and Z prefixed to the variable name, and (vector) removed from the name. If the function is normalized, (Max-Normalized) or (RV-Normalized) is appended to the variable name, depending on the option selected. Upon completion of the calculation, you will be informed of the new variable’s minimum and maximum values and their locations.

Shared Variables

If variable sharing is enabled, all variables from which the function is calculated are shared between multiple zones, and they and the calculated variable are all at the same location (cell-centered or nodal), the new variable will be shared as well. You can see which variables in a dataset are shared in the Data Set Info dialog (accessed via the Data menu).

Calculate-on-demand Variables

Variables calculated with the Calculate-on-demand option are added to the dataset, but are not calculated until they are needed. This can save a lot of time when working with unsteady solutions where only a small number of zones are displayed at any given time. Displaying a contour plot of the calculated variable will only result in calculation of the variable for the currently active zones. Activating new zones (by, for example, advancing the solution time displayed in Tecplot 360) will result in the calculation being performed only for the newly displayed zones.

If you wish to force the variable to be calculated for all zones at once, you may re-do the calculation with the calculate-on-demand toggle-off.

A calculate-on-demand variable is a function of other variables in the dataset and is calculated using the Calculate dialog. Calculate-on-demand variables are recalculated whenever a variable that they are a function-of is recalculated. For example, given Pressure = f(Gas Constant), if the value of Gas Constant changes, Pressure is recalculated.

You cannot modify a variable that is calculated on demand.

To avoid circular data dependencies, you are prevented from selecting calculate-on-demand variables in the Fluid Properties or Field Variables dialogs. In addition, you cannot delete any variables on which a calculate-on-demand variable is dependent.

If you plan to make a sequence of changes to your data and analysis settings, you can inhibit these automatic recalculations by turning off Tecplot 360’s Auto-Redraw feature. Recalculation will then take place only when you redraw the frame.

Undoing a Calculation

If the data journal is valid, alterations made to the dataset with the Calculate dialog may be undone by selecting Undo from the Edit menu. This will result in Tecplot 360 re-executing the data journal, which may be a lengthy process.

Selecting a Function

The function name may be typed into the Name text field, or selected from a list which contains all available functions. Click [Select] to display the Select Function dialog.

select function

Selecting a function from this dialog and selecting OK enters that function in the appropriate area. Functions in this list which only apply to 3D solution data begin with (3D). Vector functions, whose names are appended with (vector), calculate three vector components. Each of the available functions is described in Calculate Variables Reference.

An alternative method of selecting a function is to enter its equivalent PLOT3D function number. These numbers may also be found in Calculate Variables Reference. If a valid function number is entered into the Name text field in the Calculate dialog, Tecplot 360 replaces the number with the name of the corresponding function and sets the Normalize drop-down to None or Reference Values as appropriate.

Gradient Calculations

Most of the PLOT3D functions are scalar functions. Gradient calculations are a notable exception to this rule, however, and depend on values at neighboring points. Understanding how these calculations are performed may help you interpret the results.

Gradients in Ordered Zones

With an exception for boundary nodes discussed below, gradients in ordered zones are calculated using standard finite-difference formulae. To calculate pressure gradient at a particular node in an ordered zone, for example, the following formula is used:

Where indicates the I-direction, indicates the J-direction, indicates the K-direction and subscripts indicate partial derivatives. In the zone interior, derivatives are estimated with second-order central differences, such as:

or

The left-hand form is used for calculating gradients at nodes, and the right-hand form is used at cell centers.

Boundary nodes of ordered zones that are not part of a boundary specified in the Geometry and Boundaries dialog are first examined to see whether they lie on a boundary face connected to other cells via face neighbors. If not, and if the "Connect Adjacent Zones" option is set in the Geometry and Boundaries dialog, the node is examined to determine if its location coincides with any boundary nodes of adjacent zones. If either is the case, the gradients for that node is calculated using the method described below for finite element zones. Otherwise, its gradients are calculated using standard one-sided (first-order) finite differences.

Gradients in Finite Element Zones

The coordinate transformation approach used in unconnected ordered zones is generally not possible for finite element zones. Instead, the variable, say pressure, is assumed to vary linearly in all dimensions, giving:

where is the pressure at the node or cell center in question. Next, a matrix equation is formed with the pressure difference for all nodes neighboring the current node (see below for how these neighboring nodes are found).

To reduce the influence of nodes far away from the value being calculated, each row i of this matrix equation is scaled by:

Where is the distance from node i to the target location (node or cell center) and:

This equation is generally over-specified and is inverted by least-squares to find the gradient vector.

If the cell-centered gradient is being calculated, each row in the above matrix equation is calculated from the values at the nodes that comprise the cell. If a node-centered gradient is being calculated, all nodes connected to that node by a cell edge are used. If the node lies on a zone boundary and is not covered by a boundary specified in the Geometry and Boundaries dialog, two additional steps are taken to give more continuous gradients across the zone boundary:

  1. If the node is part of a face connected to other cells by face neighbors, then the nodes of those neighboring cells are also used;

  2. Otherwise, if the "Connect Adjacent Zones" option is enabled in the Geometry and Boundaries dialog, the node is examined to see if its location coincides with a boundary node in an adjacent zone. If so, all nodes connected to that node by a cell edge are also used.

Surface Normal Calculations

With Tecplot 360’s CFDA variable calculation feature, you can calculate and display surface normal vectors on your plot. This includes the following steps:

  1. With the Calculate dialog, calculate the "Grid K Unit Normal (vector)", using Cell Center as the New Var Location.

  2. Turn on the Vector layer, selecting the components of the vector you just calculated as the vector components.

  3. In the Zone Style dialog, on the Points page, choose "Cell Centers Near Surfaces" as the Points to Plot.

In detail, the steps above include the following.

To calculate the normal, choose "Calculate Variables" from the Analyze menu. In the Calculate dialog, choose "Grid K Unit Normal (vector)" as the variable to calculate (to do this, click the Select button, and scroll down in the list that appears to find "Grid K Unit Normal (vector)", and click it). Choose "Cell Center" as the New Var Location, and click Calculate.

Next, toggle-on the Vector layer in the Plot sidebar to turn on the normal vectors, and choose the components of the calculated vector to display in the Select Variables dialog for vectors. This dialog appears when you toggle-on the vector layer for the first time; you can also open the dialog by going to Plot → Vector → Variables in the menu bar. To display the "Grid K Unit Normal (vector)" normal, choose the three components "X Grid K Unit Normal", "Y Grid K Unit Normal", and "Z Grid K Unit Normal" for the X, Y, and Z components of the vector layer, respectively.

Lastly, click the Zone Style button in the Plot sidebar to open the Zone Style dialog. In that dialog, switch to the Points page, and choose "Cell Centers Near Surfaces" from the Points to Plot menu.

If you wish to display normal vectors on a plot that does not have an identifiable plane to use, choose "Extract" from the Data menu, and choose "FE-Boundary". In the Extract FE-Boundary dialog, extract a boundary zone from a source zone. You can then use the extracted zone to display the normal vectors.

Performing Integrations

Tecplot 360 provides a flexible integration feature. You can integrate scalar dataset variables as well as vector variables dotted with grid unit normal or unit tangential vectors, and you can integrate by zone in a single time step, or by time strand. Tecplot 360 also has several pre-defined integrations, such as mass flux, which simplify the integration process. In ordered zones, you can integrate these quantities over cell volumes, face areas, or lines. In finite element zones, you can integrate over cell volumes. In addition, you can calculate lift, drag, side force and moments due to pressure and viscous forces acting on a surface or a set of surfaces.

The Integration feature refers to cell volumes in its user interface. In 2D or 1D zones, the cell area or length, respectively, is used in place of the volume.

The results of the integration may be displayed in a text window (and subsequently saved to a text file), or plotted in a frame. In the latter case, the solution time of the integration plot’s frame is linked to the original frame’s solution time and a marker gridline is displayed on the integration plot to indicate the time step. All of these features are accessed via the Integrate dialog (accessed via Analyze→Perform Integration).

Many of these calculations are affected by settings in the Fluid Properties dialog (see Specifying Fluid Properties), the Reference Values and Field Variables dialog (see Identifying Field Variables) and the Geometry and Boundaries dialog (see Setting Geometry and Boundary Options).

Integrations of a variable or variable function use the trapezoidal method, and are second-order accurate. For each segment, face, or volume cell, the appropriate nodal or cell-centered values are averaged and multiplied by the cell length, area or volume. The calculation sums the resulting quantities over the zone or specified subset to produce the integrated result.

The Integrate dialog is displayed by selecting Perform Integration from the Analyze menu.

integrate

The resulting dialog provides options to specify the zone(s) of integration, the variable to be integrated, the domain of integration and display methods.

Type of Integration

Tecplot 360 can perform simple, path, surface, and volume integrals. Refer to Integrate Over to see how to select these using the current plot type. Tecplot 360 defines the following fourteen integration types:

Length/area/volume

The physical size of the integration domain.

Scalar

The integral of a single variable.

Average

The area or volume-weighted average of a single variable over the domain.

Mass weighted scalar

The integral of a single variable multiplied by density.

Mass weighted average

A weighted average of a single variable, with density as the weighting function.

Weighted average

A general weighted average—both the variable and the weighting function are specified.

Scalar flow rate

The convection of a scalar through a surface. It is calculated by integrating the dot product of the flow velocity and the surface unit normal multiplied by the scalar variable.

Mass flow rate

The convection of density through a surface. This is calculated by integrating the dot product of the flow velocity and the surface unit normal multiplied by the density.

Mass weighted flow rate

The convection of a scalar multiplied by density through a surface. This is calculated by integrating the dot product of the flow velocity and the surface unit normal multiplied by the scalar variable and density.

Mass flow weighted average

The weighted average of a scalar variable on a surface. Here the weighting function is the dot product of the flow momentum vector (velocity multiplied by density) and the surface unit normal.

Forces and moments

The integral of pressure and viscous stresses on a surface. The Forces and Moments option integrates pressure and shear stresses over lines (2D) and planes (3D). Pressure is assumed to act in the opposite direction of the unit normals. These are calculated by integrating the dot product of the stress tensor and the surface unit normal. This will correctly calculate lift and drag if, for example, you have a 2D airfoil defined by the J=1 line and you integrate forces and moments over I-lines (or J-planes) for J=1.

For proper calculation of viscous forces, make sure you have set the value of viscosity in the Fluid Properties dialog. (See Specifying Fluid Properties.) If your flow is inviscid, you should exclude viscous forces from the integration by setting viscosity to zero.

Forces and Moments are calculated as six quantities: X, Y and Z-Force and X, Y and Z-moments about the origin. For backward compatibility, the forces are also displayed as Lift, Drag and Side force. Lift and Drag are the forces rotated in the XY-plane such that Lift is normal to the reference flow direction (specified on the Reference Values dialog) and Drag is parallel to it. Side force is equal to Z-Force.

If an I-ordered zone (in 2D) or a surface zone (in 3D) has been defined as a boundary to a surface (2D) or volume (3D) zone, then you can perform a Forces and Moments integration over this boundary zone. Tecplot 360 takes the shear stress and unit normal direction from the associated zone. This allows you, for example, to perform Forces and Moments integrations for finite element solutions, provided you have a line or surface zone that defines the surface, and you have identified this zone as a boundary zone in the Geometry and Boundaries dialog.

Vector-dot-normal

The integral over a surface of a vector dotted with the surface unit normals. Here the components of the vector are dataset variables.

Vector average

A weighted average of a scalar variable on a surface. The weighting function is the dot product of a vector with the surface unit normal. Both the scalar and the vector components are dataset variables.

Vector-dot-tangential

The integral on a line of a specified vector dotted with the line unit tangential vector.

Options that involve a unit normal must be integrated over a domain where the unit normal direction can be determined. Acceptable domains include lines in 2D or planes in 3D, as well as triangular or quadrilateral zones in 3D. The vector-dot-tangential options can only be integrated over lines. Unit normals are discussed further in Surface Normal Calculations. If you have selected the 2D Cartesian plot type and have specified that the geometry is axisymmetric, an axisymmetric integration will be performed. Tecplot 360 multiplies each grid segment’s or cell’s contribution to the integration by , where is the distance from the centroid of the segment or cell to the axis of symmetry.

Integrations involving surface unit normals, such as Mass Flow Rate and Forces and Moments integration, rely on surface unit normals pointing in a consistent direction (that is, toward the same side of the surface zone). This is guaranteed for ordered surface zones, but not for finite element surface zones (triangular, quadrilateral, or polygonal), including extracted slices. For these zones, the surface unit normal direction for each face is calculated using the right-hand rule with the node order for the face. If the nodes for some faces progress clockwise around the face while other faces' nodes progress counter-clockwise (as defined by the zone’s connectivity), the faces' surface normals will point in inconsistent directions, and any integration that relies on these normals will not produce meaningful results. You can check for this condition using the technique for visualizing surface unit normals described in Surface Normal Calculations.

Similarly, an integration that sums results from multiple surface zones may not be meaningful because the normals from one zone may be inconsistent with the normals of some other zone.

Integrand

Some of the available types of integrations require you to choose variables from your dataset to be integrated. Where required, fields in the Integrand section of the dialog will be enabled. You may type in the variable names, or click Select to choose variables.

For Forces and Moments integrations, pressure and the components of velocity are calculated from the field variables identified on the Field Variables dialog.

Specifying the Domain of Integration

The domain of integration is defined by zone or time strand numbers and index ranges. For ordered zones, you may choose whether to integrate over lines, planes, or volumes. You may also choose to use the absolute value of calculated volumes, which can be useful for finite element zones where the node ordering may result in erroneous calculations. Finally, you can choose to exclude regions not displayed due to index or value blanking. Please refer to Blanking for more information on blanking.

Integrate By

The Integrate By drop-down menu lets you specify whether to integrate over specific zones or specific time strands.

Integrate Over

The Over drop-down menu allows you to specify cells, planes of constant I, J, or K, or lines of varying I, J, or K. For tetrahedral and brick finite element zones, only volume integration is allowed. For quadrilateral and triangular finite element zones, only K-planes are allowed (selecting Cells for these zones is equivalent to selecting K-planes, since they are logically 2D). For 2D and 3D Cartesian plot types, integrations over lines are performed as path integrals and integrals over planes are performed as surface integrals. Integrals in XY line plots integrate the chosen variable along the X axis to calculate the area between the curve and the X axis. Volume integrations should be done in 3D Cartesian plots—volume integrations in 2D Cartesian plots will give zero results.

If a vector dot product is to be integrated, then the domain must have an identifiable normal or tangential direction. In 3D Cartesian plots, this usually means I, J, or K-planes will be selected. The normals in these cases will point in the +I, +J, and +K-directions, respectively, or the reverse for a left-handed grid. I,I, J, and K-planes do not have an identifiable tangential direction, so vector-dot-tangential integration over planes generates an error.

If I, J, or K-Lines are selected, the tangential vectors point in the positive-index direction. Vector-dot-normal integration is also available, but may not be meaningful—the normal is calculated by taking the cross-product of the tangential and the +Z-axis.

In 2D Cartesian plots, I-planes are equivalent to J-lines, J-planes is equivalent to I-lines, and K-planes is equivalent to cells. (It may be better to ignore planes in two dimensions.) Both normal and tangential directions are available in all cases. However, the normal to K-planes points in the third dimension; it may not be meaningful.

For quadrilateral and triangular finite element zones, the normal direction is found with the right-hand rule—if the fingers of the right hand are curled in the direction of a line drawn from cell node 1 to node 2, thence to node 3, then the thumb will point in the direction of the normal.

Zones/Time Strands

Depending on whether you have chosen to integrate by zones or by time strands, this text field allows you to specify which zones or time strands the variable will be integrated over. You may enter a single zone or strand, a range with a hyphen (for example, 3-5), or a combination of these, separated by commas (,). For convenience, the [All] button will set this text field to indicate all zones or time strands. The [Active] button will list all zones or time strands currently active. You may also select items from a list by clicking Select, which calls up a separate selection dialog.

Specifying Index Ranges

Below the Zone or Time Step field are I, J, and K-index ranges. These ranges will be applied to each zone over which the integration is performed. The three comma separated items in each index range indicate the starting index, the ending index and the skip factor, respectively.

For finite element zones, only the J-index settings have effect. These indicate the range of cells over which the integration will be performed. For reasons discussed below, a skip factor of 1 is probably desirable for these cases.

To enter or change an index range, select the button over the desired range’s text field. The Enter Range dialog will be displayed.

enter range

Enter the starting index in the Begin field, the ending index in the End field, and the skip factor in the Skip field.

You have two options for entries into the End field. You can enter a number, in which case the maximum allowable value is displayed at the top of this dialog, and indicates the smallest size of the given index for all of the zones listed on the Integrate dialog. Alternatively, you can enter "Mx" to use the maximum index for each individual zone, "Mx - 1" to use one less than the maximum and so on. A skip factor of 1 means "use every point in the range," a skip of two means, "use every other point", and so forth.

For linear and planar integration, skip factors are ignored along the line, or within the plane of integration. For example, if you are integrating along I-lines, the I-skip factor will be ignored. If you are integrating along an IJ-plane (for example), both I- and J- skip factors are ignored. For volume cells, all skip factors are ignored. Minimum and maximum index values are always used.

Time Min/Max

When integrating by time strands, these fields appear to the right of the Index Range, allowing you to specify the starting and ending time steps for the integration. Click the Reset Min/Max button to set these fields to the first and last time steps in your data set, respectively.

Use Absolute Values of Volume

Takes the absolute value of the volumes of 3D grid cells used for integration. This is useful if you have a finite element grid with arbitrary node ordering such that the calculated volume of cells may be positive or negative. Negative grid cell volumes occur when left-handed grids are used in Tecplot 360. A right-handed ordered zone will have the +J-direction proceeding to the left of the +I-direction when viewed from the +K-direction. For finite element zones, the nodes of each cell will proceed counter-clockwise when viewed from the direction of the highest-numbered node.

Exclude Blanked Regions

Removes from the integration domain portions of any zones that are hidden due to value or index-blanking. (Note that 3D depth blanking has no effect.)

Excluding blanked regions can lead to unexpected results, depending on the blanking settings. In particular, note that blanking options allow for a cell to be blanked when any of its nodes is blanked, when its "primary" (or lowest-numbered) index is blanked, or only when all of its nodes are blanked. As a result, cells may still be displayed where some nodes have been blanked. Figure 1 illustrates this effect. Index-blanking has been used to blank all nodes along the J=1 line, but all cells are still displayed. An integration over volumes or K-planes would include the entire mesh, while integrations over I-lines or J-lines would exclude the J=1 line. In general, display the Mesh layer to see the domain of integration if you are integrating over volumes in 3D or planes in 2D, and display the Scatter layer to see the remaining types of integration domain. See Blanking for more information on blanking.

cfda blanking node cell
Figure 1. The effect of blanking on nodes and cells.
Performing the Integration

Selecting Integrate at the bottom of the Integrate dialog will perform the integration and display the results. Tecplot 360 uses the trapezoidal method, a second-order method which averages nodal values to cell, face, or edge centers, then sums the products of these values with the corresponding cell volumes, areas, or lengths.

Specifying Display Options

Displaying Tabulated Results

You can display the results of an integration in a text dialog, plotted, or both. The options at the bottom of the Integrate dialog (accessed via Analyze→Perform Integration) control these settings. When you have "Show Tabulated Results" toggled-on, integration results will appear in a text dialog, as shown below.

integration results

This dialog presents two additional options. Selecting the Save button displays a file selection dialog which allows you to save the integration results to a text file. The [Make Text] button places a text field containing the results into the active frame. Make sure you have the frame in which you wish to place the results selected as the active frame before you select this button.

Plotting Results

Setting the Plot Results As check box results in the integration results being plotted in a new frame. Each zone or time strand used in the integration results in a corresponding zone being created in this frame. For Cell integrations, the plot will not be useful, because it will contain only a single point in each zone. For plane (in 3D) or line integrations where multiple planes or lines are integrated in each zone or time strand, plotting can be very useful. In these cases, the results for each plane or line are plotted versus the corresponding index or indices.

When integrating by time strand, a new variable called "Solution Time" will be generated and plotted as the independent variable. Integration results for co-relevant zones are summed to a single point for each solution time. If no relevant zones exist at a given solution time, the integration is zero at that time step.

For all integrations except Forces and Moments, the text field to the right of the Plot Results As check box may be used to name the variable used to hold the integration results in the results plot. For Forces and Moments, the nine variable names will be Lift, Drag, Side, X-Moment, Y-Moment, Z-Moment, X-Force, Y-Force and Z-Force, with Lift initially being the only variable displayed.

Because the plotting feature creates a new frame, it cannot be saved to the data journal, and the current data journal is invalidated. If you subsequently save a layout file, you will be prompted to save a new data file.

Accessing Integration Results in Macros

Macro commands may access the results of the most recent integration through specific environment variables. Each of these variables represents the total over all zones (the final number shown in the Integration Results dialog). For all integration types except Forces and Moments, the single result is stored in the variable INTEGRATION_TOTAL. Table 1 shows the variable names for forces and moments.

Table 1. Environment variables for integration results.
Integration Types Environment Variables

Forces and Moments

INTEGRATION_LIFT
INTEGRATION_DRAG
INTEGRATION_SIDE
INTEGRATION_XMOMENT
INTEGRATION_YMOMENT
INTEGRATION_ZMOMENT
INTEGRATION_XFORCE
INTEGRATION_YFORCE
INTEGRATION_ZFORCE

All other types

INTEGRATION_TOTAL

Environment variables are accessed in macros in the same way as regular macro variables, except that a $ is prefixed to the variable name. For example, the following macro command would display the result of the most recent scalar integration:

$!PAUSE "Integration total = |$INTEGRATION_TOTAL|"

You can also access integration results as frame auxiliary data. For example, to access the INTEGRATION_TOTAL variable as aux data, use the following syntax:

INTEGRATION_TOTAL = &(AUXFRAME:CFDA.INTEGRATION_TOTAL)

Integration Examples

The following sections demonstrate potential uses of the Integrate dialog.

Calculating the Volume Under a Surface

Figure 2 shows a 3D surface. We want to calculate the volume between that surface and the Z=0 plane. To do this, integrate Z over the projection of the surface onto the Z=0 plane. To get this projection, switch to 2D Cartesian plot type. Ensure that the same variables used for X and Y in 3D are used for X and Y in 2D using the Assign XYZ dialog (available in the Plot menu).

cfda calc vol under surf
Figure 2. A 3D surface.

To set up the Integrate dialog to perform the integration, choose Scalar as the integration type and Z as the scalar variable. The remaining controls are left at their default settings. Selecting Integrate displays the volume under the surface. The Integrate dialog and the results are shown in Figure 3].

cfda integration surf
cfda integration results surf
Figure 3. The Integration dialog and the integration results for calculating the volume under the surface shown in Figure 2.

Internal Flow Examples

The next few examples will demonstrate some uses of the Integrate dialog for internal flows, such as flow through a jet engine or a pipe. Our dataset consists of a single I-J ordered zone. It is shown with the mesh and contours of pressure in Figure 4.

nozzle
Figure 4. An internal flow solution.
Calculating Total Mass

To calculate the total mass we must integrate density over volume (or area in 2D). If your dataset does not contain density, it may be determined using the Calculate dialog. (See Calculating Variables) Select the Scalar Integral integration type, choose the density variable as the scalar, then integrate over Cells (which is demoted to K-planes for our IJ-ordered data). When we click Integrate, the total mass appears as the result of the integration. The Integrate dialog and the results are shown in Figure 5.

cfda mass integrall
cfda mass integral results
Figure 5. The Integration dialog and the integration results for calculating the total mass under the surface shown in Figure 4.
Calculating Mass Flow Rate
To calculate mass flow rate, you must first set your convective variables in the Field Variables dialog. See Choosing the Convective Variables for information on setting these variables.

We will now calculate the mass flow rate at various stations in the streamwise direction. This will give us an indication of how well converged our solution is to steady-state. The Integrate dialog makes this easy with the Mass Flow Rate integration type. We select this option and specify integration over J-lines (which is equivalent to I-planes in 2D). Note that the entire Integrand section of the dialog is disabled. Tecplot 360 calculates the necessary variable (momentum) from information entered in the Fluid Properties and the Field Variables dialogs.

We only wish to plot the results, so we select this option at the bottom of the Integrate dialog, specifying that the result be named "Mass Flow." When we select Integrate, the mass flow rate is plotted versus I-index in a new frame. The Integrate dialog and the plotted results are shown in Figure 6. From the results, we see that our solution was not fully converged.

cfda mass flow integral
cfda mass flow integral results
Figure 6. The Integration dialog and the results of calculating the mass flow rate of the object in Figure 4.
Calculating Mass-weighted Stagnation Pressure

We will now calculate a quantity commonly used in engine analysis, the mass-weighted stagnation (or total) pressure. Although it is referred to as "mass-weighted," the weighting function is actually the mass flow rate. Accordingly, select Mass Flow-weighted Average for the integration type, choosing the Stagnation Pressure variable from our dataset (previously calculated with the Calculate dialog). Since we are only interested in this value at the exit plane, we again select J-lines (from the "Integrate Over" drop-down menu), but now specify an I-range of (Mx, Mx, 1) to integrate only the I=IMax plane. We choose only to display the result in a text dialog. Select [Integrate] to perform the calculation. The Integrate dialog and the result are shown in Figure 7.

cfda mass flow weighted integration
cfda mass flow weighted results
Figure 7. The Integration dialog and results for calculating the mass-flux weighted average integral for the data in Figure 4.
Circulation in a Vortex Core

If you can define a closed path in your data over which to integrate, you can calculate circulation using integration. In the Integrate dialog, for Type of Integration, select Vector Dotted with Unit Tangential, and select your velocity components for the Integrand. You then need to identify a line—a closed path—as your Domain of Integration. Click Integrate to display circulation.

Calculating Lift and Drag

Our final example makes use of a three-element airfoil solution, an example of an external flow solution. Our data consists of four zones. Three zones are IJ-ordered zones which capture the Edge layer about each of the elements. The fourth zone is a triangular finite element zone that fills the remaining airspace about the elements. Pressure contours and streamtraces of this solution are shown in Figure 8.

cfda airfoil
Figure 8. A three element airfoil solution.

To calculate lift and drag for this airfoil configuration we use the Forces and Moments integration type. As with Mass Flow Rate, the entire Integrand portion of the Integrate dialog is disabled, because Tecplot 360 will derive the required values (pressure, velocity gradient, and viscosity) from settings in other dialogs. We choose integrate over the surface (J=1) line for each of the three Edge layer zones, the click Integrate. The Integrate dialog and results appears as in Figure 9.

cfda airfoil integration
cfda airfoil integration results
Figure 9. The Integration dialog and the integration results for calculating the lift and drag for the data shown in Figure 8.

The results of each zone are listed separately. Scrolling to the bottom of the Integration Results dialog, we see the total lift and drag, along with other force and moment data.

Specifying the Origin for Moments

set origin

When the Forces and Moments integration type is selected, the [Set Origin] button is active. Selecting this button displays the Set Origin dialog. In this dialog, you may specify the X, Y, Z-location of the origin about which the moments will be calculated.

Select Zones

select zones

To select zones, choose [All], [Active], or [Select] from the Domain of Integration portion of the Integrate dialog. By choosing [Select], you may select the zones you want by clicking in the list, or by selecting [Zone Number] or [Zone Name] in the resultant Select Zones dialog. Selecting [Zone Number] calls up the Enter Range dialog, allowing you to indicate the desired zones by a numeric range. Selecting [Zone Name] prompts you for a pattern string, which is matched against the names of all zones. You may use the asterisk as a wildcard when entering the zone name pattern. All zones whose names match the pattern are then selected in the list.ht.

Calculating Turbulence Functions

Tecplot 360 allows you to calculate and add to your dataset any of four turbulence-related quantities, provided you already have any given two in your dataset. Turbulent kinetic energy, dissipation rate, frequency and kinematic viscosity, and dynamic viscosity are available via the Turbulence dialog.

The Turbulence dialog is displayed by selecting Calculate Turbulence Functions from the Analyze menu.

turbulence

It contains two drop-down menus and associated text fields for you to identify the two turbulence-related variables in your dataset, drop-downs for you to select the function you wish to calculate and the location of the calculated variable, a toggle to select calculate-on-demand, and a Calculate button to perform the calculation.

Identifying Turbulence Variables

The first two drop-down menus on the Turbulence dialog allow you to specify which turbulence variables are contained in your dataset. The options are Kinetic Energy ( ), Dissipation Rate ( ), Turbulent Frequency ( ), Turbulent Kinematic Viscosity ( ), and Turbulent Dynamic Viscosity( ). This last option is the kinematic viscosity, which is equal to the dynamic viscosity divided by the density.

Selecting the Variable Location

You may select the location (nodal or cell-centered) of new variables Tecplot 360 creates during a calculation with the New Var Location dropdown. This setting only affects new variables added to the dataset when you click Calculate. Variables that already exist in the dataset keep their existing locations. If you wish to change the location of an existing variable, you can delete or rename the variable and then perform the calculation with the desired setting for New Var Location.

Calculating on Demand

Selecting the Calculate on Demand option results in the calculated variable being added to the dataset when you click the Calculate button, but the actual calculation is delayed until it is actually needed. Please refer to the discussion of calculate-on-demand in Calculating Variables.

Performing the Calculation

Once you have identified two turbulence variables in your dataset, you may calculate either of the other two. Select the desired function from the Function drop-down menu and click Calculate. The function is calculated and added to your dataset as a variable with the same name as the function selected. If your dataset variables are and , the following formulae will be used for the calculations of and :

with . Equations for other input variables are derived from these.

Shared Variables

If both variables from which the turbulence function is calculated are shared between multiple zones, and they and the calculated variable are all at the same location (cell-centered or nodal), the new variable will be shared as well. This mimics the behavior of the Data→Alter→Specify Equations dialog.

Calculating Particle Paths and Streaklines

For steady-state solutions, Tecplot 360 allows you to track the paths of massless particles by placing streamtraces in the flow. The Particle Paths and Streaklines dialog augments this capability by providing two additional visualization methods, particle paths and streaklines, for particles with or without mass.

Please note that these calculations, particularly for streaklines, may be very lengthy to perform, especially for cases with large grids.

The Particle Paths and Streaklines dialog is displayed by selecting Calculate Particle Paths and Streaklines from the Analyze menu.

particle paths and streaklines

It contains a drop-down menu allowing you to choose particle paths or streaklines, as well as options pertaining to the path integrations, particles with mass, storage and display of the calculated particle paths. In addition, the results of streaklines may be animated.

Calculating Particle Paths

A particle path is the path that a single particle follows through a solution. In steady flow, particle paths are the same as streaklines and streamtraces for massless particles. To calculate particle paths, you must:

  1. Place streamtraces at the locations where you wish particles to be released, then select Particle Paths from the drop-down menu at the top of the dialog. (Details on placing streamtraces may be found in Streamtraces).

  2. Specify an integration time step. For steady-state calculations, specify the maximum number of time steps to be performed (see Unsteady Flow for specifying steady or unsteady flow).

  3. Set the Particles Have Mass option for particles with mass. Click Mass Options to set mass-related options.

  4. Optionally, set the Create Single Ordered Zone From Particle Paths toggle to create a single IJ-ordered zone from all particle paths instead of a separate I-ordered zone from each path.

  5. Select Calculate.

Specifying the Integration Time Step and Maximum Number of Steps

Particle Paths are calculated by integrating the velocity field of your solution using a constant time step, which you enter in the Integration Time Step text field. A smaller time step will result in more accurate particle paths but will take longer to calculate. For unsteady calculations, the time step is set equal to the time interval between your solution time levels by default. If you specify so large a time step that a particle passes out of your solution domain in the first integration time step, you will get a warning message.

If you have set the Flow Solution is Steady-state option, you must also enter the maximum number of integration time steps to be performed (see also Unsteady Flow).

Specifying Mass-Related Options

For particles with mass, set the Particles Have Mass option. This enables other mass-related controls in the dialog. Click Mass Options to display the Particle Mass Options dialog. (See Particles with Mass) In addition, you have the option of storing the particle’s velocity and other particle properties or the local flow properties along the calculated particle path. Select Store Particle Velocity, Temperature, and Mass to store these values along the particle path. Select Store Interpolated Solution Variables to store these values instead. Following the calculation, you will be informed of which dataset variables contain these values.

Performing the Particle Path Calculation

When you select Calculate, a particle is placed at the starting point for each streamtrace you have placed. If you did not place any streamtraces, you will get an error message. From these starting locations, beginning with the time equal to the time of your first solution time level (or zero for steady-state calculations), the particle positions are advanced by performing a second-order Runge-Kutta integration of the velocity field. For unsteady calculations, linear interpolation is performed between solution time levels. Integration for each particle is continued until the final time level is reached (unsteady calculations), the specified number of time steps has been performed (steady-state calculations), or until the particle passes out of your solution domain. The particle paths are displayed as new I-ordered zones in your dataset, with each integration step represented by a node in the new zones, unless you selected the Create Single Zone From Particle Paths option, which results in a single IJ-ordered zone.

Examining the Particle Paths

Each I-ordered zone created by a Particle Path calculation represents a path through space and time. The paths' non-grid variables will hold interpolated values of your solution data that the particle "saw" as it passed through your solution, except as discussed in Specifying Mass-Related Options. You can visualize this by coloring the particle zones' mesh plots with one of your solution variables. The following steps will accomplish this:

  1. Turn on the Mesh plot layer by toggling-on the Mesh in the Plot sidebar.

  2. Call up the Zone Style dialog (accessed via the Plot menu or the Plot sidebar).

  3. Turn off mesh plotting for your solution zones by selecting the solution zones, clicking Mesh Show and selecting No.

  4. If necessary, turn on mesh plotting for the Particle Path zones by selecting them, clicking Mesh Show and selecting Yes.

  5. Color the Particle Path zones with a variable by selecting these zones, clicking Mesh Color and selecting Multi-color. If you had not previously chosen a contour variable, the Contour Variable dialog will open to allow you to select it. Choose the variable you wish to use to color the particle paths.

  6. If Auto Redraw has not been selected, click Redraw to redraw your plot. You will see the particle paths displayed and colored with the contour variable.

You may wish to turn on the Scatter plot layer to see the size of these steps. If you do this, you will first want to turn off scatter plotting for your solution zones. You can also do this with the Zone Style dialog.

Calculating Streaklines

Streaklines simulate experimental techniques which involve the periodic or continuous release of a tracer substance, such as oil drops or smoke. Tecplot 360 produces streaklines by releasing a sequence of particles from the release points and integrating the unsteady velocity field to find their positions in the flow at the end solution time. The final positions of all particles emitted from a particular release point form one streakline. Once streaklines have been calculated, they may be animated on screen or to a file.

To calculate Streaklines, perform the following actions:

  1. Identify the solution time levels in your dataset. (See Unsteady Flow.)

  2. Place streamtraces at the locations where you wish particles to be released.

  3. Select Streaklines from the drop-down menu at the top of the Particle Paths and Streaklines dialog.

  4. Enter the integration time step as with particle path calculations. (See Specifying the Integration Time Step and Maximum Number of Steps).

  5. Specify the particle release frequency. (See Specifying the Particle Release Frequency.)

  6. For particles with mass, set the Particles Have Mass option. Click Mass Options to set mass-related options.

  7. Select Calculate.

It is not reasonable to calculate streaklines for steady-state flow, because in steady-state flow, even for particles with mass, streaklines are the same as particle paths (just more time consuming to compute).

Specifying the Particle Release Frequency

For Streakline calculations, a sequence of particles is released throughout the solution time. Each particle’s position is integrated using the specified integration time step. The frequency with which particles are released is specified by the controls just above the Calculate button. In the Release text field, enter the number of particles to be released in the specified time interval. In the particles per drop-down menu, identify this time interval by selecting either Solution Time Level or Unit Solution Time.

If you select Solution Time Level, the indicated number of particles will be released, evenly spaced in time, between each pair of solution time levels you have identified. If you select Unit Solution Time, the particles will be released at regular intervals throughout the time covered by your solution. In either case, a particle will be released at the final time of your solution, so that the streaklines will include the release points themselves. Releasing particles more frequently will produce more detailed streaklines (the accuracy is determined by the Integration Time Step), but will take longer to calculate.

Performing the Streakline Calculation

When you click Calculate, the streaklines are calculated and added to your dataset as new I-ordered zones. To see them, turn on the Mesh plot layer and disable mesh plotting for your solution zones. See Examining the Particle Paths.

Animating Streaklines

Once you have performed a streakline calculation, the animation controls of the Particle Paths and Streaklines dialog are enabled. A streakline animation displays each successive step in the integration, and can be an effective means of visualizing the unsteadiness of a flow. Toggle-on Include Zone Animation in the Particle Paths and Streaklines dialog to animate the zones along with the streaklines.

Please note that subsequent particle path or streakline calculations will replace the current streakline calculation, making it unavailable for animation.

You may display the animation in the frame in which the streaklines were calculated or save it to a video file in a number of formats. To perform a streakline animation, perform the following steps:

  1. Delete the I-ordered zones of any streaklines you do not wish to be part of the animation using Data→Delete→Zone.

  2. Select the animation destination from the Animate Streaklines dropdown.

  3. Select Animate.

  4. If you chose to save the animation to a file, the Animate Options dialog will be displayed. Enter your choices for the animation and select OK. Then choose a file name in the resulting file selection dialog.

    animation opts

While animating on the screen, the Animate button’s text will change to Cancel, allowing you to stop the animation. While animating to a file, a progress dialog will be displayed that allows you to cancel the animation.

Deleting Particle Paths and Streaklines

Particle paths and streaklines are saved either as I-ordered zones or as a single IJ-ordered zone. You may delete these individually using the Delete Zone dialog (accessed via Data→Delete→Zone). If you wish to delete all previously calculated particle paths and streaklines, you may do so using the [Delete All Particle Paths and Streaklines] button. This deletes all zones whose names begin with 'Particle Path' or 'Streakline.'

Animate Options

The Animation Options dialog allows you to specify options for saving the streakline animation to a file. The following options are available:

Width (pixels)

Enter a value in the text field for your exported image’s width. The image region is rendered to the image file to exactly fit a size of Width by Height. This text field initially displays the frame’s actual width.

Height (pixels)

Displays the height of the image based on the value entered for Width, preserving the shape of the region to be exported. (Calculated by Tecplot 360.)

Animation Speed (frames/sec)

Applicable only to AVI files. Enter a value in the text field to set your speed in frames per second.

Use Multiple Color Tables

Selecting this check box will create a color table for each frame of the animation. If this check box is not selected, Tecplot 360 will scan each frame in your Raster Metafile and create an optimal color table from 256 colors for the entire animation.

Particles with Mass

Whereas massless particles always travel with the local fluid velocity, particles with mass travel according to a more complicated equation of motion where the fluid creates drag on the particle. In addition, particles with mass may have a temperature that is different from the local fluid temperature, and they may lose mass due to ablative processes such as vaporization. The Particle Mass Options dialog allows you to enter coefficients and particle properties to indicate how these mass-related effects are calculated.

The Particle Mass Options dialog is displayed by selecting Mass Options on the Particle Paths and Streaklines dialog. It allows you to specify either general or detailed coefficients related to the particle trajectory and heat transfer calculations, plus options related to gravity and the initial particle velocity. If you choose to calculate the particle temperature, you may choose to terminate the particle at a specified temperature, or, with the detailed coefficient option, to ablate the particles until their mass reaches zero.

Selecting a Coefficient Set

You may enter either general coefficients or detailed coefficients. General coefficients are a convenient way of characterizing the particles, but result in less accurate calculations. They should only be used when the particle drag coefficient and heat transfer coefficient (if particle temperature is being calculated) are essentially constant. Detailed coefficients result in more accurate calculations, and should be used whenever the drag coefficient or heat transfer coefficient may not be constant, such as when the particle Reynolds Number is less than 1000. In addition, if you wish to calculate particle ablation, you must specify detailed coefficients. Indicate your choice of coefficients by making the appropriate selection in the option box at the top of the Particle Mass Options dialog.

Calculating Particle Temperature

If you wish to calculate each particle’s temperature along its path, set the Calculate Particle Temperature option. Particles begin with their temperature equal to the local fluid temperature at their insertion point (the beginning of each streamtrace you have placed). If you have chosen to enter general coefficients, enter the Temperature Time Constant in the General Coefficients section of the dialog. Otherwise, enter the specific heat (per unit mass) and the Nusselt number in the Detailed Coefficients section of the dialog. Also, select from the available options in the Termination Options section of the dialog. All of these options are discussed below.

Specifying the Effects of Gravity and Buoyancy

If you wish to include the effects of gravity in your calculation, enter the value in the gravity field and select the axis direction in which gravity acts.

If you choose the detailed coefficient set and non-zero gravity, the effects of buoyancy will also be included. Buoyancy acts in the opposite direction of gravity. It is included by subtracting from the particle mass the mass of the fluid it displaces, and multiplying the result by the gravitational constant to calculate the force due to gravity.

Buoyancy effects are not included if you choose the general coefficient set because the particle size is not specified. In this case, the value for gravity is simply added to the particle acceleration that is calculated from the general coefficients and local flow conditions.

Specifying the Initial Particle Velocity

Each particle injected into the flow begins either at the velocity of the flow at the point where the particle is injected, or at zero velocity or at a specified velocity. Select one of these options from the drop-down menu and, if you have chosen Specified Velocity, enter the U, V, and W velocities.

General Coefficients

Figure 10 shows the Particle Mass Options dialog with the general coefficients displayed. The General Coefficients consist of the Ballistic Coefficient and, if you are calculating particle temperature, the Temperature Time Constant.

particle mass opts gen
Figure 10. The Particle Mass Options dialog with general coefficients.
Ballistic Coefficient

The Ballistic Coefficient is defined by the following:

where is the Ballistic Coefficient, is the frontal area of the particle, is the particle’s drag coefficient and is the particle’s mass. Given the Ballistic Coefficient, the acceleration of a particle due to fluid drag is calculated from

where is particle acceleration, stands for each spatial dimension, is the local fluid density and and are the velocity components of the fluid and the particle. If non-zero gravity has been specified, the acceleration in the specified direction is augmented by the value for gravity. For example, if a gravitational constant, , acts in the direction, the acceleration in the direction becomes:

Temperature Time Constant

For the general coefficient option, particle temperature is calculated with a simple relaxation:

where is temperature, and is the Temperature Time Constant you enter in this text field. has units of time, and indicates the "e-folding" time of this relaxation—the amount of time it takes to reduce the difference between the fluid temperature and the particle temperature by a factor of about 2.7.

Comparing with the convective heat transfer equation,

we see that may be thought of as a combination of the convective heat transfer coefficient, and the surface area, mass, and specific heat of the particle:

Note that the Temperature Time Constant is only constant if the heat transfer coefficient is also constant. In general, however, this coefficient will vary with the particle’s velocity relative to the fluid, so this approximation should be viewed with skepticism.

Detailed Coefficients

Figure 11 shows the Particle Mass Options dialog with detailed coefficients displayed. The detailed coefficients consist of particle mass radius and drag coefficient. In addition, if particle temperature is being calculated, the detailed coefficients consist of particle specific heat and Nusselt number.

particle mass opts detailed
Figure 11. The Particle Mass Options dialog with detailed coefficients.
Mass

Each particle begins with the same mass, entered in this text field. If ablation is being calculated, the particle’s mass may be reduced by the ablative process as it travels through the flow field.

Radius

As with Mass, each particle begins with the same radius, entered in this text field and may be reduced by ablation.

Specify/Calculate Drag Coefficient

You may elect to specify a constant drag coefficient or have Tecplot 360 calculate it. If you specify a constant drag coefficient, enter its value in the corresponding text field. For calculated drag coefficient, Tecplot 360 uses a formula from Multiphase Flow and Fluidization: Continuum and Kinetic Theory Descriptions (D. Gidaspow, 1994):

with the particle Reynolds number:

where is the particle diameter, is the speed of the particle relative to the fluid and is the dynamic viscosity of the gas. The acceleration then becomes:

If non-zero gravity has been specified, the acceleration in the specified direction is augmented by the gravitational constant adjusted for buoyancy. For example, if a gravitational constant, , acts in the direction, the acceleration in the direction becomes:

where is the density of the particle.

Specific Heat

If particle temperature is being calculated, enter the specific heat per unit mass of the particles, in units of energy per mass per degree.

Specify/Calculate Nusselt Number

The Nusselt number is a non-dimensional measure of heat transfer. The temperature change of the particle is calculated from this number using the following formula:

where is the conductivity of the fluid.

If you specify a constant Nusselt number, enter its value in the text field. Otherwise, Tecplot 360 will calculate it using a formula from An Eulerian-Lagrangian Analysis for Rocket Motor Internal Flows (Jayant S. Sabnis, et al., 1989):

Termination Options

When solving for particle temperature, you may terminate particles when they reach a specified temperature, or calculate particle ablation (mass reduction due to off-gassing or some sort of sloughing of material from the particle).

Terminate/Ablate Particles

If you elect to terminate the particles at a particular temperature, you must enter the temperature. When the particle reaches this temperature, its path will be terminated at that location. If you elect ablation, you must enter the temperature at which ablation begins, and the latent heat of the ablative process. If you wish to model boiling of initially solid particles, enter the latent heat of fusion plus the latent heat of vaporization, as a positive number. Once the particle reaches the specified temperature, any additional heat transferred to the particle will result in ablation instead of an additional temperature rise. If the particle’s mass reaches zero, it will be terminated at that location.

Temperature

For temperature-based termination, this is the temperature in absolute units at which the particle will be terminated. For ablation, this is the temperature at which the ablation begins.

Latent Heat

This is the combined latent heat of fusion and vaporization for the particle, used only for particle ablation. Its units are energy per unit mass.

Analyzing Solution Error

Tecplot 360 allows you to examine a sequence of CFD solutions on successively finer meshes, estimate the order of accuracy of the solutions, as well as perform Richardson extrapolation to improve the accuracy of the solutions. These features are applicable only to smooth solutions (solutions with no discontinuities). They are available via the Error Analysis dialog.

The Error Analysis dialog is displayed by selecting Analyze Error from the Analyze menu.

error analysis

It contains controls for specifying the solution zones to analyze, the maximum accuracy of your CFD solver, some options specific to accuracy calculation, and buttons to perform the analyses.

You cannot perform error analysis on polygonal or polyhedral zones.

Calculating Solution Accuracy

The accuracy of a sequence of three solutions is estimated using Richardson extrapolation on a particular dataset variable you select. The resulting accuracy in both the 1-norm and the Max- (infinity-) norm is reported in a text dialog. You also have the options of plotting the overall error versus grid spacing, or plotting the calculated accuracy at each grid node.

Selecting Solution Zones

To calculate solution accuracy, you must identify three zones from your dataset. The zones must represent coarse, medium, and fine grid solutions of the same problem. The order in which you enter the zone numbers does not matter. The medium grid must have twice the number of cells in each index direction as the coarse grid, or twice, plus one, the number of nodes. The fine grid must have four times the number of cells, or four times, plus one, the number of nodes as the coarse grid.

Since finite element zones do not have identifiable index directions, the requirement for the coarse, medium and fine grid sizes is only in terms of the total number of cells. It is assumed that successively finer grids have been refined equally in all directions. The requirement is that the medium grid have eight times as many cells (four in 2D) as the coarse grid and the fine grid have 64 times as many cells (sixteen in 2D).

For all zone types, the medium and fine grids must have nodes that overlap the coarse grid nodes.

You may type the zone numbers in the text field, or select them by clicking Select and choosing three zones from the resulting list.

Error Analysis is not supported for polygonal or polyhedral zone types.

Specifying the Solver’s Maximum Accuracy

Under some circumstances, Richardson extrapolation can report an accuracy in excess of the solver’s theoretical maximum accuracy. For this reason, Tecplot 360 limits the accuracy used by this technique to the value you enter in the Maximum Accuracy text field. Although fractional values are allowed in this text field, you should enter the theoretical maximum order of accuracy of your solver as an integer. That is, two for a second-order accurate solver.

Selecting the Dataset Variable

For the accuracy calculation, Tecplot 360 performs Richardson extrapolation on one variable in your dataset. It must not be a grid variable. Enter the name of the variable in the Use Data Set Variable text field, or click Select to choose the variable.

Plotting the Solution Accuracy

You can plot the results of the accuracy calculation in either or both of two ways. First, you can plot the accuracy at each grid node as a contour plot (XY-plot for 1D data) by setting the Plot Accuracy at All Grid Nodes check box. Second, you can plot the overall error as a log-log XY-plot by setting the Plot Overall Accuracy (log-log) check box. If you select either of these options, new frames will be created to display the plots when you perform the calculation.

The plot of overall accuracy plots the error in the 1-norm and max- (infinity-) norm versus grid spacing for each of the three zones. The grid spacing of the coarse grid zone is taken as unity for this plot. The 1-norm is the average absolute value of the difference between the extrapolated solution and the solutions of the input zones. The max-norm is the maximum absolute value of this difference. Figure 12 shows an example of this plot. The slopes of the two lines represent the accuracy of the solver. A significant difference in the slopes may indicate discontinuities in your solution, or other problems with the calculation.

overall accuracy
Figure 12. A plot of the overall accuracy.

The plot of accuracy at all grid nodes plots the calculated accuracy on the grid from your coarse solution. For 2D and 3D grids, it is plotted as a contour plot. For 1D solutions, it is plotted as an XY-plot.

Because this feature creates a new frame, it cannot be saved in the data journal, and the current data journal is invalidated. If you subsequently save a layout file, you will be prompted to save a new data file.

Performing the Calculation

When you select [Calculate Accuracy], the accuracy calculation is performed. The accuracy in the 1-norm and max-norm is reported in a text dialog. If you selected either of the plot options, the plots are created in new frames.

Extrapolating a Solution

Given three solutions on successively finer grids, Tecplot 360 can perform Richardson extrapolation to improve the accuracy of the solution, and report the difference between the extrapolated solution and the original, fine grid solution.

To perform this extrapolation, three zones must be identified in the Error Analysis dialog as previously discussed (see Selecting Solution Zones) and the maximum accuracy of the solver entered (see Specifying the Solver’s Maximum Accuracy). Once these are entered, clicking Extrapolate Solution creates two new zones in the solution dataset. The first new zone contains the extrapolated solution on the coarse grid. The second new zone contains the difference between the extrapolated solution and the original fine grid solution.

Extracting Fluid Flow Features

Tecplot 360 can display important features in 3D fluid flow solutions that make analyzing the solutions much easier. For trans-sonic flow, it can display shock surfaces. For all flows, including incompressible flows, it can display lines indicating the location of vortex cores, as well as separation and attachment lines. These calculations make use of MIT’s FX library. These features are accessed through the Extract Flow Features dialog.

The Extract Flow Features dialog is displayed by selecting Extract Flow Features from the Analyze menu.

extract flow features

It contains a drop-down for selecting the desired feature, options for specifying the algorithm to use when extracting vortex cores, as well as an Extract button, which performs the desired task.

Flow features are identified using field variables you have identified on the Field Variables dialog. (See Identifying Field Variables) and may be affected by settings on the Fluid Properties dialog. (See Specifying Fluid Properties) The feature extraction may also be affected by your boundary settings. In particular, separation and attachment lines are only calculated on boundaries you have identified as wall boundaries. Refer to Setting Geometry and Boundary Options for more information on specifying boundary conditions for your data.

Extracting Shock Surfaces

To extract shock surfaces, select Shock Surfaces from the Feature drop-down, then click Extract. The remaining controls on the dialog are disabled. After calculation, shock surfaces are then displayed as iso-surfaces of a new dataset variable named ShockFeature. This variable is similar to the Shock variable available on the Calculate dialog.

Shock Surface values are calculated for the current time step only. The ShockFeature variable will equal zero for all other time steps.

You may note that the displayed shock surface is obscured by clutter due to the sensitivity of the shock function capturing minor oscillations in the solution. A useful technique for displaying only the true shock is to use the value blanking feature to eliminate regions where this clutter appears. Use Tecplot 360’s Calculate dialog to calculate the Pressure Gradient Magnitude variable, then use the value blanking to blank the plot where this variable is less than some constant. A good value to use is , or for PLOT3D non-dimensional data, just 0.1.

Extracting Vortex Cores

To extract vortex cores, select Vortex Cores from the Feature drop-down, choose from the two available extraction methods, then click Extract. The cores consist of a group of line segments that may not all be connected. As a result, they are displayed using a line segment finite element zone. Display the Mesh or Edge plot layer to see the new zone.

the new vortex core zone is a static zone.

If you are using value blanking, you may need to interpolate the blanking variable to the new zone. Refer to Data Interpolation for information on interpolation and Value Blanking for information on value blanking.

Due to the properties of the algorithm used, vortices that happen to exactly align with grid lines may not be properly extracted. This is unlikely to occur in real-world solutions, but is common in test data generated by extruding 2D solutions to produce artificial 3D solutions.

Choosing a Vortex Core Extraction Method

Two algorithms for determining the location of the vortex cores are available. These methods are represented by the Vorticity Vector and Velocity Gradient Eigenmodes options. The Vorticity Vector method determines the location of vortex cores by examining the vorticity vector. The Velocity Gradient Eigenmodes method is more sophisticated and a little more expensive, using the eigenvalues and eigenvectors of the velocity gradient tensor. The eigenmode method tends to give fewer spurious vortex cores.

Visualizing the Vortex Core Strength

If you have chosen a contour variable for your dataset, the vortex strength returned by the FX library will be stored in this variable in the new zone. You may visualize this vortex strength by turning on the Mesh plot layer and choosing to color the mesh of this zone with the contour variable. You may need to modify the contour levels to get an acceptable display of the vortex strength. You may also wish to use the value blanking feature using this variable to blank out the vortex cores where they are very weak or unrealistically menu (as can happen at a no-slip wall boundary).

Extracting Separation and Attachment Lines

Separation and attachment lines show where a fluid flow separates from or reattaches to a no-slip wall boundary. These lines can give you an indication of where separation bubbles or recirculation regions appear in your data. To calculate them you must first identify one or more Wall boundaries using the Geometry and Boundaries dialog. (See Setting Geometry and Boundary Options.) The separation and attachment lines will be calculated on these boundaries.

Due to the algorithm used by the FX library to detect separation and attachment lines, these lines may not be detected for flows that are essentially two-dimensional. (That is, flows which contain no variation along one of the three spatial dimensions.)

To calculate separation and attachment lines, select this option in the Feature drop-down and click Extract. The lines, if any, will be displayed in new static zones, one zone for separations lines and a separate zone for attachment lines. As with vortex cores, the lines consist of sets of possibly unconnected line segments, which are displayed using line segment finite element zones. Display the Mesh or Edge layer to see the lines.

Excluding Blanked Regions

For vortex core and separation/attachment line calculations in ordered zones, you may choose to exclude blanked regions from the calculation. Select this option by selecting the Exclude Blanked Regions from Ordered Zones toggle. This will prevent lines from being calculated in regions of ordered zones that are not plotted due to blanking. Note, however, that this will invalidate the data journal. If you subsequently save a layout file, you will be prompted to save a new data file as well.