CFD Theory Ansys Fluent
-
Upload
vatsalya-sharma -
Category
Documents
-
view
464 -
download
8
Transcript of CFD Theory Ansys Fluent
-
7/24/2019 CFD Theory Ansys Fluent
1/52
Chapter 18. Theory
This chapter provides some theoretical background for the models, equa-tions, and solution procedures used by Airpak. Information is presentedin the following sections:
Section 18.1: Governing Equations Section 18.2: Turbulence
Section 18.3: Buoyancy-Driven Flows and Natural Convection Section 18.4: Radiation Section 18.5: Solution Procedures
18.1 Governing Equations
Airpak solves the Navier-Stokes equations for transport of mass, mo-mentum, species, and energy when it calculates laminar flow with heattransfer. Additional transport equations are solved when the flow is tur-bulent (see Section 18.2) or when radiative heat transfer is included (see
Section 18.4).
18.1.1 The Mass Conservation Equation
The equation for conservation of mass, or continuity equation, can bewritten as follows:
t+ (v) = 0 (18.1-1)
For an incompressible fluid, this reduces to
v= 0 (18.1-2)
c Fluent Inc. April 23, 2002 18-1
-
7/24/2019 CFD Theory Ansys Fluent
2/52
Theory
18.1.2 Momentum Equations
Transport of momentum in theith direction in an inertial (non-accelerating)reference frame is described by [4]
t(v) + (vv) = p + () +g+ F (18.1-3)
where p is the static pressure, is the stress tensor(described below),and g is the gravitational body force. F contains other source termsthat may arise from resistances, sources, etc.
The stress tensor is given by
=
(v+ vT) 2
3 vI
(18.1-4)
where is the molecular viscosity and the second term on the right handside is the effect of volume dilation.
18.1.3 Energy Conservation Equation
The energy equation for a fluid region can be written in terms of sensibleenthalpy h(=TTref cpdT, where Tref is 298.15 K) as
t(h) + (hv) = [(k+kt)T] + Sh (18.1-5)
wherek is the molecular conductivity, kt is the conductivity due to tur-bulent transport (kt = cpt/Prt), and the source term Sh includes anyvolumetric heat sources you have defined.
In conducting solid regions, Airpak solves a simple conduction equationthat includes the heat flux due to conduction and volumetric heat sourceswithin the solid:
t(h) = (kT) +Sh (18.1-6)
18-2 c Fluent Inc. April 23, 2002
-
7/24/2019 CFD Theory Ansys Fluent
3/52
-
7/24/2019 CFD Theory Ansys Fluent
4/52
Theory
where Sct is the turbulent Schmidt number, tDt (with a default settingof 0.7).
Treatment of Species Transport in the Energy Equation
For many multicomponent mixing flows, the transport of enthalpy dueto species diffusion
ni=1
(hi) Ji
can have a significant effect on the enthalpy field and should not beneglected. In particular, when the Lewis number
Lei= k
cpDi,m
is far from unity, this term cannot be neglected. Airpakwill include thisterm by default.
18.2 Turbulence
Four turbulence models are available inAirpak
: the mixing-length zero-equation model, the indoor zero-equation model, the two-equation (stan-dardk-) model, and the RNG k- model.
18.2.1 Zero-Equation Turbulence Models
Airpakprovides two zero-equation turbulence models: the mixing-lengthmodel and the indoor model. These models are described below.
Mixing-Length Zero-Equation Turbulence Model
The mixing-length zero-equation turbulence model (also known as the
algebraic model) uses the following relation to calculate turbulent vis-cosity, t:
18-4 c Fluent Inc. April 23, 2002
-
7/24/2019 CFD Theory Ansys Fluent
5/52
18.2 Turbulence
t = 2S (18.2-1)
The mixing length, , is defined as
= min(d, 0.09dmax ) (18.2-2)
where d is the distance from the wall and the von K arman constant= 0.419.
Sis the modulus of the mean rate-of-strain tensor, defined as
S
2SijSij (18.2-3)
with the mean strain rate Sij given by
Sij =1
2
ujxi
+uixj
(18.2-4)
Indoor Zero-Equation Turbulence Model
The indoor zero-equation turbulence model was developed specifically
for indoor airflow simulations [6]. It addresses the need of HVAC engi-neers for a simple but reliable turbulence model that can be used withmodest desktop computing resources. It uses the following relationshipto calculate the turbulent viscosity t:
t= 0.03874vL (18.2-5)
where v is the local velocity magnitude, is the fluid density, L is de-fined as the distance from the nearest wall, and 0.03874 is an empiricalconstant.
Airpak determines the heat transfer at the boundary surfaces by com-puting a convective heat transfer coefficient:
c Fluent Inc. April 23, 2002 18-5
-
7/24/2019 CFD Theory Ansys Fluent
6/52
Theory
h= effPreff
cpxj
(18.2-6)
wherecp is the fluid specific heat, Preffis the effective Prandtl number,and xj is the grid spacing adjacent to the wall. eff is the effectiveviscosity, given by
eff=+t (18.2-7)
where is the viscosity of the fluid.
This model is ideally suited for predicting indoor air flows that considernatural convection, forced convection, mixed convection, and displace-ment ventilation.
18.2.2 The Two-Equation (Standardk-) and RNG k- Models
This section presents the standard and RNG k- models. Both modelshave similar forms, with transport equations for k and . The majordifferences in the models are as follows:
the method of calculating turbulent viscosity the turbulent Prandtl numbers governing the turbulent diffusion
ofk and
the generation and destruction terms in the equation
This section describes the Reynolds-averaging method for calculatingturbulent effects and provides an overview of the issues related to choos-ing an advanced turbulence model in Airpak. The transport equations,methods of calculating turbulent viscosity, and model constants are pre-sented separately for each model. The features that are essentially com-mon to both models follow, including turbulent production, generation
due to buoyancy, and modeling heat transfer.
18-6 c Fluent Inc. April 23, 2002
-
7/24/2019 CFD Theory Ansys Fluent
7/52
18.2 Turbulence
Reynolds (Ensemble) Averaging
The advanced turbulence models in Airpak are based on Reynolds av-erages of the governing equations. In Reynolds averaging, the solutionvariables in the instantaneous (exact) Navier-Stokes equations are de-composed into the mean (ensemble-averaged or time-averaged) and fluc-tuating components. For the velocity components:
ui= ui+u
i (18.2-8)
where ui and u
i are the mean and instantaneous velocity components
(i= 1, 2, 3).
Likewise, for pressure and other scalar quantities:
= + (18.2-9)
where denotes a scalar such as pressure or energy.
Substituting expressions of this form for the flow variables into the in-stantaneous continuity and momentum equations and taking a time (orensemble) average (and dropping the overbar on the mean velocity, u)yields the ensemble-averaged momentum equations. They can be written
in Cartesian tensor form as:
t+
xi(ui) = 0 (18.2-10)
t(ui) +
xj(uiuj) =
pxi
+
xj
uixj
+ ujxi
23
ijulxl
+
xj(uiuj) (18.2-11)
Equations 18.2-10 and 18.2-11 are called Reynolds-averaged Navier-
Stokes (RANS) equations. They have the same general form as theinstantaneous Navier-Stokes equations, with the velocities and other so-lution variables now representing ensemble-averaged (or time-averaged)
c Fluent Inc. April 23, 2002 18-7
-
7/24/2019 CFD Theory Ansys Fluent
8/52
Theory
values. Additional terms now appear that represent the effects of turbu-lence. These Reynolds stresses,uiuj , must be modeled in order toclose Equation 18.2-11.
Choosing an Advanced Turbulence Model
This section provides an overview of the issues related to the advancedturbulence models provided in Airpak.
The Standardk- Model
The simplest complete models of turbulence are two-equation models
in which the solution of two separate transport equations allows the tur-bulent velocity and length scales to be independently determined. Thestandard k- model in Airpak falls within this class of turbulence modeland has become the workhorse of practical engineering flow calculationsin the time since it was proposed by Launder and Spalding [15]. Robust-ness, economy, and reasonable accuracy for a wide range of turbulentflows explain its popularity in industrial flow and heat transfer simu-lations. It is a semi-empirical model, and the derivation of the modelequations relies on phenomenological considerations and empiricism.
As the strengths and weaknesses of the standardk-model have becomeknown, improvements have been made to the model to improve its per-
formance. One of these variants is available in Airpak: the RNG k-model [22].
The RNG k- Model
The RNG k- model was derived using a rigorous statistical technique(called renormalization group theory). It is similar in form to the stan-dardk- model, but includes the following refinements:
The RNG model has an additional term in its equation thatsignificantly improves the accuracy for rapidly strained flows.
The effect of swirl on turbulence is included in the RNG model,enhancing accuracy for swirling flows.
18-8 c Fluent Inc. April 23, 2002
-
7/24/2019 CFD Theory Ansys Fluent
9/52
18.2 Turbulence
The RNG theory provides an analytical formula for turbulentPrandtl numbers, while the standardk-model uses user-specified,constant values.
While the standard k- model is a high-Reynolds-number model,the RNG theory provides an analytically-derived differential for-mula for effective viscosity that accounts for low-Reynolds-numbereffects.
These features make the RNG k- model more accurate and reliable fora wider class of flows than the standard k- model.
Computational Effort: CPU Time and Solution Behavior
Due to the extra terms and functions in the governing equations and agreater degree of nonlinearity, computations with the RNG k- modeltend to take 1015% more CPU time than with the standardk-model.
Aside from the time per iteration, the choice of turbulence model canaffect the ability ofAirpak to obtain a converged solution. For example,the standard k- model is known to be slightly over-diffusive in certainsituations, while the RNGk-model is designed such that the turbulentviscosity is reduced in response to high rates of strain. Since diffusion
has a stabilizing effect on the numerics, the RNG model is more likelyto be susceptible to instability in steady-state solutions. However, thisshould not necessarily be seen as a disadvantage of the RNG model,since these characteristics make it more responsive to important physicalinstabilities such as time-dependent turbulent vortex shedding.
The Two-Equation (Standardk-) Turbulence Model
The two-equation turbulence model (also known as the standard k-model) is more complex than the zero-equation model. The standardk-model [15] is a semi-empirical model based on model transport equationsfor the turbulent kinetic energy (k) and its dissipation rate (). The
model transport equation for k is derived from the exact equation, whilethe model transport equation for is obtained using physical reasoningand bears little resemblance to its mathematically exact counterpart.
c Fluent Inc. April 23, 2002 18-9
-
7/24/2019 CFD Theory Ansys Fluent
10/52
Theory
In the derivation of the standard k- model, it is assumed that the flowis fully turbulent, and the effects of molecular viscosity are negligible.The standard k- model is therefore valid only for fully turbulent flows.
Transport Equations for the Standardk - Model
The turbulent kinetic energy,k, and its rate of dissipation,, are obtainedfrom the following transport equations:
t(k) +
xi(kui) =
xi +tk
k
xi +Gk+Gb (18.2-12)and
t() +
xi(ui) =
xi
+
t
xi
+C1
k(Gk+ C3Gb) C2
2
k (18.2-13)
In these equations, Gk represents the generation of turbulent kineticenergy due to the mean velocity gradients, calculated as described later
in this section. Gb is the generation of turbulent kinetic energy due tobuoyancy, calculated as described later in this section. C1,C2, andC3are constants. k and are the turbulent Prandtl numbers for k and,respectively.
Modeling the Turbulent Viscosity
The eddy or turbulent viscosity, t, is computed by combining k and as follows:
t= Ck2
(18.2-14)
whereC is a constant.
18-10 c Fluent Inc. April 23, 2002
-
7/24/2019 CFD Theory Ansys Fluent
11/52
18.2 Turbulence
Model Constants
The model constants C1, C2, C, k, and have the following defaultvalues [15]:
C1= 1.44, C2= 1.92, C = 0.09, k = 1.0, = 1.3
These default values have been determined from experiments with airand water for fundamental turbulent shear flows including homogeneousshear flows and decaying isotropic grid turbulence. They have been foundto work fairly well for a wide range of wall-bounded and free shear flows.
The RNG k- Model
The RNG-based k-turbulence model is derived from the instantaneousNavier-Stokes equations, using a mathematical technique called renor-malization group (RNG) methods. The analytical derivation results ina model with constants different from those in the standard k- model,and additional terms and functions in the transport equations for k and. A more comprehensive description of RNG theory and its applicationto turbulence can be found in [7].
Transport Equations for the RNG k- Model
The RNGk- model has a similar form to the standard k- model:
t(k) +
xi(kui) =
xi
keff
k
xi
+Gk+Gb (18.2-15)
and
t() +
xi(ui) =
xi
eff
xi
+ C1
k(Gk+C3Gb) C2
2
k R (18.2-16)
c Fluent Inc. April 23, 2002 18-11
-
7/24/2019 CFD Theory Ansys Fluent
12/52
Theory
In these equations, Gk represents the generation of turbulent kineticenergy due to the mean velocity gradients, calculated as described laterin this section. Gb is the generation of turbulent kinetic energy due tobuoyancy, calculated as described later in this section. The quantities kandare the inverse effective Prandtl numbers fork and , respectively.
Modeling the Effective Viscosity
The scale elimination procedure in RNG theory results in a differentialequation for turbulent viscosity:
d
2
k
= 1.72
3 1 +Cd (18.2-17)
where
= eff/
C 100
Equation 18.2-17 is integrated to obtain an accurate description of howthe effective turbulent transport varies with the effective Reynolds num-ber (or eddy scale), allowing the model to better handle low-Reynolds-number and near-wall flows.
In the high-Reynolds-number limit, Equation 18.2-17 gives
t= Ck2
(18.2-18)
with C = 0.0845, derived using RNG theory. It is interesting to notethat this value ofC is very close to the empirically-determined value of0.09 used in the standard k- model.
In Airpak, the effective viscosity is computed using the differential vis-cosity in Equation 18.2-17.
18-12 c Fluent Inc. April 23, 2002
-
7/24/2019 CFD Theory Ansys Fluent
13/52
18.2 Turbulence
Calculating the Inverse Effective Prandtl Numbers
The inverse effective Prandtl numbersk and are computed using thefollowing formula derived analytically by the RNG theory:
1.39290 1.39290.6321
+ 2.39290+ 2.39290.3679 = moleff (18.2-19)
where 0 = 1.0. In the high-Reynolds-number limit (mol/eff 1),k = 1.393.
TheR
Term in the
Equation
The main difference between the RNG and standard k- models lies inthe additional term in the equation given by
R =C
3(1 /0)1 + 3
2
k (18.2-20)
where Sk/, 0= 4.38, = 0.012.The effects of this term in the RNG equation can be seen more clearlyby rearranging Equation 18.2-16. Using Equation 18.2-20, the last two
terms in Equation 18.2-16 can be merged, and the resulting equationcan be rewritten as
D
Dt=
xi
eff
xi
+C1
k(Gk+C3Gb) C2
2
k (18.2-21)
whereC2 is given by
C2 C2+C
3(1 /0)1 + 3
(18.2-22)
In regions where < 0, the R term makes a positive contribution, andC2becomes larger thanC2. In the logarithmic layer, for instance, it canbe shown that 3.0, giving C2 2.0, which is close in magnitude to
c Fluent Inc. April 23, 2002 18-13
-
7/24/2019 CFD Theory Ansys Fluent
14/52
Theory
the value ofC2 in the standardk-model (1.92). As a result, for weaklyto moderately strained flows, the RNG model tends to give results largelycomparable to the standard k- model.
In regions of large strain rate ( > 0), however, theRterm makes a neg-ative contribution, making the value ofC2 less thanC2. In comparisonwith the standard k- model, the smaller destruction of augments ,reducingk and eventually the effective viscosity. As a result, in rapidlystrained flows, the RNG model yields a lower turbulent viscosity thanthe standardk- model.
Thus, the RNG model is more responsive to the effects of rapid strain
and streamline curvature than the standard k- model, which explainsthe superior performance of the RNG model for certain classes of flows.
Model Constants
The model constantsC1and C2in Equation 18.2-16 have values derivedanalytically by the RNG theory. These values, used by default in Airpak,are
C1 = 1.42, C2= 1.68
Modeling Turbulent Production in thek- ModelsFrom the exact equation for the transport ofk, the termGk, representingthe production of turbulent kinetic energy, can be defined as
Gk = uiujujxi
(18.2-23)
To evaluate Gk in a manner consistent with the Boussinesq hypothesis,
Gk =tS2 (18.2-24)
whereSis the modulus of the mean rate-of-strain tensor, defined as
18-14 c Fluent Inc. April 23, 2002
-
7/24/2019 CFD Theory Ansys Fluent
15/52
18.2 Turbulence
S
2SijSij (18.2-25)
with the mean strain rate Sij given by
Sij =1
2
ujxj
+uixj
(18.2-26)
Effects of Buoyancy on Turbulence in thek- Models
When a non-zero gravity field and temperature gradient are present si-
multaneously, the k- models in Airpak account for the generation ofkdue to buoyancy (Gb in Equations 18.2-12 and 18.2-15), and the corre-sponding contribution to the production of in Equations 18.2-13 and18.2-16.
The generation of turbulence due to buoyancy is given by
Gb=git
Prt
T
xi(18.2-27)
where Prt is the turbulent Prandtl number for energy. For the standardk- model, the default value of Prt is 0.85. In the case of the RNG
k- model, Prt = 1/, where is given by Equation 18.2-19, but with0 = 1/Pr =k/cp. The coefficient of thermal expansion,, is definedas
= 1
T
p
(18.2-28)
It can be seen from the transport equation for k (Equation 18.2-12 or18.2-15) that turbulent kinetic energy tends to be augmented (Gb > 0)in unstable stratification. For stable stratification, buoyancy tends tosuppress the turbulence (Gb
-
7/24/2019 CFD Theory Ansys Fluent
16/52
Theory
While the buoyancy effects on the generation ofk are relatively well un-derstood, the effect on is less clear. InAirpak, by default, the buoyancyeffects on are neglected simply by setting Gb to zero in the transportequation for (Equation 18.2-13 or 18.2-16).
The degree to which is affected by the buoyancy is determined by theconstant C3. In Airpak, C3 is not specified, but is instead calculatedaccording to the following relation [10]:
C3= tanh
v
u
(18.2-29)
where v is the component of the flow velocity parallel to the gravita-tional vector and u is the component of the flow velocity perpendicularto the gravitational vector. In this way, C3 will become 1 for buoyantshear layers for which the main flow direction is aligned with the direc-tion of gravity. For buoyant shear layers that are perpendicular to thegravitational vector, C3 will become zero.
Convective Heat Transfer Modeling in thek- Models
In Airpak, turbulent heat transport is modeled using the concept ofReynolds analogy to turbulent momentum transfer. The modeled
energy equation is thus given by the following:
t(E) +
xi[ui(E+p)] =
xi
keff
T
xi
+Sh (18.2-30)
whereE is the total energy and keff is the effective conductivity.
For the standard k- model, keff is given by
keff=k+cpt
Prt
with the default value of the turbulent Prandtl number set to 0.85.For the RNG k- model, the effective thermal conductivity is
18-16 c Fluent Inc. April 23, 2002
-
7/24/2019 CFD Theory Ansys Fluent
17/52
18.3 Buoyancy-Driven Flows and Natural Convection
keff=cpeff
where is calculated from Equation 18.2-19, but with 0 = 1/Pr =k/cp.
The fact thatvaries withmol/eff, as in Equation 18.2-19, is an advan-tage of the RNG k- model. It is consistent with experimental evidenceindicating that the turbulent Prandtl number varies with the molecularPrandtl number and turbulence [14]. Equation 18.2-19 works well acrossa very broad range of molecular Prandtl numbers, from liquid metals(Pr
102) to paraffin oils (Pr
103), which allows heat transfer to be
calculated in low-Reynolds-number regions. Equation 18.2-19 smoothlypredicts the variation of effective Prandtl number from the molecularvalue ( = 1/Pr) in the viscosity-dominated region to the fully turbu-lent value (= 1.393) in the fully turbulent regions of the flow.
18.3 Buoyancy-Driven Flows and Natural Convection
The importance of buoyancy forces in a mixed convection flow can bemeasured by the ratio of the Grashof and Reynolds numbers:
Gr
Re2 =
gh
v2 (18.3-1)
When this number approaches or exceeds unity, you should expect strongbuoyancy contributions to the flow. Conversely, if it is very small, buoy-ancy forces may be ignored in your simulation. In pure natural con-vection, the strength of the buoyancy-induced flow is measured by theRayleigh number:
Ra =gT L3
(18.3-2)
whereis the thermal expansion coefficient:
= 1
T (18.3-3)
c Fluent Inc. April 23, 2002 18-17
-
7/24/2019 CFD Theory Ansys Fluent
18/52
Theory
and is the thermal diffusivity:
= k
cp(18.3-4)
Rayleigh numbers less than 108 indicate a buoyancy-induced laminarflow, with transition to turbulence occurring over the range of108 < Ra < 1010.
Airpakuses either the Boussinesq model or the ideal gas law in the cal-culation of natural-convection flows, as described below.
18.3.1 The Boussinesq Model
By default,Airpakuses the Boussinesq model for natural-convection flowsinvolving only one species. This model treats density as a constant valuein all solved equations, except for the buoyancy term in the momentumequation:
( 0)g 0(T T0)g (18.3-5)
where 0 is the (constant) density of the flow, T0 is the operating tem-perature, andis the thermal expansion coefficient. Equation 18.3-5 is
obtained by using the Boussinesq approximation = 0(1 T) toeliminate from the buoyancy term. This approximation is accurate aslong as changes in actual density are small; specifically, the Boussinesqapproximation is valid when (T T0) 1.
18.3.2 Incompressible Ideal Gas Law
In Airpak, if you choose to define the density using the ideal gas law fora single-fluid problem, Airpakwill compute the density as
= popR
Mw T
(18.3-6)
where R is the universal gas constant, Mw is the molecular weight ofthe fluid, and pop is defined by you as the Oper. pressure in the Advanced
18-18 c Fluent Inc. April 23, 2002
-
7/24/2019 CFD Theory Ansys Fluent
19/52
18.4 Radiation
problem setuppanel (see Section 6.4.4). In this form, the density dependson the operating pressure (not on the local relative pressure field, localtemperature field, or molecular weight).
If you choose to model species transport in Airpak, Airpak will computethe density as
= pop
RT
iYi
Mw,i
(18.3-7)
whereYiis the mass fraction of species iandMw,iis the molecular weightof species i. In this form, the density depends only on the operatingpressure.
Definition of the Operating Density
When the Boussinesq approximation is not used, the operating den-sity, 0, appears in the body-force term in the momentum equations as( 0)g.This form of the body-force term follows from the redefinition of pressurein Airpakas
p
s= ps 0gx (18.3-8)The hydrostatic balance in a fluid at rest is then
ps= 0 (18.3-9)
The definition of the operating density is thus important in all buoyancy-driven flows.
18.4 Radiation
Airpak provides two models that allow you to include radiation in yourheat transfer simulations:
c Fluent Inc. April 23, 2002 18-19
-
7/24/2019 CFD Theory Ansys Fluent
20/52
Theory
Surface-to-surface (S2S) radiation model [21] Discrete ordinates (DO) radiation model [8, 19]
18.4.1 Introduction to Radiative Heat Transfer
The terms radiative heat transfer and thermal radiation are commonlyused to describe heat transfer caused by electromagnetic (EM) waves.All materials continually emit and absorb EM waves, or photons. Thestrength and wavelength of emission depends on the temperature of theemitting material. At absolute zero K, no radiation is emitted froma surface. For heat transfer applications, wavelengths in the infraredspectrum are generally of greatest importance and are, therefore, theonly ones considered in Airpak.
While both conduction and convection (the other basic modes of heattransfer) require a medium for transmission, radiation does not. There-fore, thermal radiation can traverse a long distance without interactingwith a medium. Also, for most applications, conductive and convectiveheat transfer rates are linearly proportional to temperature differences.Radiative heat transfer rates, on the other hand, are (for the most part)proportional to differences in temperature raised to the fourth power.
Gray-Diffuse RadiationAirpaks radiation models assume the surfaces to be gray and diffuse.Emissivity and absorptivity of a gray surface are independent of thewavelength. Also, by Kirchoffs law [16], the emissivity equals the ab-sorptivity ( = ). For a diffuse surface, the reflectivity is independentof the outgoing (or incoming) directions.
As stated earlier, for applications of interest, the exchange of radia-tive energy between surfaces is virtually unaffected by the medium thatseparates them. Thus, according to the gray-body model, if a certainamount of radiation (E) is incident on a surface, a fraction (E) is re-
flected, a fraction (E) is absorbed, and a fraction ( E) is transmitted.Since for most indoor applications the surfaces in question are opaqueto internally-generated thermal radiation (in the infrared spectrum), thesurfaces can be considered opaque. The transmissivity, therefore, can be
18-20 c Fluent Inc. April 23, 2002
-
7/24/2019 CFD Theory Ansys Fluent
21/52
18.4 Radiation
neglected. It follows, from conservation of energy, that+= 1, since= (emissivity), and = 1 .
Radiative Transfer Equation
The radiative transfer equation (RTE) for an absorbing, emitting, andscattering medium at position r in the direction s is
dI(r, s)
ds + (a+s)I(r, s) =an
2 T4
+
s4
40
I(r, s ) (s s )d(18.4-1)
where r = position vectors = direction vectors = scattering direction vectors = path lengtha = absorption coefficientn = refractive indexs = scattering coefficient = Stefan-Boltzmann constant (5.672 108 W/m2-K4)I = radiation intensity, which depends on position (r)
and direction (s)T = local temperature = phase function = solid angle
(a+s)s is the optical thickness or opacity of the medium. The refrac-tive indexn is important when considering radiation in semi-transparentmedia. Figure 18.4.1 illustrates the process of radiation heat transfer.
18.4.2 The Surface-to-Surface Radiation Model
The default radiation model used in Airpak is the surface-to-surface ra-diation model. The energy flux leaving a given surface is composed ofdirectly emitted and reflected energy. The reflected energy flux is de-pendent on the incident energy flux from the surroundings, which thencan be expressed in terms of the energy flux leaving all other surfaces.The energy reflected from surface k is
c Fluent Inc. April 23, 2002 18-21
-
7/24/2019 CFD Theory Ansys Fluent
22/52
Theory
ds
Incomingradiation (I)
Outgoing radiation I + (dI/ds)ds
Absorption andscattering loss: I (a+s) ds
Gas emission:(aT /) ds4
Scatteringaddition
Figure 18.4.1: Radiation Heat Transfer
qout,k=kT4k +kqin,k (18.4-2)
whereqout,k is the energy flux leaving the surface, k is the emissivity,
is the Boltzmann constant, and qin,k is the energy flux incident on thesurface from the surroundings.
The amount of incident energy upon a surface from another surface isa direct function of the surface-to-surface view factor, Fjk . The viewfactor Fjk is the fraction of energy leaving surface k that is incident onsurfacej. The incident energy flux qik can be expressed in terms of theenergy flux leaving all other surfaces as
Akqin,k =N
j=1Ajqout,jFjk (18.4-3)
where Ak is the area of surface k and Fjk is the view factor betweensurfacek and surfacej. ForNsurfaces, using the view factor reciprocity
18-22 c Fluent Inc. April 23, 2002
-
7/24/2019 CFD Theory Ansys Fluent
23/52
18.4 Radiation
relationship gives
AjFjk = AkFkj forj = 1, 2, 3, . . . N (18.4-4)
so that
qin,k =N
j=1
Fkjqout,j (18.4-5)
Therefore,
qout,k =kT4k +k
Nj=1
Fkjqout,j (18.4-6)
which can be written as
Jk =Ek+ k
Nj=1
FkjJj (18.4-7)
whereJk represents the energy that is given off (or radiosity) of surfacek and Ek represents the emissive power of surface k. This represents N
equations, which can be recast into matrix form as
KJ=E (18.4-8)
where K is an N N matrix, J is the radiosity vector, and E is theemissive power vector.
Equation 18.4-8 is referred to as the radiosity matrix equation. The viewfactor between two finite surfaces i andj is given by
Fij = 1
AiAiAj
cos i cos j
r2 ijdAidAj (18.4-9)
whereij is determined by the visibility ofdAj todAi. ij = 1 ifdAj isvisible to dAi and 0 otherwise.
c Fluent Inc. April 23, 2002 18-23
-
7/24/2019 CFD Theory Ansys Fluent
24/52
Theory
18.4.3 The Discrete Ordinates (DO) Radiation Model
The discrete ordinates (DO) radiation model solves the radiative trans-fer equation (RTE) for a finite number of discrete solid angles, eachassociated with a vector direction s fixed in the global Cartesian system(x,y,z). The fineness of the angular discretization is set by default pa-rameters that depend on the type of problem you are solving. The DOmodel transforms Equation 18.4-1 into a transport equation for radia-tion intensity in the spatial coordinates (x,y,z). The DO model solvesfor as many transport equations as there are directions s. The solutionmethod is identical to that used for the fluid flow and energy equations.
The implementation in Airpakuses a conservative variant of the discreteordinates model called the finite-volume scheme [8, 19], and its extensionto unstructured meshes [17].
The DO Equations
The DO model considers the radiative transfer equation (RTE) in thedirections as a field equation. Thus, Equation 18.4-1 is written as
(I(r, s)s) + (a + s)I(r, s) =an2 T4
+
s4
4
0I(r, s ) (s s )d
(18.4-10)
Angular Discretization and Pixelation
Each octant of the angular space 4 at any spatial location is discretizedinto N N solid angles of extent i, called control angles. The an-gles and are the polar and azimuthal angles respectively, and aremeasured with respect to the global Cartesian system (x,y,z) as shownin Figure 18.4.2. The and extents of the control angle, and ,are constant.
When Cartesian meshes are used, it is possible to align the global angular
discretization with the control volume face, as shown in Figure 18.4.3.For generalized unstructured meshes, however, control volume faces do
18-24 c Fluent Inc. April 23, 2002
-
7/24/2019 CFD Theory Ansys Fluent
25/52
18.4 Radiation
z
y
x
s
Figure 18.4.2: Angular Coordinate System
not in general align with the global angular discretization, as shown inFigure 18.4.4, leading to the problem of control angle overhang [17].
C0 C1 n
Face f
Incoming
directions
Outgoing
directions
Figure 18.4.3: Face with No Control Angle Overhang
Essentially, control angles can straddle the control volume faces, so thatthey are partially incoming and partially outgoing to the face. Fig-ure 18.4.5 shows a 3D example of a face with control angle overhang.
The control volume face cuts the sphere representing the angular space
at an arbitrary angle. The line of intersection is a great circle. Controlangle overhang may also occur as a result of reflection and refraction.It is important in these cases to correctly account for the overhangingfraction. This is done through the use of pixelation [17].
c Fluent Inc. April 23, 2002 18-25
-
7/24/2019 CFD Theory Ansys Fluent
26/52
Theory
C0
C1
n
Face f
Incoming
directions
Outgoing
directions
Overhangingcontrol angle
Figure 18.4.4: Face with Control Angle Overhang
x
y
z
Outgoing
directions
Incomingdirections
Overhangingcontrolangle
Control
volume
face
Figure 18.4.5: Face with Control Angle Overhang (3D)
18-26 c Fluent Inc. April 23, 2002
-
7/24/2019 CFD Theory Ansys Fluent
27/52
18.4 Radiation
Each overhanging control angle is divided into NpNp pixels, as shownin Figure 18.4.6. The energy contained in each pixel is then treated asincoming or outgoing to the face. The influence of overhang can thus beaccounted for within the pixel resolution. For problems involving gray-diffuse radiation, the default pixelation of 1 1 is usually sufficient. Forproblems involving symmetry boundaries, a pixelation of 3 3 is used.
Pixel
Controlvolumeface
Control angle i
s i
Figure 18.4.6: Pixelation of Control Angle
Boundary Condition Treatment at Gray-Diffuse Walls
For gray radiation, the incident radiation heat flux, qin, at the wall is
qin =
sn>0
Iins nd (18.4-11)
The net radiative flux leaving the surface is given by
qout= (1 w)qin+n2wT4w (18.4-12)
c Fluent Inc. April 23, 2002 18-27
-
7/24/2019 CFD Theory Ansys Fluent
28/52
Theory
where n is the refractive index of the medium next to the wall. Theboundary intensity for all outgoing directionss at the wall is given by
I0= qout/ (18.4-13)
Boundary Condition Treatment at Symmetry Boundaries
At symmetry boundaries, the direction of the reflected ray srcorrespond-ing to the incoming direction s is given by
sr =s
2 (s
n) n (18.4-14)
Furthermore,
Iw(sr) =Iw(s) (18.4-15)
Boundary Condition Treatment at Flow Inlets and Exits
The net radiation heat flux at flow inlets and outlets is computed in thesame manner as at walls, as described above. Airpak assumes that theemissivity of all flow inlets and outlets is 1.0 (black body absorption).
18.5 Solution Procedures
18.5.1 Overview of Numerical Scheme
Airpakwill solve the governing integral equations for mass and momen-tum, and (when appropriate) for energy, species transport, and otherscalars such as turbulence. A control-volume-based technique is usedthat consists of:
Division of the domain into discrete control volumes using a com-putational grid.
Integration of the governing equations on the individual controlvolumes to construct algebraic equations for the discrete dependent
18-28 c Fluent Inc. April 23, 2002
-
7/24/2019 CFD Theory Ansys Fluent
29/52
18.5 Solution Procedures
variables (unknowns) such as velocities, pressure, temperature,and conserved scalars.
Linearization of the discretized equations and solution of the resul-tant linear equation system to yield updated values of the depen-dent variables.
The governing equations are solved sequentially (i.e., segregated fromone another). Because the governing equations are non-linear (and cou-pled), several iterations of the solution loop must be performed beforea converged solution is obtained. Each iteration consists of the steps
illustrated in Figure 18.5.1 and outlined below:
1. Fluid properties are updated, based on the current solution. (Ifthe calculation has just begun, the fluid properties will be updatedbased on the initialized solution.)
2. Theu,v, andw momentum equations are each solved in turn usingcurrent values for pressure and face mass fluxes, in order to updatethe velocity field.
3. Since the velocities obtained in Step 2 may not satisfy the con-tinuity equation locally, a Poisson-type equation for the pres-
sure correction is derived from the continuity equation and the lin-earized momentum equations. This pressure correction equationis then solved to obtain the necessary corrections to the pressureand velocity fields and the face mass fluxes such that continuity issatisfied.
4. Where appropriate, equations for scalars such as turbulence, en-ergy, species, and radiation are solved using the previously updatedvalues of the other variables.
5. A check for convergence of the equation set is made.
These steps are continued until the convergence criteria are met.
c Fluent Inc. April 23, 2002 18-29
-
7/24/2019 CFD Theory Ansys Fluent
30/52
Theory
Update properties.
Solve momentum equations.
Solve pressure-correction (continuity) equation.
Update pressure, face mass flow rate.
Solve energy, species, turbulence, and other
scalar equations.
Converged? Stop
Figure 18.5.1: Overview of the Solution Method
Linearization
The discrete, non-linear governing equations are linearized to produce asystem of equations for the dependent variables in every computationalcell. The resultant linear system is then solved to yield an updatedflow-field solution.
The manner in which the governing equations are linearized takes an
implicit form with respect to the dependent variable (or set of vari-ables) of interest. For a given variable, the unknown value in each cell iscomputed using a relation that includes both existing and unknown val-
18-30 c Fluent Inc. April 23, 2002
-
7/24/2019 CFD Theory Ansys Fluent
31/52
18.5 Solution Procedures
ues from neighboring cells. Therefore each unknown will appear in morethan one equation in the system, and these equations must be solvedsimultaneously to give the unknown quantities.
This will result in a system of linear equations with one equation foreach cell in the domain. Because there is only one equation per cell,this is sometimes called a scalar system of equations. A point implicit(Gauss-Seidel) linear equation solver is used in conjunction with an al-gebraic multigrid (AMG) method to solve the resultant scalar systemof equations for the dependent variable in each cell. For example, thex-momentum equation is linearized to produce a system of equations inwhich u velocity is the unknown. Simultaneous solution of this equation
system (using the scalar AMG solver) yields an updatedu-velocity field.
In summary, Airpak solves for a single variable field (e.g., p) by consid-ering all cells at the same time. It then solves for the next variable fieldby again considering all cells at the same time, and so on.
18.5.2 Spatial Discretization
Airpak uses a control-volume-based technique to convert the governingequations to algebraic equations that can be solved numerically. Thiscontrol volume technique consists of integrating the governing equationsabout each control volume, yielding discrete equations that conserve each
quantity on a control-volume basis.
Discretization of the governing equations can be illustrated most easilyby considering the steady-state conservation equation for transport ofa scalar quantity . This is demonstrated by the following equationwritten in integral form for an arbitrary control volume V as follows:
v d A=
d A+
V
S dV (18.5-1)
c Fluent Inc. April 23, 2002 18-31
-
7/24/2019 CFD Theory Ansys Fluent
32/52
Theory
where = densityv = velocity vector (=u +v in 2D)A = surface area vector = diffusion coefficient for = gradient of(= (/x) + (/y) in 2D)S = source of per unit volume
Equation 18.5-1 is applied to each control volume, or cell, in the com-putational domain. The two-dimensional, triangular cell shown in Fig-ure 18.5.2 is an example of such a control volume. Discretization ofEquation 18.5-1 on a given cell yields
Nfacesf
vffAf=Nfaces
f
()nAf+S V (18.5-2)
whereNfaces = number of faces enclosing cellf = value ofconvected through face f
fvf Af = mass flux through the faceAf = area of facef,|A|(=|Ax+Ay| in 2D)()n = magnitude ofnormal to face fV = cell volume
The equations solved by Airpak take the same general form as the onegiven above and apply readily to multi-dimensional, unstructured meshescomposed of arbitrary polyhedra.
Airpakstores discrete values of the scalar at the cell centers (c0 andc1in Figure 18.5.2). However, face values fare required for the convectionterms in Equation 18.5-2 and must be interpolated from the cell centervalues. This is accomplished using an upwind scheme.
Upwinding means that the face value f is derived from quantities inthe cell upstream, or upwind, relative to the direction of the normal
velocity vn in Equation 18.5-2. Airpak allows you to choose from twoupwind schemes: first-order upwind, and second-order upwind. Theseschemes are described below.
18-32 c Fluent Inc. April 23, 2002
-
7/24/2019 CFD Theory Ansys Fluent
33/52
18.5 Solution Procedures
c0
c1
A
Figure 18.5.2: Control Volume Used to Illustrate Discretization of a
Scalar Transport Equation
The diffusion terms in Equation 18.5-2 are central-differenced and arealways second-order accurate.
First-Order Upwind Scheme
When first-order accuracy is desired, quantities at cell faces are deter-mined by assuming that the cell-center values of any field variable rep-resent a cell-average value and hold throughout the entire cell; the face
quantities are identical to the cell quantities. Thus when first-order up-winding is selected, the face value f is set equal to the cell-center valueofin the upstream cell.
Second-Order Upwind Scheme
When second-order accuracy is desired, quantities at cell faces are com-puted using a multidimensional linear reconstruction approach [3]. Inthis approach, higher-order accuracy is achieved at cell faces through aTaylor series expansion of the cell-centered solution about the cell cen-troid. Thus when second-order upwinding is selected, the face value fis computed using the following expression:
f=+ s (18.5-3)
c Fluent Inc. April 23, 2002 18-33
-
7/24/2019 CFD Theory Ansys Fluent
34/52
Theory
where and are the cell-centered value and its gradient in the up-stream cell, and s is the displacement vector from the upstream cellcentroid to the face centroid. This formulation requires the determina-tion of the gradient in each cell. This gradient is computed usingthe divergence theorem, which in discrete form is written as
= 1V
Nfacesf
f A (18.5-4)
Here the face values fare computed by averaging from the two cells
adjacent to the face. Finally, the gradient is limited so that no newmaxima or minima are introduced.
Linearized Form of the Discrete Equation
The discretized scalar transport equation (Equation 18.5-2) contains theunknown scalar variable at the cell center as well as the unknownvalues in surrounding neighbor cells. This equation will, in general, benon-linear with respect to these variables. A linearized form of Equa-tion 18.5-2 can be written as
aP =nb anbnb+ b (18.5-5)
where the subscript nb refers to neighbor cells, and aP and anb are thelinearized coefficients for and nb.
The number of neighbors for each cell depends on the grid topology, butwill typically equal the number of faces enclosing the cell (boundary cellsbeing the exception).
Similar equations can be written for each cell in the grid. This results ina set of algebraic equations with a sparse coefficient matrix. For scalarequations,Airpaksolves this linear system using a point implicit (Gauss-
Seidel) linear equation solver in conjunction with an algebraic multigrid(AMG) method which is described in Section 18.5.4.
18-34 c Fluent Inc. April 23, 2002
-
7/24/2019 CFD Theory Ansys Fluent
35/52
18.5 Solution Procedures
Under-Relaxation
Because of the nonlinearity of the equation set being solved by Airpak,it is necessary to control the change of. This is typically achieved byunder-relaxation, which reduces the change of produced during eachiteration. In a simple form, the new value of the variable within a celldepends upon the old value, old, the computed change in , , andthe under-relaxation factor, , as follows:
= old+ (18.5-6)
Discretization of the Momentum and Continuity Equations
In this section, special practices related to the discretization of themomentum and continuity equations and their solution are addressed.These practices are most easily described by considering the steady-statecontinuity and momentum equations in integral form:
v d A= 0 (18.5-7)
v v d A=
pI
d A+
d A+ V
F dV (18.5-8)
where I is the identity matrix, is the stress tensor, and F is the forcevector.
Discretization of the Momentum Equation
The discretization scheme described earlier in this section for a scalartransport equation is also used to discretize the momentum equations.For example, thex-momentum equation can be obtained by setting =u:
aPu =nb
anb unb+
pfA +S (18.5-9)
c Fluent Inc. April 23, 2002 18-35
-
7/24/2019 CFD Theory Ansys Fluent
36/52
Theory
If the pressure field and face mass fluxes were known, Equation 18.5-9could be solved in the manner outlined earlier in this section, and avelocity field obtained. However, the pressure field and face mass fluxesare not known a priori and must be obtained as a part of the solution.There are important issues with respect to the storage of pressure andthe discretization of the pressure gradient term; these are addressed laterin this section.
Airpakuses a co-located scheme, whereby pressure and velocity are bothstored at cell centers. However, Equation 18.5-9 requires the value ofthe pressure at the face between cells c0 andc1, shown in Figure 18.5.2.Therefore, an interpolation scheme is required to compute the face values
of pressure from the cell values.
Pressure Interpolation Schemes
The default pressure interpolation scheme in Airpak is the body-force-weighted scheme. This scheme is good for high-Rayleigh-number naturalconvection flows. The body-force-weighted scheme computes the pres-sure values at the faces by assuming that the normal acceleration of thefluid resulting from the pressure gradient and body forces is continuousacross each face. This works well if the body forces are known explicitlyin the momentum equations (e.g., buoyancy calculations).
If buoyancy effects are not important in your model, it is recommendedthat you use the standard pressure scheme in Airpak. This interpolatesthe face pressure using momentum equation coefficients [20]. This proce-dure works well if the pressure variation between cell centers is smooth.When there are jumps or large gradients in the momentum source termsbetween control volumes, the pressure profile has a high gradient at thecell face, and cannot be interpolated using this scheme. If this scheme isused, the discrepancy shows up in overshoots/undershoots of cell veloc-ity.
Another source of error for the standard pressure scheme is that Airpakassumes that the normal pressure gradient at the wall is zero. Thisis valid for boundary layers, but not in the presence of body forces orcurvature. Again, the failure to correctly account for the wall pressuregradient is manifested in velocity vectors pointing in/out of walls.
18-36 c Fluent Inc. April 23, 2002
-
7/24/2019 CFD Theory Ansys Fluent
37/52
18.5 Solution Procedures
If you require a more accurate solution to your problem,Airpakprovidesa second-order pressure interpolation scheme. This reconstructs the facepressure using the reconstructed gradient of pressure in a manner similarto the method used for second-order-accurate convection terms (see thesection above on second-order upwind schemes for details). This schememay provide some improvement over the standard scheme, but it mayhave some trouble if it is used at the start of a calculation and/or witha poor-quality mesh.
Discretization of the Continuity Equation
Equation 18.5-7 may be integrated over the control volume in Figure 18.5.2to yield the following discrete equation
Nfacesf
JfAf = 0 (18.5-10)
whereJf is the mass flow rate through face f, vn.
As described in Section 18.5.1, the momentum and continuity equationsare solved sequentially. In this sequential procedure, the continuity equa-tion is used as an equation for pressure. However, pressure does not ap-pear explicitly in Equation 18.5-10 for incompressible flows, since densityis not directly related to pressure. The SIMPLE (Semi-Implicit Methodfor Pressure-Linked Equations) algorithm [18] is used for introducingpressure into the continuity equation. This procedure is outlined below.
In order to proceed further, it is necessary to relate the face values ofvelocity vn to the stored values of velocity at the cell centers. Linearinterpolation of cell-centered velocities to the face results in unphys-ical checker-boarding of pressure. Airpak uses a procedure similar tothat outlined by Rhie and Chow [20] to prevent checkerboarding. Theface value of velocity vn is not averaged linearly; instead, momentum-weighted averaging, using weighting factors based on the aP coefficient
from equation 18.5-9, is performed. Using this procedure, the face flowrate Jfmay be written as
c Fluent Inc. April 23, 2002 18-37
-
7/24/2019 CFD Theory Ansys Fluent
38/52
Theory
Jf= Jf+df(pc0 pc1) (18.5-11)
where pc0 and pc1 are the pressures within the two cells on either sideof the face, and Jfcontains the influence of velocities in these cells (seeFigure 18.5.2). The term df is a function of aP, the average of themomentum equation aPcoefficients for the cells on either side of face f.
Pressure-Velocity Coupling with SIMPLE
Pressure-velocity coupling is achieved by using Equation 18.5-11 to de-rive an equation for pressure from the discrete continuity equation (Equa-
tion 18.5-10). Airpak uses the SIMPLE (Semi-Implicit Method for Pressure-Linked Equations) pressure-velocity coupling algorithm. The SIMPLEalgorithm uses a relationship between velocity and pressure correctionsto enforce mass conservation and to obtain the pressure field.
If the momentum equation is solved with a guessed pressure fieldp, theresulting face flux Jfcomputed from Equation 18.5-11
Jf = J
f+df(p
c0 pc1) (18.5-12)
does not satisfy the continuity equation. Consequently, a correctionJf
is added to the face flow rate J
fso that the corrected face flow rate Jf
Jf =J
f+J
f (18.5-13)
satisfies the continuity equation. The SIMPLE algorithm postulates thatJfbe written as
Jf=df(p
c0 pc1) (18.5-14)
wherep is the cell pressure correction.
The SIMPLE algorithm substitutes the flux correction equations (Equa-tions 18.5-13 and 18.5-14) into the discrete continuity equation (Equa-tion 18.5-10) to obtain a discrete equation for the pressure correction p
in the cell:
18-38 c Fluent Inc. April 23, 2002
-
7/24/2019 CFD Theory Ansys Fluent
39/52
18.5 Solution Procedures
aPp =
nb
anbp
nb+b (18.5-15)
where the source term b is the net flow rate into the cell:
b=Nfaces
f
Jf (18.5-16)
The pressure-correction equation (Equation 18.5-15) may be solved us-ing the algebraic multigrid (AMG) method described in Section 18.5.4.
Once a solution is obtained, the cell pressure and the face flow rate arecorrected using
p= p +pp (18.5-17)
Jf =J
f+df(p
c0 pc1) (18.5-18)
Here p is the under-relaxation factor for pressure (see Equation 18.5-6and related description for information about under-relaxation). Thecorrected face flow rateJfsatisfies the discrete continuity equation iden-
tically during each iteration.
18.5.3 Time Discretization
InAirpakthe time-dependent equations must be discretized in both spaceand time. The spatial discretization for the time-dependent equationsis identical to the steady-state case (see Section 18.5.2). Temporal dis-cretization involves the integration of every term in the differential equa-tions over a time step t. The integration of the transient terms isstraightforward, as shown below.
A generic expression for the time evolution of a variable is given by
t =F() (18.5-19)
c Fluent Inc. April 23, 2002 18-39
-
7/24/2019 CFD Theory Ansys Fluent
40/52
Theory
where the function Fincorporates any spatial discretization. If the timederivative is discretized using backward differences, the first-order accu-rate temporal discretization is given by
n+1 nt
=F() (18.5-20)
where
= a scalar quantityn+ 1 = value at the next time level, t+ tn = value at the current time level, t
Once the time derivative has been discretized, a choice remains for eval-uating F(): in particular, which time level values of should be usedin evaluating F?
One method (the method used in Airpak) is to evaluate F() at thefuture time level:
n+1 nt
=F(n+1) (18.5-21)
This is referred to as implicit integration since n+1 in a given cell is
related to n+1
in neighboring cells through F(n+1
):
n+1 =n + tF(n+1) (18.5-22)
This implicit equation can be solved iteratively by initializing i to n
and iterating the equation
i =n + tF(i) (18.5-23)
until i stops changing (i.e., converges). At that point,n+1 is set toi.
The advantage of the fully implicit scheme is that it is unconditionallystable with respect to time step size.
18-40 c Fluent Inc. April 23, 2002
-
7/24/2019 CFD Theory Ansys Fluent
41/52
18.5 Solution Procedures
18.5.4 Multigrid Method
This section describes the mathematical basis of the multigrid approachused in Airpak.
Approach
Airpakuses a multigrid scheme to accelerate the convergence of the solverby computing corrections on a series of coarse grid levels. The use ofthis multigrid scheme can greatly reduce the number of iterations andthe CPU time required to obtain a converged solution, particularly whenyour model contains a large number of control volumes.
The Need for Multigrid
Implicit solution of the linearized equations on unstructured meshes iscomplicated by the fact that there is no equivalent of the line-iterativemethods that are commonly used on structured grids. Since direct ma-trix inversion is out of the question for realistic problems and whole-field solvers that rely on conjugate-gradient (CG) methods have robust-ness problems associated with them, the methods of choice are pointimplicit solvers like Gauss-Seidel. Although the Gauss-Seidel schemerapidly removes local (high-frequency) errors in the solution, global (low-frequency) errors are reduced at a rate inversely related to the grid size.Thus, for a large number of nodes, the solver stalls and the residualreduction rate becomes prohibitively low.
Multigrid techniques allow global error to be addressed by using a se-quence of successively coarser meshes. This method is based upon theprinciple that global (low-frequency) error existing on a fine mesh can berepresented on a coarse mesh where it again becomes accessible as local(high-frequency) error: because there are fewer coarse cells overall, theglobal corrections can be communicated more quickly between adjacentcells. Since computations can be performed at exponentially decayingexpense in both CPU time and memory storage on coarser meshes, there
is the potential for very efficient elimination of global error. The fine-gridrelaxation scheme or smoother, in this case either the point-implicitGauss-Seidel or the explicit multi-stage scheme, is not required to be par-
c Fluent Inc. April 23, 2002 18-41
-
7/24/2019 CFD Theory Ansys Fluent
42/52
Theory
ticularly effective at reducing global error and can be tuned for efficientreduction of local error.
The Basic Concept in Multigrid
Consider the set of discretized linear (or linearized) equations given by
A e+b= 0 (18.5-24)
where e is the exact solution. Before the solution has converged therewill be a defect d associated with the approximate solution :
A +b= d (18.5-25)
We seek a correction to such that the exact solution is given by
e= + (18.5-26)
Substituting Equation 18.5-26 into Equation 18.5-24 gives
A( +) +b = 0 (18.5-27)A + (A +b) = 0 (18.5-28)
Now using Equations 18.5-25 and 18.5-28 we obtain
A +d= 0 (18.5-29)
which is an equation for the correction in terms of the original fine leveloperator A and the defectd. Assuming the local (high-frequency) errorshave been sufficiently damped by the relaxation scheme on the fine level,the correction will be smooth and therefore more effectively solved on
the next coarser level.
18-42 c Fluent Inc. April 23, 2002
-
7/24/2019 CFD Theory Ansys Fluent
43/52
18.5 Solution Procedures
Restriction and Prolongation
Solving for corrections on the coarse level requires transferring the defectdown from the fine level (restriction), computing corrections, and thentransferring the corrections back up from the coarse level (prolongation).We can write the equations for coarse level corrections H as
AHH +R d= 0 (18.5-30)
where AH is the coarse level operator and R the restriction operatorresponsible for transferring the fine level defect down to the coarse level.
Solution of Equation 18.5-30 is followed by an update of the fine levelsolution given by
new = +P H (18.5-31)
where P is the prolongation operator used to transfer the coarse levelcorrections up to the fine level.
Unstructured Multigrid
The primary difficulty with using multigrid on unstructured grids is thecreation and use of the coarse grid hierarchy. On a structured grid, thecoarse grids can be formed simply by removing every other grid line fromthe fine grids and the prolongation and restriction operators are simpleto formulate (e.g., injection and bilinear interpolation).
Multigrid Cycles
A multigrid cycle can be defined as a recursive procedure that is appliedat each grid level as it moves through the grid hierarchy. Three types ofmultigrid cycles are available in Airpak: the V, W, and flexible (flex)cycles.
The V and W Cycles
Figures 18.5.3 and 18.5.4 show the V and W multigrid cycles (definedbelow). In each figure, the multigrid cycle is represented by a square, and
c Fluent Inc. April 23, 2002 18-43
-
7/24/2019 CFD Theory Ansys Fluent
44/52
Theory
then expanded to show the individual steps that are performed withinthe cycle. You may want to follow along in the figures as you read thesteps below.
For the V and W cycles, the traversal of the hierarchy is governed bythree parameters, 1,2, and 3, as follows:
1. 1 smoothings, (sometimes called pre-relaxation sweeps), areperformed at the current grid level to reduce the high-frequencycomponents of the error (local error).
In Figures 18.5.3 and 18.5.4 this step is represented by a circle
and marks the start of a multigrid cycle. The high-wave-numbercomponents of error should be reduced until the remaining error isexpressible on the next coarser mesh without significant aliasing.
If this is the coarsest grid level, then the multigrid cycle on thislevel is complete. (In Figures 18.5.3 and 18.5.4 there are 3 coarsegrid levels, so the square representing the multigrid cycle on level3 is equivalent to a circle, as shown in the final diagram in eachfigure.)
In Airpak, 1 is zero (i.e., pre-relaxation is not performed).!
2. Next, the problem is restricted to the next coarser grid level
using the appropriate restriction operator.In Figures 18.5.3 and 18.5.4, the restriction from a finer grid levelto a coarser grid level is designated by a downward-sloping line.
3. The error on the coarse grid is reduced by performing 2 multi-grid cycles (represented in Figures 18.5.3 and 18.5.4 as squares).Commonly, for fixed multigrid strategies 2 is either 1 or 2, corre-sponding to V-cycle and W-cycle multigrid, respectively.
4. Next, the cumulative correction computed on the coarse grid isinterpolated back to the fine grid using the appropriate prolon-gation operator and added to the fine grid solution.
In Figures 18.5.3 and 18.5.4 the prolongation is represented by anupward-sloping line.
18-44 c Fluent Inc. April 23, 2002
-
7/24/2019 CFD Theory Ansys Fluent
45/52
18.5 Solution Procedures
level
0
0
1
0
1
2
0
1
2
3
0
1
2
3
gridmultigrid cycle
1 smoothings
3 smoothings and/orLaplacian smoothings
Figure 18.5.3: V-Cycle Multigrid
level
0
0
1
0
1
2
0
1
2
3
0
1
2
3
grid
multigrid cycle
1 smoothings
3 smoothings and/orLaplacian smoothings
Figure 18.5.4: W-Cycle Multigrid
c Fluent Inc. April 23, 2002 18-45
-
7/24/2019 CFD Theory Ansys Fluent
46/52
Theory
The high-frequency error now present at the fine grid level is dueto the prolongation procedure used to transfer the correction.
5. In the final step,3 smoothings (post-relaxations) are performedto remove the high-frequency error introduced on the coarse gridby the 2 multigrid cycles.
In Figures 18.5.3 and 18.5.4, this relaxation procedure is repre-sented by a single triangle.
The Flexible Cycle
For the flexible cycle, the calculation and use of coarse grid correctionsis controlled in the multigrid procedure by the logic illustrated in Fig-ure 18.5.5. This logic ensures that coarser grid calculations are invokedwhen the rate of residual reduction on the current grid level is too slow.In addition, the multigrid controls dictate when the iterative solution ofthe correction on the current coarse grid level is sufficiently convergedand should thus be applied to the solution on the next finer grid. Thesetwo decisions are controlled by the parameters and shown in Fig-ure 18.5.5, as described in detail below. Note that the logic of the multi-grid procedure is such that grid levels may be visited repeatedly duringa single global iteration on an equation. For a set of 4 multigrid lev-els, referred to as 0, 1, 2, and 3, the flex-cycle multigrid procedure forsolving a given transport equation might consist of visiting grid levels as0-1-2-3-2-3-2-1-0-1-2-1-0, for example.
The main difference between the flexible cycle and the V and W cycles isthat the satisfaction of the residual reduction tolerance and terminationcriterion determine when and how often each level is visited in the flexiblecycle, whereas in the V and W cycles the traversal pattern is explicitlydefined.
The Residual Reduction Rate Criteria
The multigrid procedure invokes calculations on the next coarser gridlevel when the error reduction rate on the current level is insufficient, asdefined by
18-46 c Fluent Inc. April 23, 2002
-
7/24/2019 CFD Theory Ansys Fluent
47/52
18.5 Solution Procedures
R00 return R < R or
i > ii0
00
max,fine
Solve for on level 0 (fine) grid
R < R ori > i
i1
01
max,coarse
R > Ri0
i-10
Solve for on level 1 grid
R < R ori > i
i2
02
max,coarse
R > Ri1
i-11
Solve for
on level 2 grid
R < R ori > i
i3
03
max,coarse
R > Ri2
i-12
etc.
level
relaxation
Figure 18.5.5: Logic Controlling the Flex Multigrid Cycle
Ri> Ri1 (18.5-32)
HereRiis the absolute sum of residuals (defect) computed on the currentgrid level after theith relaxation on this level. The above equation statesthat if the residual present in the iterative solution after i relaxations isgreater than some fraction, (between 0 and 1), of the residual presentafter the (i1)th relaxation, the next coarser grid level should be visited.Thus is referred to as the residual reduction tolerance, and determineswhen to give up on the iterative solution at the current grid leveland move to solving the correction equations on the next coarser grid.The value ofcontrols the frequency with which coarser grid levels are
visited. The default value is 0.1. A larger value will result in less frequentvisits, and a smaller value will result in more frequent visits.
c Fluent Inc. April 23, 2002 18-47
-
7/24/2019 CFD Theory Ansys Fluent
48/52
Theory
The Termination Criteria
Provided that the residual reduction rate is sufficiently rapid, the correc-tion equations will be converged on the current grid level and the resultapplied to the solution field on the next finer grid level.
The correction equations on the current grid level are considered suffi-ciently converged when the error in the correction solution is reducedto some fraction, (between 0 and 1), of the original error on this gridlevel:
Ri< R0 (18.5-33)
Here, Ri is the residual on the current grid level after the ith iterationon this level, and R0 is the residual that was initially obtained on thisgrid level at the current global iteration. The parameter , referred to asthe termination criterion, has a default value of 0.1. Note that the aboveequation is also used to terminate calculations on the lowest (finest) gridlevel during the multigrid procedure. Thus, relaxations are continued oneach grid level (including the finest grid level) until the criterion of thisequation is obeyed (or until a maximum number of relaxations has beencompleted, in the case that the specified criterion is never achieved).
Restriction, Prolongation, and Coarse-Level Operators
The multigrid algorithm inAirpakis referred to as an algebraic multi-grid (AMG) scheme because, as we shall see, the coarse level equationsare generated without the use of any geometry or re-discretization on thecoarse levels; a feature that makes AMG particularly attractive for useon unstructured meshes. The advantage is that no coarse grids have tobe constructed or stored, and no fluxes or source terms need be evaluatedon the coarse levels. This approach is in contrast with FAS (sometimescalled geometric) multigrid in which a hierarchy of meshes is requiredand the discretized equations are evaluated on every level. In theory, theadvantage of FAS over AMG is that the former should perform better fornon-linear problems since non-linearities in the system are carried downto the coarse levels through the re-discretization; when using AMG, once
18-48 c Fluent Inc. April 23, 2002
-
7/24/2019 CFD Theory Ansys Fluent
49/52
18.5 Solution Procedures
the system is linearized, non-linearities are not felt by the solver untilthe fine level operator is next updated.
AMG Restriction and Prolongation Operators
The restriction and prolongation operators used here are based on the ad-ditive correction (AC) strategy described for structured grids by Hutchin-son and Raithby [11]. Inter-level transfer is accomplished by piecewiseconstant interpolation and prolongation. The defect in any coarse levelcell is given by the sum of those from the fine level cells it contains, whilefine level corrections are obtained by injection of coarse level values. Inthis manner the prolongation operator is given by the transpose of therestriction operator
P =RT (18.5-34)
The restriction operator is defined by a coarsening or grouping of finelevel cells into coarse level ones. In this process each fine level cell isgrouped with one or more of its strongest neighbors, with a prefer-ence given to currently ungrouped neighbors. The algorithm attemptsto collect cells into groups of fixed size, typically two or four, but anynumber can be specified. In the context of grouping, strongest refers to
the neighborj of the current cell i for which the coefficientAij is largest.For sets of coupled equations Aij is a block matrix and the measure ofits magnitude is simply taken to be the magnitude of its first element. Inaddition, the set of coupled equations for a given cell are treated togetherand not divided amongst different coarse cells. This results in the samecoarsening for each equation in the system.
AMG Coarse Level Operator
The coarse level operator AH is constructed using a Galerkin approach.Here we require that the defect associated with the corrected fine levelsolution must vanish when transferred back to the coarse level. Therefore
we may write
R dnew = 0 (18.5-35)
c Fluent Inc. April 23, 2002 18-49
-
7/24/2019 CFD Theory Ansys Fluent
50/52
Theory
Upon substituting Equations 18.5-25 and 18.5-31 for dnew and new wehave
R [A new +b] = 0
R
A
+P H
+b
= 0 (18.5-36)
Now rearranging and using Equation 18.5-25 once again gives
R A P H +R (A +b) = 0R A P H +R d = 0 (18.5-37)
Comparison of Equation 18.5-37 with Equation 18.5-30 leads to the fol-lowing expression for the coarse level operator:
AH =R A P (18.5-38)
The construction of coarse level operators thus reduces to a summationof diagonal and corresponding off-diagonal blocks for all fine level cells
within a group to form the diagonal block of that groups coarse cell.
18.5.5 Solution Residuals
During the solution process you can monitor the convergence dynam-ically by checking residuals. At the end of each solver iteration, theresidual sum for each of the conserved variables is computed and stored,thus recording the convergence history. This history is also saved in thedata file. The residual sum is defined below.
On a computer with infinite precision, these residuals will go to zeroas the solution converges. On an actual computer, the residuals decay
to some small value (round-off) and then stop changing (level out).For single precision computations (the default for workstations andmost computers), residuals can drop as many as six orders of magnitudebefore hitting round-off. Double precision residuals can drop up to twelve
18-50 c Fluent Inc. April 23, 2002
-
7/24/2019 CFD Theory Ansys Fluent
51/52
18.5 Solution Procedures
orders of magnitude. Guidelines for judging convergence can be foundin Section 14.10.5.
After discretization, the conservation equation for a general variable at a cell Pcan be written as
aPP =nb
anbnb+b (18.5-39)
Here aP is the center coefficient, anb are the influence coefficients for theneighboring cells, and b is the contribution of the constant part of thesource term Sc in S = Sc + SP and of the boundary conditions. In
Equation 18.5-39,
aP =nb
anb SP (18.5-40)
The residualR computed byAirpakis the imbalance in Equation 18.5-39summed over all the computational cells P. This is referred to as theunscaled residual. It may be written as
R = cells P
|nb
anbnb+b aPP| (18.5-41)
In general, it is difficult to judge convergence by examining the resid-uals defined by Equation 18.5-41 since no scaling is employed. This isespecially true in enclosed flows such as natural convection in a roomwhere there is no inlet flow rate of with which to compare the residual.Airpakscales the residual using a scaling factor representative of the flowrate of through the domain. This scaled residual is defined as
R =
cells P
nb
anbnb+b aPP
cells P|aPP|
(18.5-42)
c Fluent Inc. April 23, 2002 18-51
-
7/24/2019 CFD Theory Ansys Fluent
52/52
Theory
For the momentum equations the denominator term aPP is replacedbyaPvP, where vP is the magnitude of the velocity at cell P.
The scaled residual is a more appropriate indicator of convergence, andis the residual displayed by Airpak.
For the continuity equation, the unscaled residual is defined as
Rc =
cells P
|rate of mass creation in cell P| (18.5-43)
The scaled residual for the continuity equation is defined as
Rciteration NRciteration 5
(18.5-44)
The denominator is the largest absolute value of the continuity residualin the first five iterations.