ANSYS FLUENT Spatial Discretization

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

18.3.

1 Spatial Discretization
By default, ANSYS FLUENT stores discrete values of the scalar at the cell centers ( and in
Figure 18.2.1). However, face values are required for the convection terms in Equation 18.2-2
and must be interpolated from the cell center values. This is accomplished using an upwind scheme.

Upwinding means that the face value is derived from quantities in the cell upstream, or "upwind,''
relative to the direction of the normal velocity in Equation 18.2-2. ANSYS FLUENT allows you
to choose from several upwind schemes: first-order upwind, second-order upwind, power law, and
QUICK. These schemes are described in Sections 18.3.1- 18.3.1.

The diffusion terms in Equation 18.2-2 are central-differenced and are always second-order accurate.

For information on how to use the various spatial discretization schemes, see this section in the
separate User's Guide.

First-Order Upwind Scheme

When first-order accuracy is desired, quantities at cell faces are determined by assuming that the cell-
center values of any field variable represent a cell-average value and hold throughout the entire cell;
the face quantities are identical to the cell quantities. Thus when first-order upwinding is selected, the
face value is set equal to the cell-center value of in the upstream cell.

First-order upwind is available in the pressure-based and density-based solvers.

Power-Law Scheme

The power-law discretization scheme interpolates the face value of a variable, , using the exact
solution to a one-dimensional convection-diffusion equation

(18.3-1)
where and are constant across the interval . Equation 18.3-1 can be integrated to yield the
following solution describing how varies with :

(18.3-2)

where

and Pe is the Peclet number:

(18.3-3)

The variation of between and is depicted in Figure 18.3.1 for a range of values

of the Peclet number. Figure 18.3.1 shows that for large Pe, the value of at is
approximately equal to the upstream value. This implies that when the flow is dominated by
convection, interpolation can be accomplished by simply letting the face value of a variable be set
equal to its "upwind'' or upstream value. This is the standard first-order scheme for ANSYS
FLUENT.
Figure 18.3.1: Variation of a Variable
Between and (Equation
18.3-1)

If the power-law scheme is selected, ANSYS FLUENT uses Equation 18.3-2 in an equivalent
"power law'' format [ 264], as its interpolation scheme.

As discussed in Section 18.3.1, Figure 18.3.1 shows that for large Pe, the value of at is
approximately equal to the upstream value. When Pe=0 (no flow, or pure diffusion), Figure 18.3.1
shows that may be interpolated using a simple linear average between the values at and
. When the Peclet number has an intermediate value, the interpolated value for at

must be derived by applying the "power law'' equivalent of Equation 18.3-2.

The power-law scheme is available in the pressure-based solver and when solving additional
scalar equations in the density-based solver.

Second-Order Upwind Scheme

When second-order accuracy is desired, quantities at cell faces are computed using a
multidimensional linear reconstruction approach [ 14]. In this approach, higher-order accuracy is
achieved at cell faces through a Taylor series expansion of the cell-centered solution about the cell
centroid. Thus when second-order upwinding is selected, the face value is computed using the
following expression:
(18.3-4)

where and are the cell-centered value and its gradient in the upstream cell, and is the
displacement vector from the upstream cell centroid to the face centroid. This formulation requires the
determination of the gradient in each cell, as discussed in Section 18.3.3. Finally, the gradient
is limited so that no new maxima or minima are introduced.

Second-order upwind is available in the pressure-based and density-based solvers.

First-to-Higher Order Blending

In some instances, and at certain flow conditions, a converged solution to steady-state may not be
possible with the use of higher-order discretization schemes due to local flow fluctuations (physical or
numerical). On the other hand, a converged solution for the same flow conditions maybe possible
with a first-order discretization scheme. For this type of flow and situation, if a better than first-order
accurate solution is desired, then first-to-higher-order blending can be used to obtain a converged
steady-state solution.

The first-order to higher-order blending is applicable only when higher-order discretization is used. It
is applicable with the following discretization schemes: second-order upwinding, central-differencing
schemes, QUICK, and third-order MUSCL. The blending is not applicable to first-order, power-law,
modified HRIC schemes, or the Geo-reconstruct and CICSAM schemes.

In the density-based solver, the blending is applied as a scaling factor to the reconstruction gradients.
While in the pressure-based solver, the blending is applied to the higher-order terms for the
convective transport variable.

To learn how to apply this option, refer to this section in the separate User's Guide.

Central-Differencing Scheme

A second-order-accurate central-differencing discretization scheme is available for the momentum


equations when you are using the LES turbulence model. This scheme provides improved accuracy
for LES calculations.

The central-differencing scheme calculates the face value for a variable ( ) as follows:
(18.3-5)

where the indices 0 and 1 refer to the cells that share face , and are the reconstructed
gradients at cells 0 and 1, respectively, and is the vector directed from the cell centroid toward the
face centroid.

It is well known that central-differencing schemes can produce unbounded solutions and non-physical
wiggles, which can lead to stability problems for the numerical procedure. These stability problems
can often be avoided if a deferred approach is used for the central-differencing scheme. In this
approach, the face value is calculated as follows:

(18.3-6)

where UP stands for upwind. As indicated, the upwind part is treated implicitly while the difference
between the central-difference and upwind values is treated explicitly. Provided that the numerical
solution converges, this approach leads to pure second-order differencing.

The central differencing scheme is available only in the pressure-based solver.

Bounded Central Differencing Scheme

The central differencing scheme described in Section 18.3.1 is an ideal choice for LES in view of its
meritoriously low numerical diffusion. However, it often leads to unphysical oscillations in the
solution fields. In LES, the situation is exacerbated by usually very low subgrid-scale turbulent
diffusivity. The bounded central differencing scheme is essentially based on the normalized variable
diagram (NVD) approach [ 187] together with the convection boundedness criterion (CBC). The
bounded central differencing scheme is a composite NVD-scheme that consists of a pure central
differencing, a blended scheme of the central differencing and the second-order upwind scheme, and
the first-order upwind scheme. It should be noted that the first-order scheme is used only when the
CBC is violated.
The bounded central differencing scheme is the default convection scheme for LES. When
you select LES, the convection discretization schemes for all transport equations are
automatically switched to the bounded central differencing scheme.

The bounded central differencing scheme is available only in the pressure-based solver.

QUICK Scheme

For quadrilateral and hexahedral meshes, where unique upstream and downstream faces and cells can
be identified, ANSYS FLUENT also provides the QUICK scheme for computing a higher-order
value of the convected variable at a face. QUICK-type schemes [ 188] are based on a weighted
average of second-order-upwind and central interpolations of the variable. For the face in Figure
18.3.2, if the flow is from left to right, such a value can be written as

(18.3-7)

Figure 18.3.2: One-Dimensional Control Volume

in the above equation results in a central second-order interpolation while yields a


second-order upwind value. The traditional QUICK scheme is obtained by setting . The
implementation in ANSYS FLUENT uses a variable, solution-dependent value of , chosen so as to
avoid introducing new solution extrema.

The QUICK scheme will typically be more accurate on structured meshes aligned with the flow
direction. Note that ANSYS FLUENT allows the use of the QUICK scheme for unstructured or
hybrid meshes as well; in such cases the usual second-order upwind discretization scheme (described
in Section 18.3.1) will be used at the faces of non-hexahedral (or non-quadrilateral, in 2D) cells. The
second-order upwind scheme will also be used at partition boundaries when the parallel solver is used.
The QUICK scheme is available in the pressure-based solver and when solving additional
scalar equations in the density-based solver.

Third-Order MUSCL Scheme

This third-order convection scheme was conceived from the original MUSCL (Monotone Upstream-
Centered Schemes for Conservation Laws) [ 352] by blending a central differencing scheme and
second-order upwind scheme as

(18.3-8)

where is defined in Equation 18.3-5, and is computed using the second-order


upwind scheme as described in Section 18.3.1.

Unlike the QUICK scheme which is applicable to structured hex meshes only, the MUSCL scheme is
applicable to arbitrary meshes. Compared to the second-order upwind scheme, the third-order
MUSCL has a potential to improve spatial accuracy for all types of meshes by reducing numerical
diffusion, most significantly for complex three-dimensional flows, and it is available for all transport
equations.

The third-order MUSCL currently implemented in ANSYS FLUENT does not contain any
flux-limiter. As a result, it can produce undershoots and overshoots when the flow-field under
consideration has discontinuities such as shock waves.

The MUSCL scheme is available in the pressure-based and density-based solvers.

Modified HRIC Scheme

For simulations using the VOF multiphase model, upwind schemes are generally unsuitable for
interface tracking because of their overly diffusive nature. Central differencing schemes, while
generally able to retain the sharpness of the interface, are unbounded and often give unphysical
results. In order to overcome these deficiencies, ANSYS FLUENT uses a modified version of the
High Resolution Interface Capturing (HRIC) scheme. The modified HRIC scheme is a composite
NVD scheme that consists of a non-linear blend of upwind and downwind differencing [ 243].
First, the normalized cell value of volume fraction, , is computed and is used to find the

normalized face value, , as follows:

(18.3-9)

Figure 18.3.3: Cell Representation for Modified HRIC Scheme

where is the acceptor cell, is the donor cell, and is the upwind cell, and

(18.3-10)

Here, if the upwind cell is not available (e.g., unstructured mesh), an extrapolated value is used for
. Directly using this value of causes wrinkles in the interface, if the flow is parallel to the
interface. So, ANSYS FLUENT switches to the ULTIMATE QUICKEST scheme (the one-
dimensional bounded version of the QUICK scheme [ 187]) based on the angle between the face
normal and interface normal:

(18.3-11)
This leads to a corrected version of the face volume fraction, :

(18.3-12)

where

(18.3-13)

and is a vector connecting cell centers adjacent to the face .

The face volume fraction is now obtained from the normalized value computed above as follows:

(18.3-14)

The modified HRIC scheme provides improved accuracy for VOF calculations when compared to
QUICK and second-order schemes, and is less computationally expensive than the Geo-Reconstruct
scheme.

Previous: 18.3 Discretization


Up: 18.3 Discretization
Next: 18.3.2 Temporal Discretization
Release 12.0 © ANSYS, Inc. 2009-01-23

You might also like