Escolar Documentos
Profissional Documentos
Cultura Documentos
ANSYS, Inc.
Southpointe
275 Technology Drive
Canonsburg, PA 15317
ansysinfo@ansys.com
http://www.ansys.com
(T) 724-746-3304
(F) 724-514-9494
Release 15.0
February 2014
ANSYS, Inc. is
certified to ISO
9001:2008.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Disclaimer Notice
THIS ANSYS SOFTWARE PRODUCT AND PROGRAM DOCUMENTATION INCLUDE TRADE SECRETS AND ARE CONFIDENTIAL AND PROPRIETARY PRODUCTS OF ANSYS, INC., ITS SUBSIDIARIES, OR LICENSORS. The software products
and documentation are furnished by ANSYS, Inc., its subsidiaries, or affiliates under a software license agreement
that contains provisions concerning non-disclosure, copying, length and nature of use, compliance with exporting
laws, warranties, disclaimers, limitations of liability, and remedies, and other provisions. The software products
and documentation may be used, disclosed, transferred, or copied only in accordance with the terms and conditions
of that software license agreement.
ANSYS, Inc. is certified to ISO 9001:2008.
Third-Party Software
See the legal information in the product help files for the complete Legal Notice for ANSYS proprietary software
and third-party software. If you are unable to access the Legal Notice, please contact ANSYS, Inc.
Published in the U.S.A.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Table of Contents
1. Introduction ........................................................................................................................................... 1
1.1. New Beta Features in Fluent 15.0 ....................................................................................................... 1
2. Files ......................................................................................................................................................... 5
2.1. Fluid-Structure Interaction (FSI) ......................................................................................................... 5
2.2. Multi-Grid Parallel FieldView Export ................................................................................................... 5
3. Meshes ................................................................................................................................................... 7
3.1. Smoothing Registers ......................................................................................................................... 7
3.2. Meshing Mode Access ...................................................................................................................... 7
4. Boundary Conditions .............................................................................................................................. 9
4.1. Reference Temperature from a Boundary ........................................................................................... 9
4.2. Impedance Boundary Conditions .................................................................................................... 10
4.2.1. Overview ............................................................................................................................... 10
4.2.2. Restrictions and Limitations ................................................................................................... 11
4.2.3. Theory ................................................................................................................................... 11
4.2.4. Using Impedance Boundary Condition ................................................................................... 12
4.3. Wave Spectrum for Random Wave Boundaries ................................................................................. 14
4.4. Average Pressure Specification For Radial Profiles ............................................................................ 14
5. Physical Properties ................................................................................................................................ 15
5.1. Using REFPROP v9.1 Database in the NIST Real Gas Models .............................................................. 15
5.1.1. Legal Notice ........................................................................................................................... 15
5.1.2. Changing the Version of the REFPROP Database ..................................................................... 15
5.1.3. Additional Features Supported by the REFPROP v9.1 Database ................................................ 16
5.1.4. Limitations on Using the REFPROP v9.1 Database .................................................................... 16
6. Heat Transfer ........................................................................................................................................ 17
6.1. Enhanced Encapsulation for Shell Conduction and the S2S Model .................................................... 17
7. Heat Exchangers ................................................................................................................................... 19
7.1. Improved Curve Fitting for Heat-Exchanger Model .......................................................................... 19
7.1.1. Limitations ............................................................................................................................ 19
7.1.2. Usage .................................................................................................................................... 20
7.2. Alternate Formulation for the Dual Cell Heat Exchanger .................................................................. 20
8. Turbulence ............................................................................................................................................ 21
8.1. Explicit Algebraic Reynolds Stress Model ......................................................................................... 21
8.1.1. Accessing the WJ-BSL-EARSM Model ....................................................................................... 23
8.1.2. Applying Scale-Adaptive Simlulation (SAS) with WJ-BSL-EARSM .............................................. 24
8.1.3. References ............................................................................................................................. 24
8.2. Near-Wall Treatment for the Porous Media Interface ........................................................................ 24
8.2.1. Accessing the Turbulent Wall Treatment Option ...................................................................... 25
8.2.2. Example ................................................................................................................................. 26
8.3. Near-Wall Treatment for Models ............................................................................................. 29
8.3.1. Theory ................................................................................................................................... 31
8.3.1.1. Momentum Equations ................................................................................................... 31
8.3.1.2. k- Turbulence Models ................................................................................................... 31
8.3.1.3. Iteration Improvements ................................................................................................. 32
8.3.2. User Interface ......................................................................................................................... 33
8.3.3. Example ................................................................................................................................. 34
8.3.4. References ............................................................................................................................. 38
8.4. Buoyancy Effects on Omega-Based Turbulence Models .................................................................... 38
8.4.1. Theory ................................................................................................................................... 39
8.4.2. User Interface ......................................................................................................................... 40
9. Combustion ........................................................................................................................................... 43
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
iii
iv
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
vi
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 1: Introduction
This document contains information about ANSYS Fluent 15.0 beta features, which provide options for
modeling and reporting that are outside of the normal scope of ANSYS Fluent. These features are not
always accessible through the standard menus and dialog boxes, and will require the following text
user interface (TUI) command to enable them:
define beta-feature-access
Note
Please note that if you enable beta features in this case, use any beta features, and then
disable beta features, the beta features you put into use may still be active, even though
the text and graphical interfaces for these features may no longer be visible. It is
therefore recommended that you save a separate copy of the case before any beta
feature is activated. This will allow you to return to working on the case with only released
features if you desire.
Important
Note that beta features have not been fully tested and validated. ANSYS, Inc. makes no
commitment to resolve defects reported against these prototype features. However,
your feedback will help us improve the overall quality of the product.
Note
Beta features are not subject to our Class 3 error reporting system. In addition, we will not
guarantee that the input files using this beta feature will run successfully when the feature
is finally released so you may, therefore, need to modify the input files.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Introduction
An improved formulation of the Rhie-Chow flux treatment for unsteady terms. (Alternative Rhie-Chow
Flux With Moving Or Dynamic Meshes (p. 130))
Impedance boundary condition option for Mass Flow and Velocity boundaries. (Impedance Boundary
Conditions (p. 10))
Solver-Meshing
Ability to smooth wrinkled surfaces between marked and unmarked regions. (Smoothing Registers (p. 7))
Parallel
A Laplace partitioning option that extends the Laplace coarsening method to ensure that partition interfaces do not lie along areas of high cell aspect ratio. This improves convergence in parallel for highly
stretched cells (for instance, in some dynamic mesh applications). (Laplace Partitioning (p. 139))
Performance improvement for FieldView exports.
Turbulence
Enhancements to the existing band analysis for acoustic sources beta feature. (Band Analysis of Acoustic
Sources (p. 96))
Improvements to the formulation for the Menter-Lechner near-wall treatment (available for standard,
realizable, and RNG k- turbulence models). (Near-Wall Treatment for Models (p. 29))
Multiphase
Generalized species mass transfer model. (Interphase Species Mass Transfer (p. 105))
Implicit virtual mass treatment for improved convergence in steady-state multiphase simulations. (Implicit Virtual Mass Force (p. 116))
Discrete Phase
Volume injection type. (Volume Injections (p. 101))
DEM model compatibility with periodic boundary conditions. (Discrete Element Method with Periodic
Boundary Conditions (p. 103))
Reacting Flow
Generalized electro-chemistry model. (Modeling Electrochemistry (p. 44))
Support for NIST database version 9.1 (separately installed). (Using REFPROP v9.1 Database in the NIST
Real Gas Models (p. 15))
Adjoint
Multi-objective optimization tool that determines optimal mesh morphing to maximize an objective
function based on sensitivity data from an arbitrary set of observables and/or flow conditions. (Multiple
Objective Design (p. 161))
Prescribed design changes tool that allows you to evaluate the effect of a user-specified boundary
shape change on the chosen observable. (Prescribed Displacements (p. 166))
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 2: Files
2.1. Fluid-Structure Interaction (FSI)
When setting up a fluid-structure interaction problem, you can ensure that the forces mapped to the
FEA mesh are conserved by performing the following steps:
1. Enable the beta feature access (as described in Introduction (p. 1)).
2. Read an FEA mesh, using either the Read button of the Volume FSI Mapping or Surface FSI Mapping
dialog box, or the file/fsi/read-fsi-mesh text command.
3. Enable the conservation of the mapped forces by using the following text command:
file fsi conserve-force?
Important
FieldView does not support more than 10,000 grids
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 3: Meshes
3.1. Smoothing Registers
If the surface between a marked and an unmarked region is wrinkled, you can use the /adapt/smoothregister TUI command to smooth it.
> /adapt/smooth-register
marking register id/name
[] 0
The smoothing is accomplished by marking additional cells at the boundaries of the specified marked
register. The resulting collection of cells (i.e. the cells in the original register and the newly marked cells)
are added to a new register. The original register is preserved. You can thus see which cells have been
added to the marked region using register operations.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Important
This option can be used only when you specify the temperature and/or species concentration on the boundary as constant.
This option will not be available if the boundary has a profile or UDF for temperature.
This option is only available for the pressure-based solver.
Specifying the inlet boundary for the calculation of reference density helps in predicting quiescent
flows.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Boundary Conditions
Figure 4.1: The Operating Conditions Dialog Box
After enabling beta feature access (Introduction (p. 1)), you can use the following text command:
define operating-conditions use-inlet-temperature-for-operating-density
Enter the Zone-id/name [()].
4.2.1. Overview
Traditional flow boundary conditions are reflective. The non-reflective boundary condition is fully nonreflective. The impedance boundary condition (IBC) lies in between and provides the ability to specify
a partial reflection in the range from full-reflection to no-reflection. Impedance is a complex value; It is
the reflection that changes the amplitude and the phase of the incoming wave. The use of impedance
boundary conditions comes in cases where the flow in the simulation is highly influenced by reflected
waves from objects outside the computational domain. In such cases the acoustic wave interaction
from the larger domain can be modeled in the smaller domain through the use of impedance boundary
conditions.
10
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
4.2.3. Theory
Impedance specifies an acoustic resistance in the frequency domain. It is a characteristic of the properties
of the media and specific geometry described by a ratio of the pressure perturbation to the normal
velocity perturbation at the boundary Blackstock [[1] (p. 14)].
(4.1)
where apostrophe denotes acoustic perturbation and hat denotes quantity in the frequency domain.
Fluent is a time domain solver. It cannot use the impedance from the frequency domain directly. The
above expression and all its variables have to be converted to the time domain. After the conversion
the relation between pressure and normal velocity perturbations is expressed through a convolution
integral.
(4.2)
If impedance, , is unbounded in the time domain, then admittance is used (admittance is the
inverse of impedance). Fluent uses the reflection coefficient instead of impedance/admittance, to uniformly treat unbounded cases Fung [[2] (p. 14)]. The reflection coefficient is a ratio between reflected
and incoming wave amplitudes at the boundary. It is expressed through the impedance as:
(4.3)
Using a reflection coefficient, the relation between pressure and normal velocity perturbation is:
(4.4)
The discretized form of this expression is used in Fluent to connect acoustic pressure and normal velocity.
The computed acoustic perturbations are superimposed onto the pressure and velocity from non-reflecting boundary condition equations. The non-reflecting boundary condition equations provide mean
flow values at the boundary, which drive the flow in the domain.
The data for the reflection coefficient are available in the frequency domain. As such they usually do
not satisfy the causality and reality conditions. Fluent asks you to provide the reflection coefficient data
in the form of a special approximation. This approximation is based on the system theory which ensures
that the reflection coefficient in the time domain will satisfy the above conditions Fung [[3] (p. 14)].
The reflection coefficient is represented as a sum of zero, first and second order systems. The zero system
is described with a real value, the first order system is described with a real pole, and the second order
system is described with a pair of complex conjugate poles. Introducing a system variable, = the
complete approximation for the reflection coefficient is:
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
11
Boundary Conditions
+
=+
+
+
= + = + + +
where is a real term, is a number of real poles, and
number of complex conjugate pole pairs, ,
(4.5)
pole, and are real and imaginary part of the amplitude of the complex pole.
To obey the causality and reality conditions, real pole , real and imaginary part
of the complex
conjugate pole should be positive. The passivity condition requires that the absolute value of zero order
term be less than 1. The above restrictions are enforced in the user interface. In addition you should
ensure that the absolute value of the reflection coefficient computed by this formula is less than 1.
The impedance data can be obtained from measurements or from an acoustic solver. Running these
data through a mathematics package will provide an approximation in terms of first and second order
poles.
Select pressure-outlet from the Boundary Condition task page and click the Edit... button.
2.
3.
In Impedance Input enter data for the reflection coefficient according to the approximation formula
(Equation 4.5 (p. 12)).
Important
If flow is tangential to the boundary, then specify either From Neighboring Cell or
Direction Vector for Back flow Direction Specification Method. Do not select Normal
to the boundary because this computes the face velocity components from flux to zero
values during initialization, which impairs solver convergence.
12
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The IBC is implemented on top of the non-reflective boundary condition. Choose a time step that
will not make the CFL number exceed a value of 1 in the cells adjacent to the impedance boundary.
Note
The mean flow in the domain should be well established before enabling IBC.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
13
Boundary Conditions
Bibliography
[1] Blackstock, D.T.. Fundamentals of Physical Acoustics. John Wiley & Sons. 2000.
[2] Fung, K. -Y, Ju, H. and Tallapragada, B.. "Impedance and Its Time-Domain Extensions. AIAA Journal,
Vol. 38, No. 1 pp. 3038.. January 2000.
[3] Fung, K. -Y, Hongbin, Ju,. "Broadband Time-Domain Impedance Models. AIAA Journal, Vol. 39, No. 8.
January 2001.
14
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
15
Physical Properties
To revert to the default REFPROP v7.0 property database, enter the /define/user-defined/realgas-models/nist-settings command again and enter no at the prompt. ANSYS Fluent will report
the change in the console window.
cf3i.fld
c1cc6.fld
cyclopen.fld
d4.fld
d5.fld
d6.fld
dee.fld
dmc.fld
ebenzene.fld
hcl.fld
ioctane.fld
md2m.fld
md3m.fld
md4m.fld
mdm.fld
mlinolea.fld
mlinolen.fld
mm.fld
moleate.fld
mpalmita.fld
mstearat.fld
mxylene.fld
novec649.fld
orthohyd.fld
oxylene.fld
pxylene.fld
r161.fld
r1216.fld
r1233zd.fld
r1234yf.fld
re143a.fld
r1234ze.fld
re245cb2.fld
re245fa2.fld
re347mcc.fld
r404a.ppf
r407c.ppf
r410a.ppf
r507a.ppf
r40.fld
Pseudofluids
air.ppf
16
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
17
18
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
(7.2)
ANSYS Fluent will read the file coefficient3.dat and use the coefficients in Equation 7.1 (p. 19)
to compute the NTU value if the primary mass flow rate is out of range. If the primary mass flow rate
is within the range, the above coefficients will be ignored and linear interpolation will be used.
Similarly, to use Equation 7.2 (p. 19), you have to create a file named coefficient5.dat in your
working directory, which contains the coefficients a,b,c,d, and g for each of the auxiliary mass flow rates
row by row. For example if the number of auxiliary mass flow rates is 3 then the file will read as
a1 b1 c1 d1 g1 a2 b2 c2 d2 g2 a3 b3 c3 d3 g3
7.1.1. Limitations
This feature can be used only for one heat exchanger since it can read only one file for coefficients.
This feature is available only with the dual cell heat exchanger model (see Using the Dual Cell Heat Exchanger Model in the User's Guide).
This feature cannot be used for interpolation. Linear interpolation is used for such cases.
Curves of the type outlined above can only be used for extrapolation.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
19
Heat Exchangers
7.1.2. Usage
Make sure you first enable beta feature access, as described in Introduction (p. 1). The feature can
be activated by setting an rpvar as follows:
For curve (1), enter (rpsetvar dc/extrapolation-method exponential3) in the console. A
coefficient file named coefficient3.datwill be created in the working directory when you perform
iterations.
For curve (2), enter (rpsetvar dc/extrapolation-method exponential5) in the console. A
coefficient file named coefficient5.dat will be created in the working directory when you perform
iterations.
To go back to the default extrapolation, use the following rpvar:
(rpsetvar dc/extrapolation-method default)
20
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 8: Turbulence
This chapter contains information relating to turbulence models implemented as beta features in ANSYS
Fluent 15.0.
8.1. Explicit Algebraic Reynolds Stress Model
8.2. Near-Wall Treatment for the Porous Media Interface
8.3. Near-Wall Treatment for Models
8.4. Buoyancy Effects on Omega-Based Turbulence Models
= +
where the anisotropy tensor is searched as a solution of the following implicit algebraic matrix
equation:
= +
= +
(8.1)
The coefficients in this matrix equation depend on the -coefficients of the pressure-strain term in
the underlying Reynolds stress transport model. Their values are selected here as =1.245, =0,
=1.8, =2.25.
The values of , , and are the same as those used in the original model by Wallin and Johansson
[1]. As for the value of , it is increased from 1.2 to 1.245 in the course of calibrating EARSM for its
use together with the BSL model.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
21
Turbulence
and denote the non-dimensional strain-rate and vorticity tensors, respectively. They are defined
as:
=
+
(8.2)
(8.3)
= =
(8.4)
In order to arrive at an explicit solution of the Equation 8.1 (p. 21), the anisotropy tensor is expressed
as a polynomial based on the strain rate and the vorticity tensors as follows:
= + +
+ +
(8.5)
=
=
The invariants, which appear in the formulation of the anisotropy tensor and the coefficients, are defined
by:
=
=
=
The model representation of the anisotropy tensor Equation 8.5 (p. 22) and its coefficients follows
the original model by Wallin and Johansson [1] with two differences. First, the fourth order tensor
polynomial contribution (the
22
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
+ +
+
(8.6)
<
where
= +
= + +
In the original model by Wallin and Johansson [1], the diffusion terms in the transport equations for
= , of EARSM, where
= . The EARSM model, implemented in ANSYS Fluent, uses the standard eddy viscosity
= for the diffusion terms. This model change helps to avoid the problems with the asymptotic
behavior at the boundary layer edge, which were reported by Hellsten [3].
For the underlying BSL model, the standard coefficients are used.
Note
It is only available for 3D cases.
The model is available in the interface when the k-omega model is selected. The WJ-BSL-EARSM option
becomes available under k-omega Model, as shown in Figure 8.1: The Viscous Model Dialog Box (p. 24).
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
23
Turbulence
Figure 8.1: The Viscous Model Dialog Box
8.1.3. References
1. Wallin, S. and Johansson A., A complete explicit algebraic Reynolds stress model for incompressible and
compressible flows, Journal of Fluid Mechanics, 403, pp. 89-132, 2000.
2. Apsley, D.D. and Leschziner, M.A., A new low-reynolds-number nonlinear two-equation turbulence
model for complex flows, International Journal of Heat and Fluid Flow, 19, pp. 209-222, 1998
3. Hellsten, A., New advanced turbulence model for high-lift aerodynamics, AIAA Paper 2004-1120,
Reno, Nevada, 2004.
4. Menter, F. R., Two-Equation Eddy-Viscosity Turbulence Models for Engineering Applications. AIAA
Journal. 32(8). 15981605. August 1994.
24
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Furthermore, the diffusion term is set to zero at the interface, and the near-wall distance is updated to
obtain a proper wall treatment.
The near-wall treatment which is used at the interface behaves identical to that of a solid wall, also
with respect to y+.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
25
Turbulence
Figure 8.2: The Porous Jump Dialog Box
8.2.2. Example
As outlined in the introduction, the purpose of the Enable turbulent wall treatment option is to include
the effects of the porous material on the turbulent flow, for example at an interface between a fluid
and a porous medium. Figure 8.3: Setup of Two Channel Flows Separated by Wall / Porous Jump Interface;
Color Denotes Contours of the Streamwise Velocity Component. (p. 27) shows the setup of two channel
flows, which are separated by a wall in the first part and by a porous jump interface in the larger
second part. The Reynolds number based on the centerline velocity and channel half height in each
+
channel is .
The lower zone in the second part is defined as a cell zone where the porous media model has been
activated. A viscous loss term has been specified with a small viscous resistance of
in the
streamwise direction. The interface between the lower porous media zone and the upper pure fluid
zone has been defined as porous jump with a medium thickness of zero. Therefore, no pressure jump
occurs across the interface. It is only used to enable the turbulent wall treatment at the fluid side of
the interface. Two simulations have been performed with and without the turbulent wall treatment at
the interface in order to investigate the influence.
Inlet boundary condition profiles are prescribed for the velocity and the turbulence quantities which
have been obtained from a 1D periodic channel flow. The outlet is specified as pressure outlet. The
grid is refined both to the walls (y+ ~ 2) and to the interface. The SST turbulence model has been used
for both simulations.
26
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Figure 8.4: Profiles of the Streamwise Velocity Component Near the Outlet at Position x=0.9m Without
(top) and With (bottom) Near-Wall Treatment at the Interface. Red Denotes the Pure Fluid Side, Black
Represents the Side of the Porous Media (p. 28) shows profiles of the streamwise velocity component
at position x=0.9m near the outlet without (top) and with (bottom) near-wall treatment at the interface.
The profiles in the pure fluid zone are colored in red. The profiles in the zone where the porous media
model is activated are colored in black.
The inclusion of the wall shear stress in the momentum equation has reduced the streamwise velocity
at the interface on the fluid side. In the figures cell center, values have been plotted to allow a direct
comparison with the effect caused by the walls. The effect of the new treatment at the interface is
similar to the influence of the upper wall.
The profiles of the turbulent viscosity ratio are shown in Figure 8.5: Profiles of the Turbulent Viscosity
Ratio Near the Outlet at Position x=0.9m Without (top) and With (bottom) Near-Wall Treatment at the
Interface. Red Denotes the Pure Fluid Side, Black Represents the Side of the Porous Media (p. 29). In
this simulation, a fine grid has been used which allows you to resolve the viscous sublayer. The eddy
viscosity ratio is nearly zero close to the walls. The interface shows the same effect due to the additional
source term in the -equation when the near-wall treatment has been enabled and reduces the turbulent
viscosity ratio.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
27
Turbulence
Figure 8.4: Profiles of the Streamwise Velocity Component Near the Outlet at Position x=0.9m
Without (top) and With (bottom) Near-Wall Treatment at the Interface. Red Denotes the Pure
Fluid Side, Black Represents the Side of the Porous Media
28
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
29
Turbulence
a low-Reynolds number model. The wall function approach requires the cell centre of the first grid point
to lie in the logarithmic layer. The low-Reynolds formulation requires an integration to the wall using
+
a resolution of < . Both approaches produce large errors if used outside their range of validity.
+
The wall function method deteriorates under mesh refinement. For meshes coarser than = , the
low-Reynolds formulation results in inaccurate wall values for the wall shear stress and heat transfer.
In order to obtain a less sensitive formulation, wall models have been developed which are
-insens+
itive. The computed wall values (shear stress and heat transfer) are largely independent of the
+
value provided by the grid. Any -insensitive wall treatment reverts back to its underlying lowReynolds formulation when the grid is sufficiently fine, and reverts to the wall function formulation
when the grid is coarse. The lack of a suitable low-Reynolds formulation was the main obstacle in the
formulation of such wall treatments for the -equation. While many low-Reynolds formulations have
been developed and published, they all suffered from one of more of the following problems. The formulations:
are complicated, as the formulation involved numerous highly non-linear damping terms
are numerically not robust for complex applications
may produce multiple (non-unique) solutions for the same application
may produce pseudo-transitional results, or unphysical laminar zones.
Due to these problems, the model formulation of choice in todays industrial codes for the -equation
is a two-layer formulation. The two-layer formulation avoids the solution of the -equation in the viscous
sublayer and overwrites it with an algebraic formulation based on a simple mixing-length model.
+
In Fluent the two-layer model is the basis of the Enhanced Wall Treatment (EWT), which is the -insensitive formulation for all -equation based models. In the two-layer approach, the fluid domain is
subdivided into a viscosity-affected region and a fully-turbulent region. The blending of the two regions
is determined by a turbulent Reynolds number
, which is defined as:
(8.7)
where is the density, is the wall-normal distance, is the turbulence kinetic energy, and is the
molecular viscosity.
The blending of the two regions is centred around:
>
<
(default value). In the fully turbulent region the transport equations for the turbulence
=
kinetic energy and the dissipation rate are evaluated. In the viscosity-affected near-wall region the
one-equation model of Wolfstein is employed.
where
30
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
An alternative formulation has been developed which is not based on the two-layer approach but uses
a new low-Reynolds formulation. This alternative formulation is designed to avoid the above listed deficiencies of existing low-Reynolds formulations, as well as those of the two-layer formulation.
8.3.1. Theory
+
+
The goal of a insensitive near-wall treatment is the -independent prediction of the wall shear
stress and wall heat flux (assuming a sufficient resolution of the boundary layer). The formulation should
switch gradually from wall functions to a low-Reynolds formulation when the grid is refined. This switch
requires a blending of various quantities between the viscous sublayer and the logarithmic region.
(8.8)
and are blended between the viscous sublayer and the logarithmic region. The
blending for
is:
=
+
(8.9)
(8.10)
+
= +
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
(8.11)
31
Turbulence
(8.12)
(8.13)
where =
, =
, =
, =
, and =
The additional source term is active only in the viscous sublayer and accounts for low-Reynolds
number effects. It automatically becomes zero in the logarithmic region. The exact formulation of this
source term is at this point proprietary and therefore not given here. The formulation is available for
standard, realizable, and RNG turbulence models.
32
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
33
Turbulence
Figure 8.8: "Near wall treatment Menter-Lechner" Option in the Viscous Model Dialog Box
You can enable the new near-wall treatment using the following text command:
/define/models/viscous/near-wall-treatment/ke-nwt-menter-lechner? yes
The new near-wall treatment can be used together with the standard, realizable, and RNG turbulence models.
8.3.3. Example
A zero pressure gradient flat plate boundary layer, demonstrated in Figure 8.9: Zero pressure gradient
flat plate boundary conditions (p. 35), was used as one of the basic validation cases. The experiment
was carried out by Wieghardt (1951) and was included in the AFOSR-IFP Stanford conference on turbulent
flows (Coles and Hirst (1969)). Experimental data is available for velocity profiles at different locations
and for the skin friction coefficient. Since no measurements of heat transfer are available for this case,
the Reynolds analogy has been used to estimate the distribution of the Stanton number for the experiment.
34
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The calculations have been performed with the standard model on six different grids. The corres+
ponding values are given in Table 1.
Table 8.1: y+ values for the different grids at position x 4.7 [m]
grid
0.09
0.4
2.2
5.8
10.6
21.4
at
The distribution of the skin friction coefficient and the Stanton number along the wall is shown in Figure 8.10: Skin Friction Coefficient (p. 36) and Figure 8.11: Stanton Number (p. 37). The results are in
agreement with the experimental values and show only a small variation for the different grids.
Velocity profiles in wall units for different grids at position x 4.7 [m] are present in Figure 8.12: Velocity
Profiles in Wall Units for Different Grids at Position x 4.7 [m] (p. 38). The velocity profiles show a correct
behavior in the logarithmic region.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
35
Turbulence
Figure 8.10: Skin Friction Coefficient
36
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
37
Turbulence
Figure 8.12: Velocity Profiles in Wall Units for Different Grids at Position x 4.7 [m]
8.3.4. References
Bibliography
[1] D.E. Coles and E.A. Hirst. "Computation of turbulent boundary layers". 1968 AFOSR-IFP-Stanford Conference. Stanford University, CA. 1968.
[2] K Wieghardt and W. Tillmann. On the turbulent friction layer for rising pressure". Technical Memorandum
1314. National Advisory Committee for Aeronautics. 1951.
38
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
8.4.1. Theory
The standard --model that includes the buoyancy term is written as:
+
=
+
+ +
+
=
+
+ +
where =
, =
, =
, =
, and =
(8.14)
For details on modeling of turbulence generation due to buoyancy ( ), see Effects of Buoyancy on
Turbulence in the k- Models in the Fluent Theory Guide.
The buoyancy term in the -equation is derived from the and equations using the following relations:
(8.15)
This derivation leads to the following transformation of the buoyancy source terms:
(8.16)
(8.17)
The first part of the buoyancy term in the equation comes from the transport equation of the
dissipation rate. The second part of the term comes from the turbulence kinetic energy equation. The
model coefficient, , is replaced with
+ , where is the corresponding coefficient of the production term in the -equation. In the SST model, this coefficient is a linear combination of the corresponding coefficients of the - and the transformed - models. For the - model, the value of is
0.44. The value for in the standard - model is recovered from this value of .
The SST model with buoyancy terms is written as:
+
=
+
+ +
+
=
+
+ +
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
(8.18)
(8.19)
39
Turbulence
Where, and stand for coefficients of the - and - models respectively. Without low Reynolds
number corrections, the coefficients have the following values:
The final formulation of the buoyancy source terms for the transport equations are:
(8.20)
The -equation buoyancy formulation term, , can be applied to the following turbulence models:
Standard and SST - models
Transition SST
40
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
You can also enable the new buoyancy option using the following text command:
define/models/viscous/kw-buoyancy-effects?
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
41
42
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 9: Combustion
9.1. Char Burnout Kinetics (CBK) Model
The Char Burnout Kinetics (CBK) model describes char oxidation under conditions relevant to pulverized
coal combustion processes. It includes effects of thermal annealing and ash inhibition on the char
combustion. The form of this model that is available in ANSYS Fluent only applies to atmospheric conditions and has no statistical kinetics.
The CBK model can be defined as a material property in the Create/Edit Materials dialog box (Figure 9.1: The Create/Edit Materials Dialog Box with the CBK Model Selected (p. 43)) for problems in which
you have defined discrete-phase injections.
Materials Edit...
Figure 9.1: The Create/Edit Materials Dialog Box with the CBK Model Selected
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
43
Combustion
Once you have selected combusting-particle from the Material Type drop-down list, you can select
cbk from the Combustion Model drop-down list in the Properties group box. The New CBK-8 Combustion Model dialog will open, allowing you to set the char reactivity parameters (see Figure 9.2: The
New CBK-8 Combustion Model Dialog Box (p. 44)). The default values are acceptable.
Figure 9.2: The New CBK-8 Combustion Model Dialog Box
9.1.1. References
1. FORTRAN program CBK8. Brown University, Providence, 1998.
2. R. Hurt, J. K. Sun, and M. Lunden. A Kinetic Model of Carbon Burnout in Pulverized Coal Combustion.
Combustion and Flame, 113:181-197, 1998.
3. R. E. Mitchell, R. Hurt, L. L. Baxter, and D. R. Hardesty. Compilation of Sandia Coal Char Combustion Data
and Kinetic Analyses: Milestone Report. Technical Report SAND92-8208, Sandia National Laboratory, Livermore, CA, 1992.
4. J. K. Sun and R. Hurt. Mechanics of Extinction and Near-Extinction in Pulverized Solid Fuel Combustion.
Proceedings of the Combustion Institutes, 28:2205-2213, 2000.
44
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
(9.1)
Modeling Electrochemistry
where:
= Temperature (K)
= overpotential (V)
(9.2)
where is the electrode potential (V), is the electrolyte potential (V), and
is the equilibrium
potential (V).
The driving force for the electro-chemical reaction is hence the potential difference across the electrodeelectrolyte interface. The electric potential is governed by the Gauss law, which expresses charge conservation:
(9.3)
th
), is the
th
is the concentration
species.
Note that Equation 9.3 (p. 45) does not have an unsteady term. ANSYS Fluent assumes charge neutrality,
so the right-hand side of Equation 9.3 (p. 45) is zero. Charge neutrality is not explicitly enforced. Instead,
it is assumed that there are unrepresented species of identical opposite charge that cancel the represented species charge. Typically, the electric potential changes gradually through the electrodes and
electrolyte, but very rapidly across the Faradaic interface. This sharp change is not resolved and is
modeled as a jump across the electrode-electrolyte interface.
The electric field may exert a force on the charged species in the electrolyte. This results in an additional
term in the species transport equation:
+ + +
(9.4)
where the last term is the species migration term, is the th species diffusivity, and the remaining
notation is the same as in Equation 7.1 in the Fluent Theory Guide.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
45
Combustion
Electrochemistry can contribute two distinct sources of heat in the energy equation (see Equation 5.1
in the Fluent Theory Guide). The first term is due to the charge-transfer reaction at the Faradaic interface
and is modeled as,
(9.5)
where is Faradaic current density and is the over-potential (see Equation 9.2 (p. 45)). The second
term is Joule heating due to motion of charges,
= =
(9.6)
46
Species Edit...
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Modeling Electrochemistry
Figure 9.3: The Species Model Dialog Box with Electro-chemical Reactions Enabled
a. In the Species Model dialog box, under Model, enable Species Transport.
b. Under Reactions, select Volumetric and Electro-Chemical.
4. In the Create/Edit Materials dialog box, define all the species materials that are present in the electrolyte
and electrodes.
a. Copy the new species from the Fluent database to your case as described in Copying Materials from
the ANSYS Fluent Database in the Fluent User's Guide. If your species material is not present in the
database, copy a similar species material and edit its properties, including Name and Chemical Formula. When copying species, make sure that fluid is selected as Material Type in the Fluent Database
Materials dialog box.
b. Under Properties, set Charge for the new species.
Important
By default, Charge is neutral (0). Make sure to specify the charge for all relevant species.
5. In the Create/Edit Materials dialog box, edit the mixture material and define chemical reactions.
a. Edit the mixture composition using the Species dialog box (opened by clicking Edit next to Mixture
Species under Properties). Remove unused species and add the electro-chemical species to the Selected Species list as described in Adding Species to the Mixture in the Fluent User's Guide. Note that
it is not necessary to represent the electron in the reaction, and e- can be safely ignored. Make sure
that the bulk species is the last species in the Selected Species list.
ANSYS Fluent solves transport equations for all but the last species in the Selected Species list.
The order of the solution is the same as the order of the species in Selected Species.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
47
Combustion
b. Specify the reactions in the Reactions dialog box (opened by clicking Edit next to Reactions under
Properties).
Figure 9.4: The Reactions Dialog Box
Typically, both cathodic and anodic reactions are required. However, only a single reaction is
required if the cathodic and anodic reactions are the same, but operating in opposite directions.
Note that ANSYS Fluent only allows charged species on one side of an electrochemical reaction,
and charged species occur only in the electrolyte. For each reaction, configure the following
settings:
i.
48
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Modeling Electrochemistry
iii. Enter the th species dimensionless power, in Equation 9.1 (p. 44) as Rate Exponent.
iv. Enter the reference species mass fractions ( in Equation 9.1 (p. 44)) using the Reference Mass
Fractions dialog box, which is opened by clicking Specify Reference Mass Fractions....
A User Defined Function (UDF) hook for the electro-chemical reaction rate is available as a
DEFINE_EC_RATE function.
c. Define reaction mechanisms in the Reaction Mechanisms dialog box (opened by clicking Edit next
to Mechanism under Properties).
Figure 9.5: The Reaction Mechanisms Dialog Box
i.
When the anodic and cathodic reactions are different, set Number of Mechanisms to 2.When
they are the same, but in opposite directions, set Number of Mechanisms to 1.
ii. For the first mechanism, select Electro-Chemical as a reaction type, select the anodic reaction
under Reactions, and specify a meaningful name for the mechanism, for example, mechanismanode.
iii. Similarly for the second mechanism, select Electro-Chemical as a reaction type, select the cathodic reaction under Reactions, and specify a meaningful name for the mechanism, for example,
mechanism-cathode.
d. Set the remaining mixture properties, such as Density (typically volume-weighted-mixing-law), Mass
Diffusivity, and Electrical Conductivity.
Note that if the anode, cathode, and electrolyte have different material properties, such as species
mass diffusivities, it is optimal to use a UDF. Alternatively, you can create new materials for anode
and cathode by copying existing materials from the Fluent database, renaming them, and then
assigning these materials to the anode and cathode fluid zones in the Cell Zone Conditions
dialog box.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
49
Combustion
6. In the Cell Zone Conditions task page, in the Fluid dialog box, set the cell conditions for the electrolyte
and electrode zones.
In the Reaction tab, if the fluid zone is the electrolyte, select Electrolyte. If you want to model the
species migration and Joule source terms, select Species Migration Source and Joule Heat, respectively. Note that the species migration may be unstable and including this term may require lowering
species Under-Relaxation Factors (URFs) to converge. Unless you have volumetric reactions defined
in the mixture material, you can ignore the selection of Reaction Mechanism.
7. In the Boundary Conditions task page, set the electro-chemical boundary conditions for all relevant
zones.
Wall boundaries may be either exterior (1-sided) walls or interior (2-sided) walls.
Exterior (1-sided) walls can have one of the following types of potential boundary conditions:
Specified Flux (Neumann): Is used to specify the current (A/m2) at the boundary wall.
Specified Value (Dirichlet): Is used to specify the voltage at the boundary wall.
Faradaic Surface: Is used for simulations where the electrode is not resolved. In this case, you
must specify Reaction Mechanism and Equilibrium Potential (see Figure 9.6: Exterior (1-Sided) Wall
Potential Boundary Condition (p. 50)). Typical equilibrium potential expressions are not constant but
complex functions of the species and potential on either side of the interface. In these cases, UDFs
are required to define equilibrium potentials. If a voltage is applied to the electrode, you must add
the applied voltage to the equilibrium potential expression.
Figure 9.6: Exterior (1-Sided) Wall Potential Boundary Condition
50
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Modeling Electrochemistry
Interior (2-sided) walls can have one of the following types of potential boundary conditions:
Coupled: Is used for electro-chemically inactive walls.
Faradaic Surface: Is used for electro-chemically active wall interfaces between an electrolyte
fluid zone and an electrode fluid zone (see Figure 9.7: Interior (2-Sided) Wall Potential Boundary Condition (p. 51)).
Figure 9.7: Interior (2-Sided) Wall Potential Boundary Condition
8. Set the solution parameters in the Solution Methods and Solution Controls task pages. In many electrochemical applications, fluid convection may be neglected, in which case the Flow equation should be
disabled in the Equations control box (accessible from the Solution Controls task page). Similarly, for
isothermal simulations, the Energy equation should be disabled.
Important
If the potential equation has difficulty converging, you can lower Faradaic Interface
Current in the Under-Relaxation Factors settings to increase stability.
9. Once the solution has converged, you can post-process solution fields, such as Species and Temperature.
In addition, you can display or report the following variables available under the Electro-Chemistry
category:
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
51
Combustion
Electric Potential
Electric Conductivity
Faradaic Voltage Jump
Faradaic Current Density
Norm. Faradaic Current Density
Equilibrium Potential
Current Density
Joule Heat Source
52
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Nucleation is assumed to be the first step in formation of soot in most light gas flames, and acetylene
is understood to be the major species involved. In heavier gas flames, benzene and other polycyclic
aromatic hydrocarbons (PAHs) may contribute to soot formation as well. Soot formation in coal flames
is thought to occur when tars or the higher molecular weight hydrocarbons given off during devolatilization combine and condense to form soot particles. This is a different mechanism to that of soot
formation from gaseous fuels. The related source term for each path is given as follows:
(10.1)
=
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
53
Pollutants
(10.2)
(10.3)
where is equal to
particles, is Avogadros Number, and is the molecular weight
of the soot particle. The remaining terms in the previous overall source expressions are defined as follows:
=
(10.4)
=
t = t
=
(10.5)
q rs
(10.6)
(10.7)
(10.8)
The soot oxidation term () is similar to that shown in Equation 14.139 in the Theory Guide.
in the Moss-Brookes soot model theory (Fenimore-Jones or Lee oxidation model). Soot density ( )
(= 12 kg/kgmol) is the
molecular weight of carbon and (= 1.3806503e-23 J/K) is the Boltzmann constant. An incipient soot
particle is assumed to consist of 9e+04 carbon atoms, thus making = 108e+04 kg/kgmol.
is the normalized radical nuclei concentration (i.e., the number of particles
/kg). Since the
is assumed to be 1950 kg/
coal-derived soot particles are large, the turbulent Schmidt number used in the transport equations for
soot mass fraction and the normalized number density must be modified to account for the particle
size. A value of 700 for the turbulent Schmidt number is suggested for soot mass fraction and nuclei
transport.
The term is the tar release rate from coal (kg/ -s) and comes from the coal particle source
computations of the discrete phase model. It is assumed that the mass fraction of tar in coal volatiles
is in the range 0.30.5, and therefore the term is related to the volatile source term via the tar
mass fraction in volatiles. One of the main assumptions of this implementation is that tar may be decoupled from the flow field computations, since tar is assumed to be a known fraction of volatiles and
volatile transport is fully coupled with the flow field. In addition, it is assumed that the amount of soot
formed is too small to affect the major species concentration. However, there are some suggestions
that soot formed in a coal flame may be significant enough to couple the major species concentration
with the soot formation and oxidation. This, however, is not included in the present implementation.
The values used for the pre-exponential constant and the activation energy in Equation 10.5 (p. 54)
Equation 10.7 (p. 54) are listed in Table 10.1: Rate Constants for Coal-Derived Soot (p. 54)
Table 10.1: Rate Constants for Coal-Derived Soot
Term
(kJ/kgmol)
54
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
6.77e+05
( /kg-s)
52,300
9.77e+10 (1/s)
286,900
5.02e+08 (1/s)
198,900
Important
Make sure you first enable beta feature access, as described in Introduction (p. 1) .
1. (optional) Set up and solve a combustion simulation that solves for the tar species.
2. Enable and set up the discrete phase model, using the Discrete Phase Model dialog box. Make sure
that the injections have coal or heavy oil specified as the injection material. See Modeling Discrete Phase
in the User's Guide.
3. Enable the soot model and set up the definitions and parameters using the following text commands:
define models soot?
When asked to Enable the soot model?, respond by entering yes
4. Make sure you have enabled beta feature access, as described in Introduction (p. 1).
5. Enable the coal-derived soot extension using the following text command:
define models soot-parameters soot-model-parameters
You can use the settings for most of the prompts that follow this text command, as they reflect the
settings you made in the Soot Model dialog box and the default Moss-Brookes model settings. The
prompts that relate to the coal-derived soot extension are the following:
a. Coal-derived soot?
Enter yes to enable the coal-derived soot extension.
b. Solve tar equation?
Enter yes if you need to solve for the tar species. Enter no if you have already run a combustion
simulation that calculated the tar species. Your answer will affect the inputs to the
define/models/soot-parameters/soot-process-parameterstext command (as
described below).
c. Collision Constant
Enter a value for the collision constant. The recommended value is 3.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
55
Pollutants
6. Set the process parameters for the coal-derived soot extension using the following text command:
define models soot-parameters soot-process-parameters
Enter 1080000 kg/kgmol for the Mass of incipient soot particle, as this represents 9
atoms.
A value of 1950 kg/
carbon
You can also perform the above steps in the Soot Model dialog box. Select Moss-Brookes in the
Model list and set up the definitions and parameters. See Using the Soot Models in the User's Guide.
The prompts that relate to the coal-derived soot extension will vary, depending on whether you
have already run a combustion simulation that calculated the tar species.
If you requested that the tar equations be solved using the define/models/soot-parameters/soot-model-parameters text command, then the prompts that relate to the coal-derived
soot extension are the following:
a. Number of tar streams
Enter the number of tar streams for the model. This value will depend on the number of different coal or heavy oil injections defined using the Injections dialog box.
b. Mass fraction of tar in coal volatiles
For each tar stream, enter the mass fraction of tar in the coal volatiles. It is recommended that
this value be between 0.3 and 0.5.
c. Species name
For each tar stream, enter the name of the fuel species of the associated volatile stream. The
tar evolution will then be calculated as a fraction of the volatiles that evolve from this fuel
species.
d. Remove fuel species from list?
If you made a mistake when entering the number of tar streams or the species name, you can
remove the erroneous species from the calculation by entering yes.
If you requested that the tar equations not be solved using the define/models/soot-parameters/soot-model-parameters text command, then the prompt that relates to the coal-derived
soot extension is the following:
Tar species name
Enter the name of the tar species from your previous combustion model solution.
7. Specify the desired turbulent Schmidt number for the soot mass fraction and nuclei transport, using the
following text command:
define models soot-parameters modify-schmidt-number?
The suggested value is 700.
56
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
10.1.1.1. References
1. A. L. Brown, Modeling Soot in Pulverized Coal Flames, MSc thesis, Brigham Young University, Utah, USA,
1997.
2. J. Ma, Soot Formation and Soot Secondary Reactions During Coal Pyrolysis, PhD thesis, Brigham Young
University, Utah, USA, 1996.
Important
You are advised to enable this option only for the final few iterations of the SOx model
computations to save cpu time. Note that you may not see a proper S balance during
the initial stages of the SOx model solution.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
57
Pollutants
Species Production/Consumption due to Elementary Reactions (p. 64)
Mercury Species Capture and Retention in Ash Residue (p. 64)
Mercury Species Capture using Sorbent Injection (p. 65)
Mercury Formation in Turbulent Flows (p. 65)
10.3.1.1. Overview
The principal anthropogenic source of mercury in the atmosphere is generated from the coal-fired
utility boilers. Due to its potential toxicity, environmental persistence and potential for bioaccumulation,
mercury is a particularly insidious and difficult pollutant to manage. Due to the above mentioned
reasons, there is a great concern over the emission of heavy metal mercury into the atmosphere and
as a result there is an impetus to investigate the reduction of mercury emission to the environment
from power plant utility boilers.
Mercury released due to combustion of coal or waste co-utilization, may be captured using sorbent
injections as a post combustion reduction technique (in water,
is highly soluble while HgO has
(10.9)
As will be discussed in Mercury Speciation Model (p. 60), mercury formation mechanisms are more involved. Hence, the tracking of mercury-containing intermediate species is also important. ANSYS Fluent solves transport equations for
,
and
species in addition to the Hg species:
58
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
+
+
(10.10)
(10.11)
(10.12)
, ,
mercury release (Hg is released from coal during devolatilization) and inclusion of , and
It is important to note that in the gas-phase, mercury undergoes a set of chlorination reactions (mercury
oxidation). Hence, in addition to the set of transport equations for the mercury containing species,
further set of chlorine containing species needs to be modeled. Following set of transport equations
for chlorine containing species are required to complete the mercury chlorination mechanism.
s t
s t
s t + rs t
(10.13)
(10.14)
(10.15)
(10.16)
where , , and are mass fractions of , , and in the gas phase. The
source term , , and are to be determined depending on the form of fuel chlorine
release ( is assumed to release from coal during devolatilization, but further flexibility is given to
the user to partition as well) and inclusion of , and in the mercury chlorination mechanism.
The source term in each transport equation may be expressed in terms of the source from fuel/char
combustion (or volatile release), source/sink from production (or consumption) rate of the given species
due to each gas phase reaction the species participates and source due to retention or capture of
mercury species into the particulate or ash residues, as follows:
= + +
(10.17)
= source of i (
Cl,...
= source of i (
or Cl
= source of i (
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
59
Pollutants
(10.18)
+ +
(10.19)
Rate constant for the above reaction were reported as pre-exponential factor,
=
+ = and activation energy E = 18 kJ/mol. Gasper et al. [9] reported a slightly different set of rate constants for the same reaction, in which
=
+ = and E = 28.77 kJ/mol, respectively. For the present implementation, Hall [4] constants were used.
60
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
, , , , ,
constants for the complete set of mercury reaction mechanism are given in Table 10.2: Reaction Rate
Constant for Mercury Speciation [1] (p. 61) and Table 10.3: Chlorine Specific Reactions [2] (p. 62).
Reaction
Forward A
(cm3molsec)
+ = + + 4.25e13
+ = + 4.50e13
1.93e13
+ = +
6.15e13
+ = +
+ = + + 1.35e8
+ = + 1.8115e10
3.09e9
+ = + +
+ = + 3.06e13
Forward
b
Forward
E
(kcal/mol)
Reverse
A
(cm3molsec)
716.13
30.27
93.3
2.55e12
13.8
43.3
7.23e12
11.8
76.08
8.8
36.6
6.2
6.87e11
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
ReReverse verse
b
E
(kcal/mol)
61
Pollutants
Reaction
Number
Reaction
Forward A
(cm3molsec)
+ = + 1.827e10
+ = + + 3.19e11
R9
R10
Forward
b
Forward
E
(kcal/mol)
Reverse
A
(cm3molsec)
ReReverse verse
b
E
(kcal/mol)
0.5
87.0
[1] Rate constants for some reactions are different to those reported in Wilcox [5]. New constants for
R1 are from Wilcox et. al [6], R2 from Wilcox et. al [7], R3, R4 and R8 from Wilcox [8], R6 updated with
new values (A = 1.43e9 3.48e10, average value used), R7 updated using RRKM (to be published), R9
updated with new values (A = 1.74e9 3.48e10, average value used). Note: Details about RRKM may be
obtained at http://en.wikipedia.org/wiki/RRKM_theory.
Table 10.3: Chlorine Specific Reactions [2]
Reaction
Number
Reaction
Forward
A
(cm3molsec)
+ = + 8.51e15
+ = + 1.47e12
+ = + 8.59e13
+ + = + 7.19e21
R11
R12
R13
R14
Forward
b
Forward
E
(kcal/mol)
Reverse
A
(cm3molsec)
Reverse
b
Reverse
E
(kcal/mol)
55.84
2.23e14
0.0
-1.8
1.63
3.16
1.45e12
1.44
2.46
1.17
1.0e17
0.0
47.49
-2
0.0
4.4e13
0.0
81.67
[2] Rate constants were taken from NIST data base (except forward rate of R14, which was obtained
using RRKM).
to zero.
=
62
source of i (
or Cl
(10.21)
(
)
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
(10.22)
(
)
= mass fraction of j" in fuel, where j = Hg or Cl
= cell volume ()
10.3.1.4.3. Hg and HCl Production from Coal
For coal, it is assumed that both mercury and chlorine are distributed between volatiles and char. Since
there is no reason to assume that mercury (or chlorine) is equally distributed between the volatiles and
char, the fraction of mercury (or chlorine) in the volatiles and char should be specified separately.
Combined source of Hg and HCl may be expressed as
= +
(10.23)
(10.24)
= cell volume ( )
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
63
Pollutants
(10.25)
= cell volume ( )
= =
(10.26)
where = and J is the total number of reactions involved. The stoichiometric coefficients
are related by the general form of J elementary reactions (reversible or irreversible) involving I
chemical species.
= = = =
(10.27)
The rate-of-progress variable for the reaction is given by the difference of the forward and reverse
rates as
(10.28)
= = =
is the molar concentration of the species and and are the forward and reverse
Where
64
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Equation 14.112 apply to the Mercury model as well, with the variance computed by solving a
transport equation during the combustion calculation stage, using Equation 14.113 or Equation 14.114.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
65
Pollutants
Important
The premixed combustion model is not compatible with the Mercury model.
2. Enable the Mercury model, define the fuel streams, and set the appropriate parameters, as described in
this section.
Models
Mercury Edit...
3. Define the boundary conditions for all Mercury and Chlorine species at flow inlets.
Boundary Conditions
4. In the Equations dialog box, turn off the solution of all variables except Mercury and Chlorine species.
Solution Controls Equations...
5. Perform calculations until convergence (i.e., until the Mercury and Chlorine species residuals are below
) to ensure that the Mercury and Chlorine concentration fields are no longer evolving.
Run Calculation
6. Review the mass fractions of Mercury and Chlorine species with alphanumerics and/or graphics tools in
the usual way.
7. Save a new set of case and data files, if desired.
File Write Case & Data...
66
Mercury Edit...
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Under Model, select One Step. The dialog box will expand to show the appropriate inputs.
Next, you must define the Fuel Streams data and Turbulence Interaction Mode data as described in
detail later in this document.
Mercury Edit...
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
67
Pollutants
Figure 10.5: The Mercury Model Dialog Box for the Two Step Model
Under Model, select Two Step. The dialog box will expand to show the appropriate inputs.
Next, you must define the Fuel Streams data and Turbulence Interaction Mode data and Model
Parameters (i.e. [O] model) as described in detail later in this document.
68
Mercury Edit...
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Under Model, select Detailed. The dialog box will expand to show the appropriate inputs.
Next, you must define the Fuel Streams data, Turbulence Interaction Mode data, and Model Parameters (i.e. [O] and [OH] models) as described in detail later in this document.
a. Select the fuel stream to be defined by using the arrow keys of the Fuel Stream ID text box.
b. When the non-premixed combustion model is not enabled, select the fuel species from the Fuel
Species list. You cannot select more than 5 fuel species for each fuel stream, and the total number
of fuel species selected for all the fuel streams combined cannot exceed 10.
c. When the non-premixed combustion model is enabled (Figure 10.7: The Mercury Model Dialog Box
with Non-Premixed Combustion (p. 71)), make a selection from the PDF Stream drop-down list to
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
69
Pollutants
define the species for this stream. You can select either the primary or secondary fuel stream species,
as defined in the PDF table.
d. Specify the parameters for this particular fuel stream in the Fuel Stream Settings group box. See
Defining the Fuel Streams
3. Repeat steps 2.(a)-2.(c) for each additional fuel stream.
4. Set the model parameters that apply to all of the fuel streams in the Model Parameters group box (only
required by the Two Step and Detailed (Wilcox) models):
Specify the method by which O and OH (for the Detailed model only) will be calculated. The Mercury
model routines employ three methods for reduction calculations of Mercury:
You can select equilibrium, partial-equilibrium, or instantaneous in the [O] Model drop-down
list.
You can select none, partial-equilibrium, or instantaneous in the [OH] Model drop-down list.
Important
To use the predicted O and/or OH concentration, select instantaneous in the [O] Model or
[OH] Model drop-down list.
70
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note that the following limitations apply when you are modeling Mercury formation with multiple fuel
streams, if more than one fuel stream has the same fuel type (as defined in the Fuel Type list in the
Fuel Stream Settings group box):
For multiple liquid fuel streams or multiple solid (coal) fuel streams, the injectors associated with the fuel
streams should have different destination species, as defined in the Devolatilizing Species drop-down
list in the Set Injection Properties dialog box (see Defining Injection Properties for details). The Mercury
calculations will be erroneous if the destination species are the same.
For multiple solid (coal) fuel streams, the fuel streams should have the same char-related parameter values
in the Fuel Stream Settings group box, i.e., the Char HG and CL Mass Fraction and the Partition Fractions
(for char HCL) values. Note that even if different values are set for these char-related parameters, ANSYS
Fluent will only recognize those specified for the solid fuel stream with the lowest ID number, and then
apply them to all of the other solid fuel streams.
For more information about the limitations associated with multiple fuel streams with the same fuel
type, contact your ANSYS Fluent support engineer.
71
Pollutants
To begin, specify the fuel type in the following manner:
To calculate Mercury formation from a solid fuel, select Solid under Fuel Type.
To calculate Mercury formation from a liquid fuel, select Liquid under Fuel Type.
To calculate Mercury formation from a gaseous fuel, select Gas under Fuel Type.
Figure 10.8: The Mercury Model Dialog Box Displaying Liquid Fuel Parameters
Note that you can use only one of the fuel types for a given fuel stream. The Gas option is available
only when the Species Transport model is enabled (see Enabling Species Transport and Reactions and
Choosing the Mixture Material).
10.3.2.6. Setting Mercury Parameters for Gaseous and Liquid Fuel Types
If you have selected Gas or Liquid as the Fuel Type, you will also need to specify the following:
Set the correct mass fraction of Hg in the fuel (kg Hg per kg fuel) in the Fuel HG Mass Fraction field.
Select the Chlorine intermediate species (hcl, cl, or hcl/cl) in the CL intermediate drop-down list.
Set the correct mass fraction of Cl in the fuel (kg Cl per kg fuel) in the Fuel CL Mass Fraction field.
72
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Important
Note that there is a limitation that must be considered when defining more than one liquid
fuel stream. See Using the NOx Model for details.
Specify the mass fraction of Hg in the volatiles in the Volatile HG Mass Fraction field.
Specify the mass fraction of Hg in the char in the Char HG Mass Fraction field.
Select the Chlorine intermediate species (hcl, cl, or hcl/cl) in the CL Intermediate drop-down list.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
73
Pollutants
Set the correct mass fraction of Cl in the volatiles (kg Cl per kg volatiles) in the Volatile CL Mass Fraction
field.
If you selected hcl/cl as the Chlorine intermediate, you will need to set the fraction of the converted fuel
chlorine, by mass, that will become HCl under HCL Partition Fraction. The fraction of fuel chlorine that
will become Cl will be calculated by the remainder.
Select the char chlorine conversion path from the Char CL Conversion drop-down list as hcl, cl, or hcl/c.
Specify the mass fraction of chlorine in the char in the Char CL Mass Fraction field.
If you selected hcl/cl from the Char CL Conversion drop-down list, you will need to specify the fraction
of the converted char chlorine, by mass, that will become HCl under Char HCL Partition Fraction. The
fraction of char chlorine that will become Cl will be calculated by the remainder.
Important
Note that there are limitations that must be considered when defining more than one
solid fuel stream. See Using the NOx Model for details.
The equations, described in Using the SOx Model (Equation 22.8 to Equation 22.13), are used in a similar
manner to determine the mass fraction of mercury or chlorine in the volatiles and char.
74
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Important
When modeling the formation of other pollutants along with Mercury, you should compare
the selections made in the PDF Mode drop-down lists in the Turbulence Interaction Mode
tab of the NOx Model dialog box and the Turbulence Interaction Mode group boxes of
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
75
Pollutants
the SOx Model and Soot Model dialog boxes. If mixture fraction is selected in any of these
dialog boxes, then it must be selected in all of the others as well.
The mixture fraction option is available only if you are using either the non-premixed or partially premixed combustion model to model the reacting system. If you use the mixture fraction option, the
instantaneous temperatures and species concentrations are taken from the PDF look-up table as a
function of mixture fraction and enthalpy and the instantaneous Mercury and Chlorine rates are calculated
at each cell. The PDF used for convoluting the instantaneous Mercury or Chlorine rates is the same as
the one used to compute the mean flow-field properties. For example, for single-mixture fraction
models the beta PDF is used, and for two-mixture fraction models, the beta or the double delta PDF
can be used. The PDF for mixture fraction is calculated from the values of mean mixture fraction and
variance at each cell, and the instantaneous Mercury and Chlorine rates are convoluted with the mixture
fraction PDF to yield the mean rates in turbulent flow.
If you selected temperature or temperature/species for the PDF Mode, you should define the following
parameters in the Turbulence Interaction Mode group box:
PDF Type
allows you to specify the shape of the PDF, which is then integrated to obtain mean rates for the temperature and (if you selected temperature/species for the PDF Mode) the species. If you select beta,
the PDF will be modeled using Equation 14.108 in the Fluent Theory Guide of the Theory Guide. If you
select gaussian, the PDF will be modeled using Equation 14.111 in the Fluent Theory Guide of the Theory
Guide.
PDF Points
allows you to specify the number of points used to integrate the beta or Gaussian function in Equation 14.105 in the Fluent Theory Guide or Equation 14.106 in the Fluent Theory Guide of the Theory Guide on
a histogram basis. The default value of 10 will yield an accurate solution with reasonable computation
time. Increasing this value may improve accuracy, but will also increase the computation time.
Temperature Variance
allows you to specify the form of transport equation that is solved to calculate the temperature variance.
The default selection is algebraic, which is an approximate form of the transport equation (see Equation 14.114 in the Fluent Theory Guide of the Theory Guide). You have the option of selecting transported
to instead solve Equation 14.113 in the Fluent Theory Guide of the Theory Guide. Though the transported
form is more exact, it is also more expensive computationally.
Tmax Option
provides various options for determining the maximum limit(s) for the integration of the PDF used to
calculate the temperature:
The default selection is global-tmax, which sets the limit as the maximum temperature in the flow
field.
You can select local-tmax if you would rather obtain cell-based maximum temperature limits by
multiplying the local cell mean temperature by the value entered in Tmax Factor.
You can select specified-tmax to set the limit for each cell to be the value entered in Tmax.
If you have selected a user-defined function from the Hg Rate drop-down menu in the User-Defined
Functions group box, then you can select user-defined so that the limit is specified by a UDF. See
the separate UDF Manual for details about user-defined functions.
76
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Important
Note that the species variance will always be calculated using the algebraic form of the
transport equation (Equation 14.114 in the Fluent Theory Guide in the separate Theory Guide).
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
77
Pollutants
Figure 10.11: The Mass-Flow Inlet Dialog Box and the Species Tab (Detailed Mercury Model)
78
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
.
HCL (and HGO, CL, CL2, HGCL, and HOCL, if applicable) to
Monitors
Residuals Edit...
Perform calculations until convergence (i.e., until the HG, HGCL2, HCL (and HGO, CL, CL2, HGCL, and HOCL,
) to ensure that the HG, HGCL2, HCL (and CL, CL2, HGCL,
if applicable) pollutant residuals are below
HGO, and HOCL, if applicable) concentration fields are no longer evolving.
Review the mass fractions of pollutants, HG, HGCL2, HCL (and HGO, CL, CL2, HGCL, and HOCL, if applicable)
alphanumerics and/or graphics tools.
10.3.4. Postprocessing
When you compute Mercury formation, the following additional variables will be available for postprocessing. They are contained in the Hg... category of the variable selection drop-down list that appears
in postprocessing dialog boxes.
Mass fraction of pollutant hg
Mass fraction of pollutant hgcl2
Mass fraction of pollutant hcl
Mass fraction of pollutant hgo
Mass fraction of pollutant cl
Mass fraction of pollutant cl2
Mass fraction of pollutant hgcl
Mass fraction of pollutant hocl
Mole fraction of pollutant hg
Mole fraction of pollutant hgcl2
Mole fraction of pollutant hcl
Mole fraction of pollutant hgo
Mole fraction of pollutant cl
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
79
Pollutants
Mole fraction of pollutant cl2
Mole fraction of pollutant hgcl
Mole fraction of pollutant hocl
hg Density
hgcl2 Density
hcl Density
hgo Density
cl Density
cl2 Density
hgcl Density
hocl Density
Rate of hg
Rate of hgcl2
Rate of hcl
Rate of hgo
Rate of cl
Rate of cl2
Rate of hgcl
Rate of hocl
80
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Important
If you want to use DEFINE_HG_RATE only for the purpose of specifying , be sure that
the user-defined Mercury rate does not alter the internally-calculated rate for the source
term calculation.
10.3.5.2. Usage
DEFINE_HG_RATE (name,c,t,Pollut,Pollut_Par,Hg)
Argument Type
Description
symbol name
UDF name.
cell_t c
Cell index.
Thread *t
Pollut_Cell*Pollut
Pollut_Parameter *Pollut_Par
Hg_Parameter *Hg
Function returns
void
There are six arguments to DEFINE_HG_RATE: name, c, t, Pollut, Pollut_Par, and Hg. You will
supply name, the name of the UDF. c, t, Pollut, Pollut_Par, and Hg are variables that are passed
by the ANSYS Fluent solver to your function. A DEFINE_HG_RATE function does not output a value.
The calculated HG rates (or other mercury pollutant species rates) are returned through the Pollut
structure as the forward rate POLLUT_FRATE(Pollut) and reverse rate POLLUT_RRATE(Pollut),
respectively.
Important
The data contained within the Hg structure is specific only to the Mercury model. Alternatively,
the Pollut structure contains data at each cell that is useful for all pollutant species (e.g.,
forward and reverse rates, gas phase temperature, density). The Pollut_Par structure
contains auxiliary data common for all pollutant species (e.g. equation solved, universal gas
constant, species molecular weights). Note that molecular weights extracted from the Pollut_Par structure (i.e., Pollut_Par sp[IDX(i)].mw for pollutant speciesHG, HCL,
etc.and Pollut_Par sp[i].mw for other species, such as O2) has units of kg/kg-mol.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
81
Pollutants
10.3.5.3. Example 1
The following compiled UDF, named user_hg, computes the rate for
formation according to
the reaction given in Equation 10.29 (p. 82). Note that this UDF will replace the ANSYS Fluent rate only
if you select the Replace with UDF Rate option in the Mercury Model dialog box. Otherwise, the rate
computed in the UDF will be added to ANSYS Fluents default rate. See Hooking DEFINE_HG_RATE
UDFs (p. 84) for details.
It is assumed that the release of Hg and Cl from fuel is proportional to the rate of release of volatiles
and all chlorine is in the form of HCl when released to the gas phase. The irreversible reaction for
is given below:
+ +
(10.29)
=
=
qrstt is the rate of release of volatiles in kg/sec, is the mass fraction of mercury
species in volatiles, is the mass fraction of chlorine species in volatiles, and
are the molecular weights of mercury and chlorine in kg/kg-mol, and is the cell volume in .
where
See Hg Macros (p. 85) of the UDF Manual for details about the Hg macros (e.g., POLLUT_EQN, MOLECON,
ARRH) that are used in pollutant rate calculations in this UDF.
/*********************************************************************
UDF example of User-Defined Hg Rate: compute the rates of mercury
formation according to the rate constants provided by Gasper et al. (1997).
Hg + 2 HCl --> HgCl2 + H2
A = 22.0e+03, b = 0.0, E = 28770.0 (SI units)
*
* Arguments:
* char hg_func_name
- UDF name
* cell_t c
- Cell index
* Thread *t
- Pointer to cell thread on
*
which the Hg rate is to be
*
applied
* Pollut_Cell *Pollut
- pointer to Pollut structure
* Pollut_Parameter *Pollut_Par - pointer to
*
Pollut_Par structure
* Hg_Parameter *Hg
- pointer to Hg structure
*
Description of Pollut_Par->pollut_io_pdf:
1. Pollut_Par->pollut_io_pdf == IN_PDF
82
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
83
Pollutants
1000./Pollut_Par->sp[IDX(HG)].mw;
break; /*char stream cannot be split at present*/
}
}
break;
case EQ_HCL:
for(ifstream=0; ifstream<Pollut_Par->nfstreams; ifstream++) {
if (Pollut_Par->pollut_type[ifstream] == FUEL_S) {
if (Hg->char_cl_conv[ifstream] == 0 ||
Hg->char_cl_conv[ifstream] == 2) {
rf += Pollut->r_char[ifstream]*Hg->Yhcl_char[ifstream]*
1000./Pollut_Par->sp[IDX(CL)].mw;
break; /*char stream cannot be split at present*/
}
}
}
break;
default:
break;
}
break;
case SET_VAR:
/* Set a value at each cell before Hg rate computations */
break;
case GET_VAR:
/* Get values at the end of Hg computations */
break;
default:
/* Not used */
break;
}
POLLUT_FRATE(Pollut) = rf;
POLLUT_RRATE(Pollut) = rr;
}
84
Mercury Edit...
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Select the function name (e.g., user_hg::libudf) from the Hg Rate drop-down list in the Mercury
Model dialog box, and click OK.
See DEFINE_HG_RATE UDF Macro (p. 80) for details about DEFINE_HG_RATE functions.
10.3.5.5. Hg Macros
The following macros can be used in Mercury model UDFs in the calculation of pollutant rates. These
macros are defined in the header file sg_pollut.h, which is included in udf.h. They can be used
to return real Hg variables in SI units and are available in both the pressure-based and the densitybased solver. See DEFINE_HG_RATE UDF Macro (p. 80) for examples of DEFINE_HG_RATE UDFs
that utilize these macros.
Table 10.4: Macros for Mercury UDFs Defined in sg_pollut.h
Macro
Returns
POLLUT_EQN(Pollut_Par)
MOLECON(Pollut,SPE)
NULLIDX(Pollut_Par,SPE)
85
Pollutants
Macro
Returns
ARRH(Pollut,K)
ARRH_TR(Pollut,K,
Tref)
POLLUT_FRATE(Pollut)
POLLUT_RRATE(Pollut)
POLLUT_FLUCTDEN(Pollut)
POLLUT_FLUCTTEM(Pollut)
POLLUT_FLUCTYI(Pollut,SPE)
POLLUT_CTMAX(Pollut_Par)
Important
Pollut_Par is a pointer to the Pollut_Parameter data structure that contains auxiliary
data common to all pollutant species and Hg is a pointer to the Hg_Parameter data
structure that contains data specific to the Mercury model.
POLLUT_EQN(Pollut_Par) returns the index of the pollutant equation currently being solved. The
, etc.
indices are EQ_HG for Hg and EQ_HGCL2 for
MOLECON(Pollut, SPE) returns the molar concentration of a species specified by SPE. SPE is either
the name of the species or IDX(i) when the species is a pollutant (like Hg). For example, for
molar
concentration you should call MOLECON(Pollut, O2), whereas for Hg molar concentration the call
should be MOLECON(Pollut, IDX(HG)).
ARRH(Pollut,K) returns the Arrhenius rate calculated from the constants specified by K. K is defined
using the Rate_Const data type and has three elements - , , and . The Arrhenius rate is given in
the form of
=
where is the temperature.
Note that the units of must be in m-gmol-J-s.
ARRH_TR(Pollut,K,Tref) returns the Arrhenius rate calculated from the constants specified by K
and Tref. K is defined using the Rate_Const data type and has three elements - , , and . Tref is
of data type real and is the reference temperature in Kelvin (setting Tref = 1 degenerates the ARRH_TR
to ARRH). The Arrhenius rate is given in the form of
=
86
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Controls
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
87
Pollutants
Model
specifies which model should be used for mercury speciation.
Off
disables the calculation of mercury formation.
One-Step
enables the one-step mercury model described in One Step Mechanism (p. 60).
Two-Step
enables the two-step mercury model described in Two Step Mechanism (p. 60).
Detailed
enables the detailed (Wilcox) model described in Detailed (Wilcox) Mechanism (p. 61).
Fuel Streams
allows you to define multiple fuel streams for mercury formation.
Number of Fuel Streams
sets the number of fuel streams. You are allowed up to three fuel streams.
Fuel Stream ID
specifies the fuel stream you are defining in the PDF Stream drop-down list or the Fuel Species
selection list.
PDF Stream
specifies the PDF stream species associated with a particular Fuel Stream ID, when calculating
mercury formation in conjunction with the non-premixed combustion model. You can select either
the primary or secondary fuel streams, as defined in the PDF table.
Fuel Species
is a list containing all of the defined species. Specify the species that is associated with a particular
Fuel Stream ID. You cannot select more than 5 fuel species for each fuel stream, and the total
number of fuel species selected for all the fuel streams combined cannot exceed 10.
Turbulence Interaction Mode
contains inputs that specify how turbulent fluctuations are accounted for in the mercury formation calculations. For further details on these inputs, see Setting Turbulence Parameters (p. 74).
PDF Mode
is a drop-down list that contains the options for addressing turbulent fluctuations in the mercury
rate calculations. Note that mixture fraction is the most accurate option, and should be used if it
is available.
none
specifies the use of laminar mercury rate calculations, so that the effects of turbulence are ignored.
temperature
specifies that the mercury rate calculations include the effect of temperature fluctuations.
88
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
89
Pollutants
Species
is a drop-down list which appears when temperature/species is selected from the PDF Mode dropdown list. Here you will select the species whose mass fraction fluctuations will be factored into the
mercury rate calculations.
User-Defined Functions
allows you to use a user-defined function (UDF) to contribute to the rate of mercury production. See the
separate UDF Manual for details. Note that you may also use a UDF to specify custom values for the
maximum limit () that is used for the integration of the temperature PDF (when temperature is accounted for in the turbulence interaction modeling).
Hg Rate
allows you to select a compiled UDF.
UDF Rate
provides options for the treatment of the mercury production specified by the UDF.
Replace FLUENT Rate
replaces ANSYS Fluents mercury rate calculations with the custom mercury rate produced by
your UDF.
Add to FLUENT Rate
adds the custom mercury rate produced by your UDF to ANSYS Fluents mercury rate calculations.
Fuel Stream Settings
contains the parameters associated with a particular fuel stream of the mercury model, as specified in
the Fuel Stream ID text box in the Fuel Streams group box.
Fuel Type
enables selection of the fuel.
Solid
enables the calculation of mercury from a solid fuel.
Liquid
enables the calculation of mercury from a liquid fuel.
Gas
enables the calculation of mercury from a gaseous fuel.
Fuel HG Mass Fraction
field sets the correct mass fraction of Hg in the fuel (kg Hg per kg fuel).
Volatile HG Mass Fraction
specifies the mass fraction of mercury in the volatiles. This parameter appears only for Solid fuel
streams.
Char HG Mass Fraction
specifies the mass fraction of mercury in the char. This parameter appears only for Solid fuel streams.
90
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
[OH] Model
is a drop-down list that allows you to specify the method by which the OH radical concentration is
calculated, i.e., none, instantaneous, or partial-equilibrium. This list appears only for the Detailed
mercury model.
[O] Model
is a drop-down list that specifies the method by which the O radical concentration is calculated, i.e.,
equilibrium, partial-equilibrium, or instantaneous.
Important
To use the concentration of OH or O predicted by the combustion model, select instantaneous for [OH] Modelor [O] Model.
hg?
Enable/disable the mercury model.
hg-parameters/
Enter the mercury parameters menu.
hg-chemistry
Select mercury chemistry model.
hg-turbulence-interaction
Set mercury-turbulence interaction model.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
91
Pollutants
inlet-diffusion?
Enable/disable inclusion of diffusion at inlets.
10.3.7. References
1. D. Dajnak and F. C. Lockwood., Modelling of Toxic Heavy Metal Mercury Partitioning from Pulverized
Fuel Combustion, IFRF Combustion Journal, March 2001
2. J. I. Madsen, W. A. Rogers, and T. J. OBrien, Unstructured Multigrid Through Agglomeration In Computational Modelling of Mercury Control by Sorbent Injection, Baltimore, Maryland, 2004
3. B. Toole-ONeil, S. J. Tewalt, R. B. Finkleman, and D. J. Akers, "Mercury Concentration in Coal Unravelling
the Puzzle", Fuel, 78(1), 4774, 1999
4. B. Hall, An Experimental Study of Mercury Reactions in Combustion Flue Gases, PhD thesis, Chalmers
University of Technology, Sweden, 1991
5. J. Wilcox, "On the Path to Elucidating the Speciation of Mercury in the Flue Gases of Coal Combustion,
PhD thesis, Dept. of Chemical and Environmental Engineering, he University of Arizona, Arizona, U.S.A.,
2004
6. J. Wilcox, D. C. J. Marsden, and P. Blowers, "Evaluation of Basis Sets and Theoretical Methods for Estimating
Rate Constants of Mercury Oxidation Reactions Involving Chlorine", Fuel Processing Technology, v85(5),
391400, 2004
7. J. Wilcox, J. Robles, D. C. J. Marsden, and P. Blowers, Theoretically Predicted Rate Constants for Mercury
Oxidation by Hydrogen Chloride in Coal Combustion Flue Gases, Environmental Science and Technology,
v37(18), 41994204, 2003
8. J. Wilcox, , "A Kinetic Investigation of High-Temperature Mercury Oxidation by Chlorine", Journal of
Physical Chemistry A, v113(24), 66336639, 2009
9. J. A. Gasper, N. C. Widmer, J. A. Cole, and W. R. Seeker, Study of Mercury Speciation in a Simulated Municipal Waste Incinerator Flue", In Proceedings of 1997 International Conference on Incineration and Thermal
Treatment Technologies, Oakland, California, 1997
10. J. Janicka and W. Kollmann, A Numerical Study of Oscillating Flow Around a Circular Cylinder, Combustion
and Flame, v44, 319336, 1982
11. M. Missaghi, Mathematical Modelling of Chemical Sources in Turbulent Combustion, PhD thesis, The
University of Leeds, England, 1987
12. G. Hand, M. Missaghi, M. Pourkashanian, and A. Williams, "Experimental Studies and Computer Modeling
of Nitrogen Oxides in a Cylindrical Furnace", In Proceedings of the Ninth Members Conference, volume
2. IFRF Doc No K21/g/30, 1989
92
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
11.1.1. Limitations
The following limitations apply to the modal analysis model currently implemented in ANSYS Fluent:
The modal analysis model is applicable to a steady-state, compressible ideal-gas solution.
The modal analysis model is available for the double precision, serial ANSYS Fluent version.
The modal analysis model treats all domain boundaries as sound reflecting boundaries. Fluid particles can
enter and leave the domain but acoustic waves are reflected.
+
+
+ +
=
+ + +
+
+
+
+
(11.1)
+
+ +
+
(11.2)
(11.3)
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
93
Acoustics
(11.4)
and the subscript represents the mean values, and superscript represents the acoustic fluctuation
about this mean (e.g. = + ). Note that a thermally perfect ideal gas is assumed. is the Kronecker
delta function, is the molecular viscosity, is the conductive heat diffusivity coefficient, and
are the specific heats at constant volume and constant pressure, respectively.
The mean flow conditions are first solved from a steady-state solution of the Reynolds-Averaged NavierStokes equations. The fluctuating quantities are assumed harmonic functions in time, so that
= , where = . Substituting this into the linearized
Navier-Stokes gives
The Jacobians
and
(11.5)
(11.6)
the eigenvalues problem. is the eigenvector for the complex eigenvalue = . The proper
acoustic response of boundaries is included in the modal analysis model [1].
where
Equation 11.6 (p. 94) is an eigen-system and the iterative Implicitly Restarted Arnoldi method is use to
compute a small set of eigenvalues and eigenvectors in a limited range of interest. The Implicitly Restarted
Arnoldi method uses the ARPACK package (http://www.caam.rice.edu/software/ARPACK/), which is a
collection of Fortran 77 subroutines designed to solve large-scale eigenvalue problems.
Acoustics Edit...
3. Set the associated Model Constants in the Acoustics Model dialog box.
4. Compute the resonance frequencies and acoustic modes by clicking the Solve button.
5. Postprocess the acoustic modes.
94
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Modal Analysis
Graphics and Animations
Number of Frequencies
is the requested maximum number of eigenvalues (natural acoustic frequencies). The default of 30.
Frequency Shift
is the frequency around which the eigenvalues will be solved. When the frequency shift is zero, the
Arnoldi algorithm computes the eigenvalues around the smallest magnitude (SM). The default is 200Hz.
Maximum Number of Arnoldi Iterations
: the Implicitly Restarted Arnoldi Method is terminated after this many iterations if not converged. The
default is 500.
Residual Tolerance
is the convergence criterion for the Arnoldi algorithm. The default is 0.001.
11.1.5.1. References
1. Caraeni M., Devaki R. K., Aroni M., Oswald M., Srikanth KVSS, Efficient Acoustic Modal Analysis for Industrial CFD, AIAA-2009-1332, 2009
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
95
Acoustics
Note
Despite the use of the common term SPL, the calculated values characterize the transient
flow pressure on a surface, and not the acoustic pressure.
The new feature is only accessible through the TUI. The source-band-analysis command appears
under the following conditions:
The beta feature setting is enabled.
The simulation is set up as a transient case.
The Export Acoustic Source Data in ASD Format option is activated in the acoustic
model setup.
This feature can be accessed using the following text command:
/define/models/acoustics/source-band-analysis
The TUI dialog box will ask you to specify the name of the index file, which is an ASCII file containing
a list of the source zones and a list of the ASD file names. The default index file name is taken from the
acoustic sources setup. In the next step, the dialog asks whether you want to select each following ASD
file from the list, and which source zones must be processed, as seen by the sample TUI dialog:
/define/models/acoustics> source-band-analysis
Index filename ["source.index"]
Reading "source.index"...
select the file source11001.asd? [yes]
select the file source12001.asd? [yes]
...
select the file source39001.asd? [yes]
select source zone bottom? [yes]
select source zone mirror-front? [yes]
select source zone mirror-rear? [yes]
Number of ASD face zones: 3
Number of ASD files to read: 29
After reading in the ASD files, a FFT is performed for the pressure history at each grid face of the source
zones. No window function is applied to the source signals. The resulting Fourier amplitudes are combined
within the standard octaves to obtain the octave SPL values, which are then stored in the 17 new field
variables:
SPL
SPL
SPL
...
SPL
96
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
97
Acoustics
Figure 11.4: SPL for Octave at 63 Hz
98
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
99
Discrete Phase
Figure 12.1: The Discrete Phase Model Dialog Box
You can also enable this feature using the following text command: /define/models/dpm/spraymodel/consider-childs-in-the-same-tracking-step? Yes
= +
100
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
(12.1)
Volume Injections
This linearization strongly increases numerical stability for steady flows. For transient flows, it typically
allows the use of larger time steps and larger under-relaxation factors for the DPM model.
The source term linearization can be combined with the Average DPM Source Terms (Node Based
Averaging of Particle Data in the Fluent User's Guide) and Update DPM Sources Every Flow Iteration
(Options for Interaction with the Continuous Phase in the Fluent User's Guide) options. However, you
should disable Average DPM Source Terms when using linearized DPM source terms for vaporizing
particles. Combination of these two features in vaporization cases may lead to numerical instabilities
and unphysical results for the gas temperature.
To enable source term linearization, use the TUI command:
/define/models/dpm/interaction/linearized-dpm-source-terms? yes
Tip
If you are performing a DEM simulation and require an initial volume fraction higher
than the 30%-40% guideline (for example, to initialize a packed bed), you can specify a
larger volume for the initial seeding and run a preliminary calculation to allow the
particles to settle.
12.4.1. Limitations
The volume injection type is not compatible with the Shared Memory DPM parallel option.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
101
Discrete Phase
You can then set up your injection in the usual way. The following additional controls are available to
configure the volume injection:
Release From
Currently zone is the only available option.
List of Zones
Select one or more zones in which the particle injection will occur.
Parcel Specification
Select parcels-per-cell to specify the number of parcels released per cell in the specified zones.
This option is recommended for cases where the CFD mesh shows little variation in cell volume.
Select total-parcel-count to specify the total number of parcels over all the specified zones.
This option is recommended when using DEM for better initial parcel distribution.
Note that when using either rosin-rammler or rosin-rammler-logarithmic for Diameter Distribution the number of parcels injected will be determined by the product of the number of
parcels specified in Parcel Specification and the Number of Diameters specified in the Point
Properties tab.
102
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
103
104
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
13.1.2. Theory
To model interphase species mass transfer, phase species transport equations are solved along with
the phase mass, momentum and energy equations. The transport equation for , the local mass fraction
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
105
Multiphase Modeling
+ +
(13.1)
denotes the pth phase, and is the number of phases in the system. , , and are the
phase volume fraction, density, and velocity for the qth phase. is the net rate of production of ho
mogeneous species through chemical reaction in phase . is the rate of production from external
sources, and is the heterogeneous reaction rate. denotes the mass transfer source from species
on phase to species on phase . Similarly, denotes the mass transfer from species on phase
to species on phase .
where
In practice, the source term for mass transfer of a species between phase
single term, either
rate of species mass transfer is assumed to be a function of mass concentration gradient of the transported species.
(13.2)
=
where (= ) is the volumetric mass transfer coefficient between the pth phase and the qth phase,
and is the interfacial area. is the mass concentration of species in phase , and is the equilibrium mass concentration of species in phase . In order to solve the species mass transfer it is ne
cessary to determine appropriate values for and .
r = q r
106
(13.3)
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
=
(13.4)
where is the mole fraction equilibrium ratio. This relationship can, alternatively, be expressed in
terms of , , or :
=
=
(13.5)
=
There are several well-known interphase equilibrium models to define or determine
physical processes. ANSYS Fluent offers three ways to determine
for various
Equilibrium Ratio. These are described in detail in Species Mass Transfer Models (p. 109).
and ,
respectively, and with a phase interface, . Interphase mass transfer from the qth phase to the pth phase
involves three steps:
The transfer of species from the bulk qth phase to the phase interface, .
The transfer of species across the phase interface. It is identified as species in the pth phase.
The transfer of species
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
107
Multiphase Modeling
Figure 13.1: Distribution of Molar Concentration in the Two-Resistance Model
Using Equation 13.2 (p. 106) with the assumption that and are the mass transfer coefficients for
the qth and pth phases, respectively, the volumetric rates of phase mass exchange can be expressed as
follows:
From the interface to the qth phase,
= =
(13.6)
(13.7)
= =
Under the dynamic equilibrium condition on the phase interface the overall mass balance must be
satisfied:
+ =
(13.8)
The equilibrium relation in Equation 13.5 (p. 107) also applies at the interface:
=
(13.9)
From Equation 13.6 (p. 108) Equation 13.9 (p. 108), one can determine the interface mass concentrations:
= =
(13.10)
+
= =
=
+
(13.11)
The phase-speciific mass transfer coefficients, and , can each be determined from one of the
methods described in Mass Transfer Coefficient Models (p. 111). It is also possible to specify a zero-resistance condition on one side of the interface. This is equivalent to an infinite phase-specific mass
108
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
where is the sum of the molar concentrations of all species in phase , and is the phase density
of phase .
phase, :
(13.12)
=
If the gas phase behaves as an ideal gas, then Daltons law of partial pressure gives:
(13.13)
=
Using Equation 13.4 (p. 107), Equation 13.12 (p. 109), and Equation 13.13 (p. 109), Raoults law can be rewritten in terms of a molar fraction ratio:
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
109
Multiphase Modeling
(13.14)
the liquid species can be computed which is then used to compute the mass concentration, in
Equation 13.2 (p. 106) which can be solved with the models for interfacial area and volumetric mass
transfer coefficient.
(13.15)
has units of pressure and is known empirically for a wide range of materials, in particular for common
gases dissolved in water. It is usually strongly dependent on temperature.
As with Raoults law, Henrys law can be combined with Daltons law to yield an expression in terms of
equilibrium ratio:
(13.16)
= .
In addition to the molar fraction Henrys constant, , the molar concentration Henrys constant,
is also commonly used:
(13.17)
Fluent offers three methods for determining the Henrys constants: constant, the Vant Hoff correlation,
and user-defined. In the Vant Hoff correlation, the Henrys constant is a function of temperature:
(13.18)
and
(13.19)
where is the enthalpy of solution and is the Henrys constant at the reference temperature,
qrs . The temperature dependence is:
=
t
(13.20)
When using the Vant Hoff correlation in Fluent you specify the value of the reference Henrys constant,
, and the temperature dependence defined in Equation 13.20 (p. 110). These are material-dependent
110
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Important
Regardless of the units selected in the Fluent GUI, is always expressed in units of
for consistency with the presentation in most reference data tables. Appropriate
unit conversions are applied inside Fluent.
Mass fraction equilibrium ratio,
These specify the ratio of the concentration variable for the To-phase divided by that for the From-phase
as defined in Equation 13.4 (p. 107) and Equation 13.5 (p. 107). You can specify either a constant value
or a user-defined function.
(13.21)
where is the diffusivity of the qth phase, is the bubble diameter and
is either specified as a
=
13.1.2.3.1. Constant
When modeled as a constant the constant volumetric mass transfer coefficient, is specified by the
user.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
111
Multiphase Modeling
(13.22)
= +
where
th
phase and
where and are, respectively, the dynamic viscosity and density of the qth phase. is
the magnitude of the relative velocity between phases. The Ranz-Marshall model is based on boundary
layer theory for steady flow past a spherical particle. It generally applies under the conditions:
<
<
+
+
<
<
(13.23)
<
The Reynolds number crossover point is chosen to ensure continuity. The model should not be used
outside of the recommended Schmidt number range.
13.1.2.3.5. User-Defined
You can also use a user defined function for the mass transfer coefficient. To create a user-defined
function, use the DEFINE_MASS_TRANSFER macro as you would in other mass transfer cases.
112
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
In the Mass tab in the Phase Interaction dialog box, specify the Number of Mass Transfer Mechanisms.
Select species-mass-transfer under Mechanism.
3.
In the Species Mass Transfer Model dialog box, choose Equilibrium Model or Two Resistance Model.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
113
Multiphase Modeling
Equilibrium Model
models the species mass transfer based on equilibrium between the bulk phases.
Two-Resistance Model
models the species mass transfer based on equilibrium at the phase interface.
4.
Under Model Options, choose the sub-model for determining the dynamic equilibrium relations between
the same species in a pair of phases.
Raoults Law
Use Raoults Law as described in Raoults Law (p. 109). This model is appropriate for gas-liquid cases
in which the liquid phase can be modeled as an ideal liquid mixture. If you use Raoults Law, you
must specify the saturation pressure as a constant, polynomial, piecewise-linear, piece-wise polynomial, or as a user-defined function using the DEFINE_PROPERTY macro.
Henrys Law
Use Henrys Law as described in Henrys Law (p. 110). This model is appropriate for cases in which
a gas species is dissolved into a non-ideal liquid mixture phase. If you use Henrys Law you must
specify the method for the Molar Fraction Henry Coeff or Molar Concentration Henry Coeff. You
can choose a constant, the vant-hoff correlation, or a user-defined function using the
DEFINE_MASS_TRANSFER macro. For the vant-hoff correlation, you will need to specify Reference
).
Equilibrium Ratio
Use the Equilibrium Ratio method as described in Equilibrium Ratio (p. 111). This model allows you
to specify the equilibrium ratio as a constant, or as a user-defined function. If you use Equilibrium
Ratio you must specify a constant or user-defined function using the DEFINE_MASS_TRANSFER
114
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Choose the sub-model for determining the Mass Transfer Coefficient. If you are using the Two Resistance
Model, you will need to specify sub-models for both Continuous-Interface Mass Transfer Coeff. and
Dispsersed-Interface Mass Transfer Coeff..
constant
Specify a constant value for the mass transfer coefficient.
sherwood-number
Specify a constant value for the Sherwood Number. The mass transfer coefficient is calculated from
Equation 13.21 (p. 111).
ranz-marshall
Use the Ranz-Marshall model as described in Ranz-Marshall Model (p. 112). The Ranz-Marshall model
is based on boundary layer theory for steady flow past a spherical particle. It is applicable at low
under the following flow conditions:
<
<
hughmark
Use the Hughmark model as described in Hughmark Model (p. 112). The Hughmark model extends
the the Ranz-Marshall model for a wider range of relative Reynolds number,
.
zero-resistance
Specify zero-resistance mass transfer between the bulk phase and interface (available only for the
Two-Resistance model).
user-defined
Use a user-defined function for the mass transfer coefficient defined with the
DEFINE_MASS_TRANSFER macro.
When using the Two-Resistance model, the selection of physically correct mass transfer correlations
is highly problem dependent. In the case of mass transfer between a continuous phase and a dispersed phase of approximately spherical particles, the following should be adequate under most
situations:
ranz-marshall or hughmark for the continuous phase
zero-resistance for the dispersed phase
Using zero-resistance for the dispersed phase implies that the mass transfer occurs very quickly
from the interface to the bulk of the dispersed phase. Consequently the interface concentration
and bulk concentration in the dispersed phase are equal. This is usually valid for droplet evaporation
or gas absorption/dissolution in bubbles. If there exists significant resistance to the mass transfer
on the dispersed phase side, one of the other correlations should be chosen for the dispersed
phase.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
115
Multiphase Modeling
2.
Enable Virtual Mass in the Mass tab of the Phase Interaction dialog box.
3.
a.
If desired, you can also adjust the virtual mass coefficient in the VM Coeff text box (default 0.5).
b.
Select Default to use the complete virtual mass source term or Option 2 to use a truncated version
which may further aid convergence in some cases.
You can also access these controls using the /define/phases/interaction-domain TUI command.
116
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
13.3.1. Definitions
Fully Developed Sea State
When the wind blown over the sea imparts its maximum energy to the waves, the sea is said to be fully
developed. This means that the sea state is independent of the distance over which the wind blows
(fetch) and the duration of the wind. Sea elevation can be assumed as statistically stable in this case.
The sea state is often characterized by the following parameters which can be estimated from the
wind speed and fetch:
Significant Wave Height (Hs)
Mean wave height of the largest 1/3 of waves.
Peak Wave Frequency (p) or Period
The frequency or period corresponding to the highest wave energy.
Long-Crested Sea
If the irregularity of the observed waves are only in the dominant wind direction, such that there are
mainly unidirectional waves with different amplitudes but parallel to each other, the sea is referred to
as a long-crested irregular sea.
Short-Crested Sea
When irregularities are apparent along the wave crests in multiple directions, the sea is referred to as
short-crested.
where:
= Wave frequency
= Peak wave frequency
= Significant Wave Height
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
117
Multiphase Modeling
(13.25)
where:
= Pierson-Moskowitz spectrum
= Wave frequency
= Peak wave frequency
= Peak shape parameter
=
=
=
>
(13.27)
= Frequency spectrum
118
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
=
which imposes the following condition on the spreading function:
=
where:
=
= +
= Principal (mean) wave heading angle
= Angular spread from
ANSYS Fluent offers two options for specifying the directional spreading function,
13.3.2.2.1. Cosine-2s Power Function (Frequency Independent)
13.3.2.2.2. Hyperbolic Function (Frequency Dependent)
, is frequency
(13.29)
where:
13.3.2.2.2. Hyperbolic Function (Frequency Dependent)
In the hyperbolic function formulation, the directional spreading function,
pendent and is given by:
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
, is frequency de(13.30)
119
Multiphase Modeling
<
<
>
in which:
+ +
=
(13.31)
The final wave profile after superposing all the individual wave components is given by:
120
= =
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
(13.32)
=
= Wave number for nth frequency component
= Heading angle for the mth angular component
= Random phase difference uniformly distributed
between 0 and
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
121
Multiphase Modeling
Description of Inputs
Wave Modeling Options
For shallow/intermediate or short gravity wave regimes you can model the waves using either Wave
Theories or Wave Spectrum. Wave Theories is usually selected for simulating regular waves. To simulate
random waves, select Wave Spectrum.
122
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
or
(rpsetvar 'vof/oc/wave/verbosity 2)
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
123
Multiphase Modeling
You can invoke wave spectrum analysis by using the TUI command:
> define/boundary-conditions/open-channel-wave-settings
Bibliography
[1] Recommended Practice DNV-RP-C205. Environmental Conditions and Environmental Loads. Det Norske
Veritas. October 2010.
[2] G.A. Hughmark. Mass and heat transfer from rigid spheres. AIChE J.. 13. 12191221. 1967.
[3] R. Sander. Compilation of Henrys Law Constants for Inorganic and Organic Species of Potential Importance
in Environmental Chemistry. http://www.henrys-law.org/.
[4] W.G. Whitman. Chem. Met. Eng.. 29. 146. 1923.
124
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
Make sure you enable the access to the beta features (Introduction (p. 1)).
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
125
Solver
Figure 14.1: The Multigrid Tab in the Advanced Solution Controls Dialog Box
For information about the Recursive Projection method, see Setting Algebraic Multigrid Parameters in
the User's Guide.
126
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
of the solution at the given iteration. A linear least squares procedure is applied in order to solve the
minimization problem. Due to the memory requirements imposed by the need to keep solution vectors
from previous iterations in memory, only a limited subset of the entire Krylov space is stored. The
method operates on that subset once the user specified size (i.e. number of non-linear flow solver iterations) is reached. Then a new subspace is populated with the solution vectors from the following
iterations and subsequently the RRE procedure is restarted. It was found that in certain cases it might
be beneficial to not store the solution vector at each iteration, but to skip a certain number of iterations.
This is because of the fact that two subsequent solution vectors are almost linearly dependent and do
not provide much new information for the Krylov subspace. The number of skipped iterations is also a
user specifiable value.
ANSYS Fluents RRE method operates simultaneously on a predefined set of main flow variables, which
are stored into a shared solution vector and uses the regular flow solver as a preconditioner to
generate the products
It can be shown that when applied to a linear problem, the RRE method is equivalent to the GMRES
method derived by Y. Saad and M. H. Schultz [4]. Details of the method as well as investigations of its
behavior when applied to the Navier-Stokes problems can be found in [2] and [3].
Note
The Krylov subspace data is not written into the data file for reasons of keeping the file size
small and the i/o times limited. A certain jump of residual values if a precomputed data is
read into a new ANSYS Fluent session is expected.
To use the Reduced Rank Extrapolation option, follow the steps outlined below:
1. Make sure you enable access to the beta features (Introduction (p. 1)).
2. In the Solution Methods task page, enable the Reduced Rank Extrapolation option.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
127
Solver
Figure 14.2: The Solution Methods Task Page
3. Click the Options... button to specify the RRE settings in the RRE Options dialog box.
Figure 14.3: The RRE Options Dialog Box
a. Specify the size of the subspace in the RRE Options dialog box.
128
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
In certain cases, it may be beneficial to increase the size of the Krylov subspace to
25 and store each 10th vector.
14.2.1. References
1. A.N. Krylov, On the numerical solution of the equation by which in technical questions frequencies of
small oscillations of material systems are determined, Izvestija AN SSSR (News of Academy of Sciences
of the USSR), Otdel. mat. i estest. nauk, 1931, VII, Nr.4, 491-539 (in Russian).
2. A. Sidi, Efficient Implementation of Minimal Polynomial and Reduced Rank Extrapolation Methods. NASA
Technical Memorandum 103240, ICOMP-90-20
3. A. Jemcov and J. P. Maruszewski, Nonlinear Flow Solver Acceleration by Reduced Rank Extrapolation.
AIAA journal 2008-609
4. Y. Saad and M.H. Schultz, "GMRES: A generalized minimal residual algorithm for solving nonsymmetric
linear systems", SIAM J. Sci. Stat. Comput., 7:856-869, 1986. doi:10.1137/0907058
Options: "iteration"
When ["iteration"] "iteration"
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
129
Solver
iteration no. [1] 5
Command [""] "display close-window 1"
Note
This is available for both transient and steady-state cases.
Note
This is available only for transient cases.
2. Enable Adjust Solver Defaults Based on Setup in the General task page.
130
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Once enabled, Fluent will automatically adjust solver settings to recommended values based on predefined contexts that correspond to various classes of problem. As settings are adjusted, Fluent will
print information messages to the text console alerting you to the changes it has made. The currently
implemented contexts are:
pressure-based solver: single-phase, steady
pressure-based solver: single-phase, buoyant
pressure-based solver: single-phase, transient
density-based solver: compressible, steady
density-based solver: incompressible, steady
density-based solver: compressible, transient
density-based solver: incompressible, transient
Eulerian multiphase: steady and unsteady
mixture multiphase: steady and unsteady
You can override the automatically chosen settings through the GUI or TUI as you normally would. Your
changes to the context are persistent.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
131
132
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Important
The maximum number of custom field functions that can be calculated and postprocessed
for unsteady statistics is 50.
3. Enable the beta feature access (as described in Introduction (p. 1)).
4. Enable data sampling for the unsteady calculation.
Run Calculation
5. Enable unsteady statistics for custom field functions by using the following text command:
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
133
134
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
135
Turbomachinery
Radiation
DPM
Species
Acoustics
136
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
This implementation works in conjunction with Periodic Repeats. Therefore, the upstream and downstream boundaries should be of interface types. Once Periodic Repeats is selected or created, the
Mixing Plane model will be available for use. If you have already created Periodic Repeats and you
want to apply a mixing process to it, then you should enable the Mixing Plane option and then click
Update. Otherwise, if you have not yet created the Periodic Repeats, you can engage the Mixing
Plane model at the same time you are creating the Periodic Repeats.
The Interpolation Points are the number of radial or axial pitch-wise (depending on the machine type)
locations used in reconstructing the circumferential averaging.
Note
If you want to convert the old standard mixing plane model and use this mixing plane
model you must do the following:
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
137
Turbomachinery
1. Delete the old mixing plane.
2. Change the boundary type from inflow and outflow to interface type.
3. Follow the steps mentioned earlier to enable beta feature access and engage the mixing
plane model with Periodic Repeats.
Restrictions applied to Periodic Repeats in terms of model availability also apply to this
model.
138
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
The Laplace partitioning method is not available for cases that contain parent cells.
To use the Laplace partitioning scheme you can use either of the following approaches:
Set the partition/smooth/aspect-ratio rpvar
(rpsetvar 'partition/smooth/aspect-ratio AspectRatioCutoff)
Once this rpvar is set, repartitioning will use the Laplace partitioning method.
Call the Laplace partitioning Scheme command:
(%laplace-partition AspectRatioCutoff NumPartitions Verbosity)
This will perform a one-time partitioning using the Laplace partitioning method.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
139
140
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Fluent
One-way Support?
Two-way Support?
Steady
Steady
Yes
Yes
Steady
Transient
Yes
Yes
Transient
Steady
Yes
BETA
Transient
Transient
BETA
BETA
Note
Since automatic system updates are not available for coupled Ansoft-FLUENT systems, you
must perform cyclic updates of individual system components until the solution stops
changing within a desired level of tolerance using Python scripts. For more information, see
the Fluent in Workbench Users Guide.
141
Fluent in Workbench
(TUI) commands in Fluent to change the desired simulation settings in a parametric manner. Each numerical component of the TUI command string can be marked and treated as a parameter. Setting up
custom input parameters requires using Scheme functions that convert TUI commands into
Scheme variables. Once defined, the Scheme variables are set as custom input parameters and are displayed in the Parameters dialog box alongside other input parameters. The input parameter passes a
constant numeric value to the registered scheme function. Therefore, the associated Scheme function
(and corresponding Fluent text command) uses the constant parameter values using the units that were
already defined for the designated text command quantity.
/custom-input-parameters/
Enter the custom input parameters menu.
create/
Create a custom input parameter. The following example demonstrates the create command.
where you create a custom input parameter using a Scheme file called my-funct:
/define/parameters/custom-input-parameters> create
Name of parameter ["parameter-1"]
parameter-1 value [0] 0.3
Enter the name of custom-input-var variable as symbol [custom-input-var1]
Enter the name of apply-function [()] my-funct
/solve/set/under-relaxation/pressure 0.3
delete
Delete a selected custom input variable, but not the associated input parameter (the input parameter
has to be deleted separately). Using the wildcard * allows you to delete all custom input variable
at once. For example:
/define/parameters/custom-input-parameters> delete
(custom-input-var3)
custom-input-var name(1) [custom-input-var3] *
custom-input-var name(2) [()]
Are you sure you want to delete input parameter ("custom-input-var1" "custom-input-var2" "custom-input-var3")?
list
Shows a list of defined custom input parameters along with their associated variables and apply
functions. For example:
parameter-name
-------------------parameter-3
parameter-2
parameter-1
--------------------
custom-input-var
-----------------------------custom-input-var3
custom-input-var2
custom-input-var1
------------------------------
apply-function
-------------------my-funct
my-funct
my-funct
--------------------
142
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
udf
volume-integral
To see the value of a particular output parameter, run the calculation for a few iterations (or initialize
the solution), then type the define/parameters/outputparameters/printtoconsole
text command.
Ensure that you have enabled the beta features, as described in Introduction (p. 1).
2.
3.
You can use the Save Output Parameter button that appears in the Surface Monitor and Volume
Monitor dialog boxes to open the Save Output Parameter dialog box and create a new output parameter or overwrite an existing output parameter of the same type.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
143
144
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
= 907.185;
27.116;
488.094;
488.094;
and other 6DOF properties. The entries of the 6DOF properties array are explained in
DEFINE_SDOF_PROPERTIES in the UDF Manual.
To constrain the motion of a 6DOF object, i.e. to set the motion to 0, you simply set in the UDF the
corresponding 6DOF property array entries to TRUE, e.g.
prop[SDOF_ZERO_TRANS_X] = TRUE;
prop[SDOF_ZERO_ROT_Y] = TRUE;
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
145
146
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
If you are using the Fluent Client Package instead of a full Fluent installation, the ANSYS
Session Manager files are located in a Beta subdirectory of the path above.
Usage of the ANSYS Session Manager utility is as follows:
Windows
C:\> AnsysSessionManager.exe -f<configfile> -p<portnumber>
Linux
> AnsysSessionManager.cmd -f<configfile> -p<portnumber>
The following arguments and environment variables are recognized:
<configfile>
the name of a configuration file containing available installed solvers. For more information on the
configuration file, see Configuring ANSYS Session Manager (p. 148).
<portnumber>
the port on which ANSYS Session Manager should listen for client connections.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
147
Fluent as a Server
AAS_HOST
an environment variable that is used to specify the IP address on which to listen for connections. Default
value is localhost which will allow connections only from the local machine. To enable connections
from remote clients, set this to the IP address of a network adapter on the local machine that is accessible
remotely.
Important
When started, ANSYS Session Manager will display a message indicating two consecutive
port numbers. The first of these is the port number used for connection from a client application.
An example configuration file is included with the ANSYS Fluent installation in the following location:
%AWP_ROOT150%\fluent\fluent15.0.0\addons\corba\<arch>\AnsysSessionManager.ini
You may need to edit or amend this file to reflect the local installation details on your Server Machine.
The ANSYS Session Manager commands are used to start, connect to, and disconnect from FLUENT
solvers through an ANSYS Session Manager instance running on a local or remote machine. ANSYS
Session Manager commands begin with the prefix asm.
asm.connect_to_server <hostname> <portnumber>
connect to the ANSYS Session Manager listening on <hostname>:<portnumber>. The portnumber
is that specified with the -p command line option to ANSYS Session Manager.
148
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Important
No checking is currently performed to prevent conflicting commands when using concurrent access. Therefore you must use caution to prevent command conflicts that might
result in corrupted files or unstable simulations. For example, reading a new case file
into a paused simulation and then attempting to continue.
You can enable concurrent access to a Fluent as a Server session from the Fluent Remote Console by
issuing the following command in the Fluent Remote Console:
>beta.enable concurrent
This feature exposes several additional commands in the Fluent Remote Console:
fluent.interrupt
interrupt the batch processing. This is the equivalent of pressing Ctrl+C in an interactive Fluent session.
fluent.pause
pause the batch processing.
fluent.continue
continue processing a batch job that has been paused with fluent.pause.
fluent.read_journal <filename>
instruct Fluent to load and execute a remote journal file. This is an asynchronous call meaning Fluent
will return to Fluent Remote Console immediately and then load and execute the journal file. Note the
difference from file read-journal <filename> which is a TUI command and results in a syn-
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
149
Fluent as a Server
chronous call Fluent will load and execute the journal file and return to Fluent Remote Console after
execution is complete.
Note
It is highly recommended that you set the listening interval using fluent.set_aaslistening_step_at prior to loading a batch file to ensure consistent
behavior.
fluent.set_aaslistening_step_at <number> iterations|timesteps
sets the listening frequency on the Fluent server to <number>\ iterations (or timesteps). For example,
to specify that Fluent should listen for Fluent as a Server commands every 5 iterations use:
fluent.set_aaslistening_step_at 5 iterations
Once defined, the listening interval will be saved in the case file on case write and will be restored
when the case file is read.
Once enabled, the following commands become available in the Fluent Remote Console.
fluent.set_server_questions_verbose
Instruct the attached Fluent session to perform interactive prompting for text commands which are issued
without all required arguments. This is the default behavior once the beta feature is enabled.
fluent.set_server_questions_silent
Instruct the attached Fluent session to suppress interactive prompting for text commands which are issued
without all required arguments and use default answers.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Important
If a Fluent session is active but slow to respond (due to a long process of reading a
case, for example) CleanUp will wait until the session responds. Thus, depending on
the status of the running sessions this call may take a long time to complete. Use
with caution.
long getNrRunningSessions();
returns the number of running solver sessions being managed by ANSYS Session Manager.
string getRunningSessionNameByIndex(in long p_iRunningSessionIndex);
returns the name of the solver session with index p_iRunningSessionIndex.
string getRunningSessionInterfaceInfo(in string p_stringRunningSessionName);
returns information about the interface of the named solver session.
string connectToRunningSession(in string p_stringRunningSessionName);
connect to the managed session named p_stringRunningSessionName.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
151
Fluent as a Server
string resuscitateSession(in string p_stringApplicationName, in string p_stringLocation);
similar to startSession, but instead of creating a new working folder, resuscitateSession will start the
application in the remote folder designated by p_stringLocation.
Note
p_stringLocation should be either the absolute path of an existing folder on
the remote machine or a path relative to the folder in which ANSYS Session Manager
is running.
20.3.2.1. Interfaces
You can make use of COM implementations of the ICoFluentUnit and ICoFluentSchemeController interfaces by including the following library in your application:
...\v150\fluent\fluent15.0.0\addons\corba\%ARCH%\COMCoFluentUnit.dll
This will make the following classes available:
class CCoFluentUnit
Calculate(void);
iterates the solution for the number of iterations specified with put_NrIterations. This is mainly
for use with steady simulations as it does not perform dual-time iteration. For transient cases you
can issue the solve/dual-time-iterate TUI command using CCoSchemeController::DoMenuCommand
get_ComponentName(void);
returns the name of the connected component
get_ComponentDescription(void);
returns the description of the connected component
get_NrInputParameters(void);
returns the number of input parameters defined in the current case
get_NrIterations(void);
returns the number of iterations currently set for a Calculate command to perform
get_NrOutputParameters(void);
returns the number of output parameters defined in the current case
getInputParameterNameByIndex(VARIANT &p_variantInputParameterIndex);
returns the name of the input parameter with index p_variantInputParameterIndex
getOutputParameterNameByIndex(VARIANT &p_variantOutputParameterIndex);
returns the name of the output parameter with index p_variantOutputParameterIndex
152
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
153
Fluent as a Server
DoMenuCommandToString(LPCTSTR p_bstrMenuCommand);
issues a TUI command to the connected Fluent session and returns the output
DownloadFileToBuffer(LPCTSTR p_bstrRemoteFileName);
returns the contents of the file named p_bstrRemoteFileName in the remote Fluent session
working directory.
DownloadFileToFile(LPCTSTR p_bstrRemoteFileName, LPCTSTR p_bstrLocalFileName);
writes the contents of the file named p_bstrRemoteFileName in the remote Fluent session
working directory to the local file p_bstrLocalFileName.
ExecScheme(LPCTSTR p_bstrSchemeCommand);
issues a scheme command to the connected Fluent session. Output from the command is not returned
ExecSchemeToString(LPCTSTR p_bstrSchemeCommand);
issues a scheme command to the connected Fluent session and returns the output
SetRpVar(LPCTSTR p_bstrRpVar, LPCTSTR p_szRpVarValue);
sets the value of the rpvar p_szRpVar to p_szRpVarValue.
GetRpVar(LPCTSTR p_bstrRpVar);
returns a string with the value of the rpvar p_bstrRpVar.
UploadFileFromBuffer(LPCTSTR p_bstrRemoteFileName, VARIANT &p_variantLocalBufferContent);
writes a file named p_bstrRemoteFileName in the remote Fluent session working directory with
the contents of p_variantLocalBufferContent. If p_bstrRemoteFileName exists, it is
overwritten.
UploadFileFromFile(LPCTSTR p_bstrRemoteFileName, VARIANT p_bstrLocalFileName);
writes a file named p_bstrRemoteFileName in the remote Fluent session working directory with
the contents of p_bstrLocalFileName. If p_bstrRemoteFileName exists, it is overwritten.
There is also a DLL library with an interface, IAnsysSessionManager, for connecting to ANSYS Session
Manager. You can use this interface by including the following library in your application:
...\v150\fluent\fluent15.0.0\addons\corba\%ARCH%\COMAnsysSessionManager.dll
class CAnsysSessionManager
CleanUp(void);
attempt to connect to all sessions started by the current session manager. If a session fails to connect
it will be removed from the list of running sessions.
Important
If a Fluent session is active but slow to respond (due to a long process of reading a
case, for example) CleanUp will wait until the session responds. Thus, depending on
the status of the running sessions this call may take a long time to complete. Use
with caution.
ConnectToRunningSession(LPCTSTR p_bstrRunningSessionName);
connect to the managed session named p_bstrRunningSessionName.
154
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
p_bstrLocation should be either the absolute path of an existing folder on the
remote machine or a path relative to the folder in which ANSYS Session Manager is
running.
StartSession(LPCTSTR p_bstrApplicationName);
starts a session of the application p_bstrApplicationName.
StartSessionWithAttributes(LPCTSTR p_bstrApplicationName, VARIANT &p_variantAttributeNames, VARIANT &p_variantAttributeValues);
starts a session of the application p_bstrApplicationName with attributes set to the specified
values.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
155
Fluent as a Server
C:\>cd <ANSYS Installation>\ANSYS Inc\v150\fluent\fluent15.0.0\addons\corba\%ARCH%\
C:\>regsvr32 ComCoFluentUnit.dll
C:\>regsvr32 ComAnsysSessionManager.dll
Note
You must have Administrator privileges to register the COM objects
The first argument is a yes/no which tells Fluent whether or not to write the output to a file. If this argument is yes, then the second argument specifies the filename. If the first argument is no the result
is displayed as the command output. In the native Fluent text console, if the user issues the command
with no arguments, Fluent will prompt them for the required information.
> report summary
write to file? [no] yes
report summary filename ["report.sum"] my_report.sum
Normally Fluent as a Server interpret commands given with no arguments as an instruction to use the
default answers (in this case, no as the only argument). The new capability allows a 3rd-party client
application to engage in the same interactive dialog with Fluent that a local user would. To accomplish
this, the CoFluentUnit CORBA interface incorporates four exception structures which are returned by
Fluent to a client application when more information is needed to execute a particular TUI command.
These structures allow a client application to determine the additional information required and reformulate the command. This dialog will continue until Fluent receives a complete command.
If Fluent requires additional information to execute the command it will throw one of the CORBA exceptions in Exceptions (p. 157) depending on the type of question. The client can catch the exception and
process it as necessary to respond with the additional information.
Thus, a typical sequence for a client application conducting a dialog with Fluent proceeds as follows:
1. Client sends a command to Fluent with the <space>-? sequence appended.
2. Fluent checks whether an argument is required and if so returns a CORBA exception.
156
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
20.3.3.2. Exceptions
The following four exception structures are defined to handle the various interactive questions that
Fluent may respond with if an incomplete command is given.
exception EYesNoQuestion
{
long questionType; # An integer representing the type of question: 1 for this type
string questionPromptWithDefaultAnswer; # The prompt as it would be given in Fluent
# with the default given in square brackets
string defaultAnswer; # The default answer by itself
string questionHelp; # A help message if applicable
string questionMessage; # The message Fluent would present if the answer given was invalid
}
exception EReadUnquotedString
>
{
long
questionType; # An integer representing the type of question: 2 for this type
string questionPrompt; # The prompt as it would be given in Fluent (without the default answer)
string defaultAnswer; # The default answer
string questionHelp; # A help message if applicable
string questionMessage; # The message Fluent would present if the answer given was invalid
};
exception EReadQGenericQuestion
{
long
questionType; # An integer representing the type of question: 3 for this type
string questionPromptWithDefaultAnswer; # The prompt as it would be given in Fluent
# with the default given in square brackets
string rawDefaultAnswer; # The default answer
string questionHelp; # A help message if applicable
string questionMessage; # The message Fluent would present if the answer given was invalid
};
exception EMenuGetQuestion
{
long
questionType; # An integer representing the type of question: 4 for this type
string questionPrompt; # The prompt as it would be given in Fluent with the default given in square brackets
string questionHelp; # A help message if applicable
string questionMenu; # A list of items that can be chosen from
};
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
157
Fluent as a Server
moreinfo=raw_input(''.join([e.questionPromptWithDefaultAnswer," "]))
if not moreinfo:
moreinfo=e.defaultAnswer
command=''.join([command," ",moreinfo])
except AAS_CORBA.EReadUnquotedString as e:
moreinfo=raw_input(''.join([e.questionPrompt," ","[",e.defaultAnswer,"]"]))
if not moreinfo:
moreinfo=e.defaultAnswer
command=''.join([command," ",moreinfo])
except AAS_CORBA.EReadQGenericQuestion as e:
moreinfo=raw_input(''.join([e.questionPromptWithDefaultAnswer," "]))
if not moreinfo:
moreinfo=e.rawDefaultAnswer
command=''.join([command," ",moreinfo])
except AAS_CORBA.EMenuGetQuestion as e:
print(e.questionMenu)
moreinfo=raw_input(''.join([e.questionPrompt," "]))
command=''.join([command," ",moreinfo])
except:
e=sys.exc_info()
print( "Error: %s" % e[0])
print(e[1])
sys.exit(1)
158
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
(21.1)
where and are constants, is the dissipation rate, is the parent diameter, is the surface tension,
is the volume fraction of the dispersed phase, is the dissipation of the primary phase, and is the
density of the dispersed phase [1].
Important
Make sure you first enable beta feature access, as described in Introduction (p. 1).
Please refer to Section 3.3.1 in the Population Balance Module Manual to learn how to enable the
population balance model. Enable the Breakage Kernel option and select tavlarides-model from the
and Frequency drop-down list. Enter the desired Surface Tension in the Surface Tension for Population
Balance dialog box.
21.1.1. References
1. Coulaloglou, C. A. and Tavlarides, L. L., Description of Interaction Processes in Agitated Liquid-Liquid
Dispersions, Chem. Eng. Sci., 32 (1977) 1289-1297.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
159
160
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
=
where, for one or more ,
=
As input, the multiple design objective tool uses control-point sensitivity data generated from the
solutions to the adjoint for each observable/flow condition of interest.
At a high level, the steps for performing multiple objective design in Fluent are as follows. The steps
will be explained in more detail below.
1. Enable the adjoint beta feature set.
2. Solve the adjoint equations and export control point sensitivity for each observable and/or flow
condition of interest.
3. Enable the multiple objective design tool and Import the sensitivity data for the various adjoint
cases corresponding to the observables/flow conditions of interest.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
161
Important
When exporting the individual objective control-point sensitivities, you must ensure that all
of the N sensitivity data sets are computed using the same control-point arrangement.
2.
For each observable/flow-condition of interest, compute the adjoint solution and use the Export
Sensitivities... button in the Control-Volume Morphing Controls dialog box to export the controlpoint sensitivities. Refer to Using the Adjoint Solver Module in the Fluent Adjoint Solver Module Manual
for details about using the adjoint solver.
Adjoint Control-Volume Morphing...
162
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The Scale Factor and the setting for whether the observable is to be minimized or maximized
(from the Adjoint Observables dialog box) are included in the exported data. These are used in
determining the initial weighting factor for the observable in the objective function.
3.
Open the Multi-Objective Design (Beta) dialog box and click the checkbox to Enable multiobjective
design.
Adjoint Multi-Objective Design...
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
163
4.
Click Manage... in the Multi-Objective Design (Beta) dialog box and Load... in the Manage MultiObjective Data dialog box to load the previously exported sensitivity data files.
5.
Define weights and constraints in the Multi-Objective Design (Beta) dialog box.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The following information is displayed for each observable sensitivity that has been loaded:
Observable
the initial value of the observable from the original single-objective sensitivity analysis
Expected change
the expected change in the observable as a result of the proposed multi-objective mesh
modification
In addition, information is printed to the text console summarizing the interactions among
the observables included in the multi-objective analysis:
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
165
If desired, you can visualize the optimal displacement vectors and normal optimal displacement
at this point before making any changes to the mesh.
c.
If the expected change results are acceptable, click Modify Mesh to implement the mesh changes.
You can click Revert to revert the changes to the mesh.
22.2.2. Usage
The workflow for using the prescribed displacements feature is as follows:
1.
Solve the flow problem and the adjoint for the observable of interest as you normally would.
2.
Define the candidate boundary mesh change using the Dynamic Mesh tools in Fluent.
a.
Compile and load user-defined functions using the DEFINE_GRID_MOTION macro as described
in the Fluent UDF Manual.
Note
Although the DEFINE_GRID_MOTION macro supports time-dependent motion in
general, your prescribed displacement should not be a function of time.
b.
Enable Dynamic Mesh in the Dynamic Mesh task page in Fluent. In the Mesh Methods group
box keep Smoothing enabled, click Settings..., and select Linearly Elastic Solid.
Note
The prescribed displacements functionality is intended for use exclusively with the
Linearly Elastic Solid smoothing method.
166
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Prescribed Displacements
c.
Create dynamic mesh zones of type User-Defined for the boundaries to be modified.
d.
Use your user-defined functions for the dynamic mesh zones using the Mesh Motion UDF hook.
For more details about using the DEFINE_GRID_MOTION macro and creating dynamic mesh
zones refer to the Fluent UDF Manual and Using Dynamic Meshes in the Fluent User's Guide.
3.
4.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
167
The dialog box displays the list of currently defined Dynamic Threads. This list is for information
only and no selection is necessary. All listed dynamic threads will have their prescribed displacements applied.
b.
5.
168
Click Expected Change. Fluent will print the updated mesh statistics and the expected change in
the observable value in the text console. The mesh is not actually changed until you click Modify
Mesh.
If the reported expected change is acceptable and you wish to commit the prescribed displacements
to the mesh, click Modify Mesh.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.