ANSYS FLUENT Population Balance Module Manual
ANSYS FLUENT Population Balance Module Manual
ANSYS, Inc. Southpointe 275 Technology Drive Canonsburg, PA 15317 [email protected] http://www.ansys.com (T) 724-746-3304 (F) 724-514-9494
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.
Table of Contents
Using This Manual ........................................................................................................................................ v 1. The Contents of This Manual ................................................................................................................ v 2. The Contents of the FLUENT Manuals ................................................................................................... v 3. Typographical Conventions ................................................................................................................. vi 4. Mathematical Conventions ................................................................................................................ vii 5. Technical Support ............................................................................................................................. viii 1. Introduction ............................................................................................................................................ 1 1.1. The Discrete Method ......................................................................................................................... 1 1.2.The Inhomogeneous Discrete Method ............................................................................................... 1 1.3. The Standard Method of Moments .................................................................................................... 3 1.4. The Quadrature Method of Moments ................................................................................................ 4 2. Population Balance Model Theory .......................................................................................................... 5 2.1. The Particle State Vector .................................................................................................................... 5 2.2. The Population Balance Equation (PBE) ............................................................................................. 6 2.2.1. Particle Growth and Dissolution ............................................................................................... 6 2.2.2. Particle Birth and Death Due to Breakage and Aggregation ....................................................... 7 2.2.2.1. Breakage ......................................................................................................................... 7 2.2.2.2. Luo and Lehr Breakage Kernels ........................................................................................ 9 2.2.2.3. Ghadiri Breakage Kernels ................................................................................................. 9 2.2.2.4. Laakkonen Breakage Kernels .......................................................................................... 10 2.2.2.5. Parabolic PDF ................................................................................................................ 10 2.2.2.6. Generalized PDF ............................................................................................................ 11 2.2.2.7. Aggregation .................................................................................................................. 14 2.2.2.8. Luo Aggregation Kernel ................................................................................................. 15 2.2.2.9. Free Molecular Aggregation Kernel ................................................................................ 16 2.2.2.10. Turbulent Aggregation Kernel ...................................................................................... 16 2.2.3. Particle Birth by Nucleation .................................................................................................... 18 2.3. Solution Methods ........................................................................................................................... 18 2.3.1. The Discrete Method and the Inhomogeneous Discrete Method ............................................. 18 2.3.1.1. Numerical Method ......................................................................................................... 19 2.3.1.2. Breakage Formulations for the Discrete Method ............................................................. 21 2.3.2. The Standard Method of Moments (SMM) ............................................................................... 22 2.3.2.1. Numerical Method ......................................................................................................... 22 2.3.3. The Quadrature Method of Moments (QMOM) ........................................................................ 24 2.3.3.1. Numerical Method ......................................................................................................... 24 2.3.4.The Direct Quadrature Method of Moments (DQMOM) ............................................................ 25 2.3.4.1. Numerical Method ......................................................................................................... 25 2.4. Reconstructing the Particle Size Distribution from Moments ............................................................ 27 3. Using the ANSYS FLUENT Population Balance Model ........................................................................... 29 3.1. Population Balance Module Installation ........................................................................................... 29 3.2. Loading the Population Balance Module ......................................................................................... 29 3.3. Population Balance Model Setup ..................................................................................................... 30 3.3.1. Enabling the Population Balance Model .................................................................................. 30 3.3.1.1. Generated DQMOM Values ............................................................................................ 37 3.3.2. Defining Population Balance Boundary Conditions ................................................................. 41 3.3.3. Specifying Population Balance Solution Controls .................................................................... 42 3.3.4. Coupling With Fluid Dynamics ................................................................................................ 43 3.3.5. Specifying Interphase Mass Transfer Due to Nucleation and Growth ........................................ 44 4. Postprocessing for the Population Balance Model ............................................................................... 49 4.1. Population Balance Solution Variables ............................................................................................. 49
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
iii
ANSYS FLUENT Population Balance Module Manual 4.2. Reporting Derived Population Balance Variables .............................................................................. 49 4.2.1. Computing Moments ............................................................................................................. 49 4.2.2. Displaying a Number Density Function ................................................................................... 50 5. UDFs for Population Balance Modeling ................................................................................................ 53 5.1. Population Balance Variables ........................................................................................................... 53 5.2. Population Balance DEFINE Macros ............................................................................................... 53 5.2.1. DEFINE_PB_BREAK_UP_RATE_FREQ ................................................................................ 54 5.2.1.1. Usage ............................................................................................................................ 54 5.2.1.2. Example ........................................................................................................................ 54 5.2.2. DEFINE_PB_BREAK_UP_RATE_PDF .................................................................................. 55 5.2.2.1. Usage ............................................................................................................................ 55 5.2.2.2. Example ........................................................................................................................ 55 5.2.3. DEFINE_PB_COALESCENCE_RATE ..................................................................................... 56 5.2.3.1. Usage ............................................................................................................................ 56 5.2.3.2. Example ........................................................................................................................ 56 5.2.4. DEFINE_PB_NUCLEATION_RATE ....................................................................................... 57 5.2.4.1. Usage ............................................................................................................................ 57 5.2.4.2. Example ........................................................................................................................ 57 5.2.5. DEFINE_PB_GROWTH_RATE ................................................................................................ 58 5.2.5.1. Usage ............................................................................................................................ 58 5.2.5.2. Example ........................................................................................................................ 59 5.3. Hooking a Population Balance UDF to ANSYS FLUENT ...................................................................... 60 A. DEFINE_HET_RXN_RATE Macro ........................................................................................................... 61 A.1. Description .................................................................................................................................... 61 A.2. Usage ............................................................................................................................................. 61 A.3. Example ......................................................................................................................................... 62 A.4. Hooking a Heterogeneous Reaction Rate UDF to ANSYS FLUENT ..................................................... 63 Bibliography ............................................................................................................................................... 65 Index .......................................................................................................................................................... 67
iv
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Using This Manual the behavior of electrically conducting fluid flow under the influence of constant (DC) or oscillating (AC) electromagnetic fields. FLUENT Migration Manual contains information about transitioning from the previous release of FLUENT, including details about new features, solution changes, and text command list changes. FLUENT Population Balance Module Manual contains information about the background and usage of FLUENT's Population Balance Module that allows you to analyze multiphase flows involving size distributions where particle population (as well as momentum, mass, and energy) require a balance equation. Running FLUENT Under LSF contains information about the using FLUENT with Platform Computings LSF software, a distributed computing resource management tool. Running FLUENT Under PBS Professional contains information about the using FLUENT with Altair PBS Professional, an open workload management tool for local and distributed environments. Running FLUENT Under SGE contains information about the using FLUENT with Sun Grid Engine (SGE) software, a distributed computing resource management tool.
3. Typographical Conventions
Several typographical conventions are used in this manuals text to facilitate your learning process. Different type styles are used to indicate graphical user interface menu items and text interface menu items (for example, Iso-Surface dialog box, surface/iso-surface command). The text interface type style is also used when illustrating exactly what appears on the screen or exactly what you need to type into a field in a dialog box. The information displayed on the screen is enclosed in a large box to distinguish it from the narrative text, and user inputs are often enclosed in smaller boxes. A mini flow chart is used to guide you through the navigation pane, which leads you to a specific task page or dialog box. For example, Models Multiphase Edit...
indicates that Models is selected in the navigation pane, which then opens the corresponding task page. In the Models task page, Multiphase is selected from the list. Clicking the Edit... button opens the Multiphase dialog box. Also, a mini flow chart is used to indicate the menu selections that lead you to a specific command or dialog box. For example, Define Injections... indicates that the Injections... menu item can be selected from the Define pull-down menu, and display mesh indicates that the mesh command is available in the display text menu. In this manual, mini flow charts usually precede a description of a dialog box or command, or a screen illustration showing how to use the dialog box or command. They allow you to look up information about a command or dialog box and quickly determine how to access it without having to search the preceding material.
vi
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Mathematical Conventions The menu selections that will lead you to a particular dialog box or task page are also indicated (usually within a paragraph) using a "/". For example, Define/Materials... tells you to choose the Materials... menu item from the Define pull-down menu.
4. Mathematical Conventions
Where possible, vector quantities are displayed with a raised arrow (e.g., , ). Boldfaced characters are reserved for vectors and matrices as they apply to linear algebra (e.g., the identity matrix, ). The operator , referred to as grad, nabla, or del, represents the partial derivative of a quantity with respect to all directions in the chosen coordinate system. In Cartesian coordinates, is defined to be
(1)
The gradient of a scalar quantity is the vector whose components are the partial derivatives; for example,
+ +
(2)
The gradient of a vector quantity is a second-order tensor; for example, in Cartesian coordinates,
= +
This tensor is usually written as
" !
# + $
+ % "
(3)
&0 &0 &0 ' ( ) &1 &1 &1 ' ( ) &2 &2 &2 ' ( )
(4)
The divergence of a vector quantity, which is the inner product between and a vector; for example,
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
vii
+ +
(5)
The operator , which is usually written as and is known as the Laplacian; for example,
= + +
(6)
= + +
(7)
An exception to the use of is found in the discussion of Reynolds stresses in "Modeling Turbulence" in the User's Guide, where convention dictates the use of Cartesian tensor notation. In this chapter, you will also find that some velocity vector components are written as " , #, and $ instead of the conventional % with directional subscripts.
5. Technical Support
If you encounter difficulties while using ANSYS FLUENT, please first refer to the section(s) of the manual containing information on the commands you are trying to use or the type of problem you are trying to solve. The product documentation is available from the online help, or from the ANSYS Customer Portal (www.ansys.com/customerportal). If you encounter an error, please write down the exact error message that appeared and note as much information as you can about what you were doing in ANSYS FLUENT. Technical Support for ANSYS, Inc. products is provided either by ANSYS, Inc. directly or by one of our certified ANSYS Support Providers. Please check with the ANSYS Support Coordinator (ASC) at your company to determine who provides support for your company, or go to www.ansys.com and select About ANSYS> Contacts and Locations. The direct URL is: http://www1.ansys.com/customer/public/supportlist.asp. Follow the on-screen instructions to obtain your support provider contact information. You will need your customer number. If you don't know your customer number, contact the ASC at your company. If your support is provided by ANSYS, Inc. directly, Technical Support can be accessed quickly and efficiently from the ANSYS Customer Portal, which is available from the ANSYS Website (www.ansys.com) under Support> Technical Support where the Customer Portal is located. The direct URL is: http://www.ansys.com/customerportal. One of the many useful features of the Customer Portal is the Knowledge Resources Search, which can be found on the Home page of the Customer Portal.
viii
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Technical Support Systems and installation Knowledge Resources are easily accessible via the Customer Portal by using the following keywords in the search box: Systems/Installation. These Knowledge Resources provide solutions and guidance on how to resolve installation and licensing issues quickly. NORTH AMERICA All ANSYS, Inc. Products Web: Go to the ANSYS Customer Portal (http://www.ansys.com/customerportal) and select the appropriate option. Toll-Free Telephone: 1.800.711.7199 Fax: 1.724.514.5096 Support for University customers is provided only through the ANSYS Customer Portal. GERMANY ANSYS Mechanical Products Telephone: +49 (0) 8092 7005-55 Email: [email protected] All ANSYS Products Web: Go to the ANSYS Customer Portal (http://www.ansys.com/customerportal) and select the appropriate option. National Toll-Free Telephone: German language: 0800 181 8499 English language: 0800 181 1565 International Telephone: German language: +49 6151 3644 300 English language: +49 6151 3644 400 Email: [email protected] UNITED KINGDOM All ANSYS, Inc. Products Web: Go to the ANSYS Customer Portal (http://www.ansys.com/customerportal) and select the appropriate option. Telephone: +44 (0) 870 142 0300 Fax: +44 (0) 870 142 0302 Email: [email protected] Support for University customers is provided only through the ANSYS Customer Portal. JAPAN CFX , ICEM CFD and Mechanical Products Telephone: +81-3-5324-8333 Fax: +81-3-5324-7308
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
ix
Using This Manual Email: CFX: [email protected]; Mechanical: [email protected] FLUENT Products Telephone: +81-3-5324-7305 Email: FLUENT: [email protected]; POLYFLOW: [email protected]; FfC: [email protected]; FloWizard: [email protected] Icepak Telephone: +81-3-5324-7444 Email: [email protected] Licensing and Installation Email: [email protected] INDIA ANSYS Products (including FLUENT, CFX, ICEM-CFD) Web: Go to the ANSYS Customer Portal (http://www.ansys.com/customerportal) and select the appropriate option. Telephone: +91 1 800 233 3475 (toll free) or +91 1 800 209 3475 (toll free) Fax: +91 80 2529 1271 Email: FEA products: [email protected]; CFD products: [email protected]; Installation: [email protected] FRANCE All ANSYS, Inc. Products Web: Go to the ANSYS Customer Portal (http://www.ansys.com/customerportal) and select the appropriate option. Toll-Free Telephone: +33 (0) 800 919 225 Email: [email protected] Support for University customers is provided only through the ANSYS Customer Portal. BELGIUM All ANSYS Products Web: Go to the ANSYS Customer Portal (http://www.ansys.com/customerportal) and select the appropriate option. Telephone: +32 (0) 10 45 28 61 Email: [email protected] Support for University customers is provided only through the ANSYS Customer Portal. SWEDEN All ANSYS Products Web: Go to the ANSYS Customer Portal (http://www.ansys.com/customerportal) and select the appropriate option. Telephone: +44 (0) 870 142 0300 Email: [email protected] x
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Technical Support Support for University customers is provided only through the ANSYS Customer Portal. SPAIN and PORTUGAL All ANSYS Products Web: Go to the ANSYS Customer Portal (http://www.ansys.com/customerportal) and select the appropriate option. Telephone: +33 1 30 60 15 63 Email: [email protected] Support for University customers is provided only through the ANSYS Customer Portal. ITALY All ANSYS Products Web: Go to the ANSYS Customer Portal (http://www.ansys.com/customerportal) and select the appropriate option. Telephone: +39 02 89013378 Email: [email protected] Support for University customers is provided only through the ANSYS Customer Portal.
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
xi
xii
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 1: Introduction
In ANSYS FLUENT the population balance model is provided as an add-on module with the standard ANSYS FLUENT licensed software. Several industrial fluid flow applications involve a secondary phase with a size distribution. The size distribution of particles, including solid particles, bubbles, or droplets, can evolve in conjunction with transport and chemical reaction in a multiphase system. The evolutionary processes can be a combination of different phenomena like nucleation, growth, dispersion, dissolution, aggregation, and breakage producing the dispersion. Thus in multiphase flows involving a size distribution, a balance equation is required to describe the changes in the particle population, in addition to momentum, mass, and energy balances. This balance is generally referred to as the population balance. Cases in which a population balance could apply include crystallization, precipitative reactions from a gas or liquid phase, bubble columns, gas sparging, sprays, fluidized bed polymerization, granulation, liquid-liquid emulsion and separation, and aerosol flows. To make use of this modeling concept, a number density function is introduced to account for the particle population. With the aid of particle properties (for example, particle size, porosity, composition, and so on), different particles in the population can be distinguished and their behavior can be described. ANSYS FLUENT offers three solution methods to the population balance equation: discretized population balance, standard method of moments, and quadrature method of moments. 1.1.The Discrete Method 1.2.The Inhomogeneous Discrete Method 1.3.The Standard Method of Moments 1.4.The Quadrature Method of Moments
can be written as 1
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 1: Introduction
(11)
Since all bins belong to a single phase in the homogeneous discrete method, the net mass source for the phase in case of breakage and agglomeration is zero and can be expressed as
(12)
to multiple phases. Here bins per phase are distributed over phases for a total of bins. Bins and are advected by phase velocity ! " and so forth. The sum of bin sources in any given
#
This is shown schematically in Figure 1.1 (p. 3) where all bins are advected by the same phase velocity . In contrast, the inhomogeneous discrete method shown in Figure 1.2 (p. 3) allows bins to be assigned
phase is not necessarily equal to zero since bins in a given phase can migrate to another phase through breakage or agglomeration, thus creating a net mass source for that phase. The net mass source for a given phase can be expressed as the sum of the bin sources belonging to that phase
$%
&
$ '%
(13)
For breakage and coalescence the sum over all phase sources is zero
)0
(14)
(15)
Important
The inhomogeneous discrete method is currently limited to breakage and coalescence only.
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 1: Introduction In the SMM approach, no assumptions are made about the size distribution, and the moment equations are formulated in a closed form involving only functions of the moments themselves. However, this exact closure requirement poses a serious limitation, as aggregation (with the exception of the constant aggregation kernel) and breakage phenomena cannot be written as functions of moments.
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
can be postulated where , . Therefore, the average number of particles in the infinitesimal volume ! " !#. In contrast, the continuous phase state vector is given by is $ $( % & $) % &
$' % &
363 7
012 4 125
(21)
The local average number density in physical space (that is, the total number of particles per unit volume) is given by
9 @
DF
ABCE
(22)
H I
TV
PQ
R SQU
(23)
where W X
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
+
(24)
!
5
@
bT
UV
u v w v x y
The boundary and initial conditions are given by
= =
= .
(25)
f ) is defined as
(26)
hg =
i j
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
=
The volume of a single particle is
(27)
=
The surface area of a single particle, , is defined as
Important
Dissolution of particles can be represented as negative growth.
2.2.2.1. Breakage
The breakage rate expression, or kernel [18] (p. 66), is expressed as
$ % & % %
where
' ( = breakage frequency; that is, the fraction of particles of volume ) breaking per unit time 0 1 ) ( 2 3 3 = probability density function (PDF) of particles breaking from volume 4 to a particle of volume 5 The birth rate of particles of volume 6 due to breakage is given by 8EF = 9@ A B A A C A DA G7
where
(29)
H I P I QI particles of volume R break per unit time, producing ST U V U WU particles, of which a fraction X Y Y `Y represents particles of volume a . b is the number of child
particles produced per parent (for example, two particles for binary breakage). The death rate of particles of volume
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
(210)
is also known as the particle fragmentation distribution function, or daughter size The PDF distribution. Several functional forms of the fragmentation distribution function have been proposed, though the following physical constraints must be met: the normalized number of breaking particles must sum to unity, the masses of the fragments must sum to the original particle mass, and the number of fragments formed has to be correctly represented.
Mathematically, these constraints can be written as follows: For the normalization condition:
=
(211)
=
For binary breakage, is symmetric about
(212)
! ! =
; that is,
" # # #
="
# #
(213)
The following is a list of models available in ANSYS FLUENT to calculate the breakage frequency: constant value Luo model Lehr model Ghadiri model Laakkonen model user-defined model
ANSYS FLUENT provides the following models for calculating the breakage PDF: parabolic PDF Laakkonen PDF generalized PDF for multiple breakage fragments user-defined model
The breakage frequency models and the parabolic and generalized PDFs are described in detail in the sections that follow.
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
(214)
where the original particle has a volume and the daughter particle has a volume . In the previous is the breakage frequency, and is the normalized daughter particle expression, distribution function. For binary breakage, the breakage kernel must be symmetrical with respect to
The general form is the integral over the size of eddies hitting the particle with diameter (and volume ). The integral is taken over the dimensionless eddy size = . The general form is
" #$
='
@AB
(7
+(
)01
2( 8
3(
(215)
G
Where
E S Y`a +
S
Where
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
(216)
is the impact velocity and is the particle diameter prior to breaking. ! is the breakage constant
and is defined as
where is the particle density, is the elastic modulus of the granule, and is the interface energy.
(217)
6 7
= 8P9
QRS
(218)
where V is the liquid phase eddy dissipation, W is the surface tension, XY is the liquid density, `a is the gas density, b is the parent particle diameter and c d is the liquid viscosity. The constants ef = , gh = and i p = .
r r q r r = r r r
(219)
where t and u are the daughter and parent particle volumes, respectively. This model is a useful alternative to the widely used Luo model because it has a simple expression for the daughter PDF and therefore requires significantly less computational effort.
10
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
(220)
where and are the daughter and parent particle volumes, respectively. Depending on the value of the shape factor , different behaviors will be observed in the shape of the particle breakage distribution function. For example, if = , the particle breakage has a uniform distribution. If < < , a concave parabola is obtained, meaning that it is more likely to obtain unequally-sized fragments than equally-sized fragments. The opposite of this is true for < < . Values outside of the range of 0 to 3 are not allowed, because the PDF cannot have a negative value. Note that the PDF defined in Equation 220 (p. 11) is symmetric about = .
=
$%
is
(221)
The
! moment of " #
&2 =
' 2(
3
0 1 ' )' = 2 2 1
(222)
where
A 5@ 6 =
6 @ 78 B
6 6 96
(223)
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
11
(224)
=
=
(225)
(226)
where ) can be 0 or 1, which represents 0 1 as consisting of 1 or 2 terms, respectively. For each term, 2 3 is the weighting factor, 4 5 is the averaged number of daughter particles, 67 and 8 9 are the exponents, and @ AC B C is the beta function. The following constraints are imposed on the parameters in Equation 226 (p. 12) :
DE =
E
(227)
F HG H = G
H
(228)
IS
S
PQ S S = QS + RS
(229)
In order to demonstrate how to transform the generalized PDF to represent an appropriate daughter distribution, consider the expressions shown in the tables that follow:
T U VW X a b d+ h+ ` Y c ef g h+ ip q
i
+a b c
12
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
The Population Balance Equation (PBE) Type Austin [2] Binary Beta -a [11] Binary Beta -b [20] Uniform [29]
+
' ()
0 2
2
Constraints
1 3
5+6 5 8+9 8 R P + + QS 2
2
<4 <7
V T + UW
@A @B >
N/A
C DG
EH F EH EI
X Y
In Table 2.3: Daughter Distributions (p. 12), a is the Dirac delta function, b is a weighting coefficient, and c, d, ef , and gh are user-defined parameters. The generalized form can represent the daughter distributions in Table 2.3: Daughter Distributions (p. 12) by using the values shown in Table 2.5: Values for Daughter Distributions in General Form (p. 13).
v
1 0.5 1 1
u x
2
t d
r
N/A 0.5 N/A N/A
q
N/A 2 N/A N/A
p
N/A 1 N/A N/A
i
N/A
Constraints
1 1 2 1
w y <
N/A N/A 1
+ + eg + f eg
<
>
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
13
Constraints
1 1
N/A N/A
N/A N/A
N/A N/A
N/A N/A
>
(*)You can approximate by using a very large number, such as 1e20. (**)Binary Beta -a is a special case of Binary Beta -b when ! = .
Important
Note that for the ANSYS FLUENT implementation of the generalized form of the PDF, you will only enter values for "#, $% , &' , () , and 01 , and the remaining values (23 , 45 , and 6 7 ) will be calculated automatically.
2.2.2.7. Aggregation
The aggregation kernel [18] (p. 66) is expressed as
8 9 9
the frequency of collisions between particles of volume A and particles of volume B the efficiency of aggregation (that is, the probability of particles of volume C coalescing with particles of volume D ).
G
T
H I H
I H PH
(230)
where particles of volume U U aggregate with particles of volume V to form particles of volume is included to avoid accounting for each collision event twice. W . The factor The death rate of particles of volume X due to aggregation is given by
14
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
=
Important
(231)
The breakage and aggregation kernels depend on the nature of the physical application. For example, in gas-liquid dispersion, the kernels are functions of the local liquid-phase turbulent dissipation. The following is a list of aggregation functions available in ANSYS FLUENT: constant Luo model Free molecular model Turbulent model user-defined model
The Luo, free molecular, and turbulent aggregation functions are described in detail in the sections that follow.
! " #
where
=
(232)
689 7@ 7A
BHI CP CQ
where
D E R+E R F F G P Q P Q PQ
(233)
S TU is the characteristic velocity of collision of two particles with diameters V W and X Y and number densities ` a and b c. hig (234) d ef = d g e + d gf
where
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
15
(235)
! + + ! = " ! $ # " + +
(236)
where %& is a constant of order unity, ' )0 = ( ) ( 0, 12 and 34 are the densities of the primary and secondary phases, respectively, and the Weber number is defined as
7 8 A 9 AB 5 6 AB = C @
D
(237)
I P G HR H S = T Q
HR + H S H RH S
U
(238)
where V W is the Boltzmann constant, X is the absolute temperature, Y is the viscosity of the suspending fluid. This kernel is also known as the Brownian kernel or the perikinetic kernel.
ag b= c
def
(239)
In the turbulent flow field, aggregation can occur by two mechanisms: viscous subrange mechanism: this is applied when particles are smaller than the Kolmogorov microscale,
16
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
The Population Balance Equation (PBE) inertial subrange mechanism: this is applied when particles are bigger than the Kolmogorov microscale. In this case, particles assume independent velocities.
For the viscous subrange, particle collisions are influenced by the local shear within the eddy. Based on work by Saffman and Turner [27] (p. 66), the collision rate is expressed as,
(240)
where is a pre-factor that takes into account the capture efficiency coefficient of turbulent collision,
=
(241)
For the inertial subrange, particles are bigger than the smallest eddy, therefore they are dragged by velocity fluctuations in the flow field. In this case, the aggregation rate is expressed using Abrahamsons model [1] (p. 65),
# + $ # $ = % &'( ! 2
" #( + " ( $
(242)
where 0 1 is the mean squared velocity for particle 3. The empirical capture efficiency coefficient of turbulent collision describes the hydrodynamic and attractive interaction between colliding particles. Higashitani et al. [9] (p. 65) proposed the following relationship:
46 =
56
789@9 56
(243)
where AB is the ratio between the viscous force and the Van der Waals force,
DE F P + F Q CI = H
(244)
is the deformation rate, Where S is the Hamaker constant, a function of the particle material, and T
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
17
(245)
18
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Solution Methods
= +
" "
(246)
! # $
! +
!
!
where as
(2
is the density of the secondary phase and % & is the volume fraction of particle size ', defined
= ) 202
(247)
where
9@ + A 38 4
9@
76
(248)
and BC is the volume of the particle size D. In ANSYS FLUENT, a fraction of E, called the solution variable. This fraction is defined as
H
, is introduced as
= P
IP I
(249)
where Q is the total volume fraction of the secondary phase. The nucleation rate R S appears in the discretized equation for the volume fraction of the smallest size
T U . The
notation
W X Y , ` a a
only in the case of the smallest particle size. The growth rate in is discretized as follows Equation 246 (p. 19) [10] (p. 65):
d b p i qg i q d b p ig i d behf i = e ci h c c ci + q ci ci ci q
The volume coordinate is discretized as [10] (p. 65) rs + u to as the ratio factor . The particle birth and death rates are defined as follows:
rs
=
t
(250)
where v =
and is referred
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
19
=
(251)
! =
(252)
#() 3 0 =
(253)
5 9@ B A = 6 7A 8 A
where
(254)
C EF = C DE DF
and
G QR =
I P
(255)
WXY is the particle volume resulting from the aggregation of particles ` and a, and is defined as bde = c b+ fg h
where
c fg
bh + i
(256)
q q p rs = tu v + w qv qv + w
(257)
If xy is greater than or equal to the largest particle size , then the contribution to class is
=
Important
Note that there is no breakage for the smallest particle class.
(258)
20
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Solution Methods
= +
=
+ +
(259)
!# = #$ ! #
!$
! + # " !
Here
&0 % 1 % 2
= '1 ( % 1 ) % 1 % 2
(260)
A more mathematically rigorous formulation is given by Ramkrishna[13] (p. 65), where the breakage rate is expressed as
49 5
6 @ C B7
@
3 B 8B
(261)
where
D D DP + S P + S G DQ D DP + S DP ET
FPRQ
HD
DP S G D Q D HD D D I T U P
D
ET
(262)
The Ramkrishna formulation can be slow due to the large number of integration points required. However, for simple forms of V, the integrations can be performed relatively easily. The Hagesather formulation requires fewer integration points and the difference in accuracy with the Ramkrishna formulation can be corrected by a suitable choice of bin sizes.
Important
To keep the computing time reasonable, a volume averaged value is used for the turbulent eddy dissipation when the Luo model is used in conjunction with the Ramkrishna formulation.
Note
The inhomogeneous discrete phase applies the Hagesather formulation.
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
21
=
(263)
and assuming constant particle growth, its transport equation can be written as
where
& +
(264)
' 34 6 5 =
( 7
0 7
1 )
1 )
5 89 1@ + )@ ( 1 212)
(265)
A GH P I =
BI C B D B E C E FEFB Q Q
(266)
R Y` b a =
Sa T c c eq f s q
U V S U W U XUXS
(267)
d ip r q = t
e g e he
(268)
v is the nucleation rate. The growth term is defined as is the specified number of moments and u
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
22
Solution Methods
(269)
Equation 265 (p. 22) can be derived by using
(270)
=
=
and reversing the order of integration. From these moments, the parameters describing the gross properties of particle population can be derived as
= =
!& (3
(271)
(272)
= 5 96A = D BEP =
RU RV
(273)
(274)
QST
(275)
These properties are related to the total number, length, area, and volume of solid particles per unit volume of mixture suspension. The Sauter mean diameter, WXY, is usually used as the mean particle size. To close Equation 264 (p. 22), the quantities represented in Equation 265 (p. 22) Equation 268 (p. 22) need to be expressed in terms of the moments being solved. To do this, one approach is to assume size-independent kernels for breakage and aggregation, in addition to other simplifications such as the e e b cd . Alternatively, a profile of the PSD could be assumed Taylor series expansion of the term ` + a so that Equation 265 (p. 22) Equation 268 (p. 22) can be integrated and expressed in terms of the moments being solved. In ANSYS FLUENT, an exact closure is implemented by restricting the application of the SMM to cases with size-independent growth and a constant aggregation kernel.
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
23
=
(276)
is exact if is a polynomial of order or smaller [5] (p. 65). In all other cases, the closer is to a polynomial, the more accurate the approximation.
A direct way to calculate the quadrature approximation is by means of its definition through the moments:
=
! ! !=#
"
(277)
The quadrature approximation of order $ is defined by its % weights & ' and ( abscissas ) 0 and can be calculated by its first 1 moments 26 243 5 by writing the recursive relationship for the polynomials in terms of the moments 78 . Once this relationship is written in matrix form, it is easy to show that the roots of the polynomials correspond to the eigenvalues of the Jacobi matrix [24] (p. 66). This procedure is known as the Product-Difference algorithm [8] (p. 65). Once the weights and abscissas are known, the source terms due to coalescence and breakage can be calculated and therefore the transport equations for the moments can be solved. Applying Equation 276 (p. 24) and Equation 277 (p. 24), the birth and death terms in Equation 264 (p. 22) can be rewritten as
24
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Solution Methods
=
+ = =
(278)
$
"
"
(279)
& 23 7 4 =
(280)
@ DE I F =
(281)
Theoretically, there is no limitation on the expression of breakage and aggregation kernels when using QMOM. The nucleation rate is defined in the same way as for the SMM. The growth rate for QMOM is defined by Equation 269 (p. 23) and represented as
T=W
Q TR TV WS R T
(282)
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
25
+
(283)
& &'
+ # &$ &
(284)
where 0 1 and 2 43 4 are the VOF and the effective length of the particle phase, respectively. 5 6 is the number of particles per unit volume and 7 8 is the growth rate at Quadrature point 9, while @ A and B C can be computed through a linear system resulting from the moment transformation of the particle number density transport equation using D Quadrature points. The linear system can be written in matrix form as
EF
=G
IPIQ
(285)
is defined by
RV = Xb =
The
e
W SV
SW U T
WU V SU
T
WU V SV
(286)
Yc
Ya
(287)
ba b Yc `
ba b Ya
f g
(288)
The right hand side of Equation 285 (p. 26) is the known source terms involving aggregation and breakage phenomena only. The growth term is accounted for directly in Equation 283 (p. 26) and Equation 284 (p. 26). At present, nucleation is not considered.
26
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
(289)
moment = ! #"
is defined as
$& % '
"$ (
(290)
When the abscissas of the Quadrature points ) 0 are distinct, the matrix 1 is well defined and a unique solution of Equation 285 (p. 26) can be obtained. Otherwise, the matrix 2 is not full rank and cannot be inverted to find a unique solution for 3. The method adopted by ANSYS FLUENT to overcome this problem is to employ a perturbation technique. For example, for the current three Quadrature points system, the perturbation technique will add a small value to the abscissas to make sure the matrix A is full rank. It is important to note that the perturbation technique is only used for the definition of matrix 4 and no modifications are made to the source term vector of Equation 290 (p. 27). Therefore, both the weights and overall source terms resulting from aggregation and breakage are not affected by the perturbation method. The simulation tests have found that the perturbation method can stabilize the solutions of Equation 285 (p. 26) and reduce the physically unrealistically large source terms for the two phases whose abscissa are too close in value. However, the technique has little effect on the phase whose abscissa 5 6 is distinct from the other two.
9 @ =
C E B A B@ B=D
(291)
GS =
HS
U W T I TH PH T=V
Q=
(292)
Given X moments, the coefficients Y ` can be found by a globally convergent Newton-Raphson method to reconstruct the particle size distribution (for example, Figure 2.2 (p. 28)).
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
27
28
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Select the Population Balance Model by entering the module number 5. During the loading process a scheme library containing the graphical and text user interface, and a UDF library containing a set of user defined functions are loaded into ANSYS FLUENT. A message Addon Module: popbal...loaded! is displayed at the end of the loading process. The population balance module setup is saved with the ANSYS FLUENT case file. The module is loaded automatically when the case file is subsequently read into ANSYS FLUENT. Note that in the saved case file, the population balance module is saved with the absolute path. Therefore, if the locations of the population balance module installation or the saved case file are changed, ANSYS FLUENT will not be able to load the module when the case file is subsequently read.
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
29
Important
A limitation of the population balance model is that it can be used only on one secondary phase, even if your problem includes additional secondary phases. Note that a three-phase gas-liquid-solid case can be modeled, where the population balance model is used for the gas phase and the solid phase acts as a catalyst. However, if you are using the Inhomogeneous Discrete, more than one secondary phase can be used. Note that the properties of the secondary phases selected for that method should be the same for consistency. For more information, please see the following sections: 3.3.1. Enabling the Population Balance Model 3.3.2. Defining Population Balance Boundary Conditions 3.3.3. Specifying Population Balance Solution Controls 3.3.4. Coupling With Fluid Dynamics 3.3.5. Specifying Interphase Mass Transfer Due to Nucleation and Growth
30
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
4.
Specify the population balance method under Method. If you select Discrete, you will need to specify the following parameters: Kv specifies the value for the particle volume coefficient (as described in Particle Growth and Dissolution (p. 6)). By default, this coefficient has a value of . Definition can be specified as a Geometric Ratio or as a File. If Geometric Ratio is selected, then the Ratio Exponent must be specified. If File is selected, you will click the Load File... button and select the bin size file that you want loaded. You can input the diameter through the text file, with each diameter listed on a separate line, starting from the smallest to the largest diameter (one entry per line). Hence, you are not limited by the choices specified in the dialog box.
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
31
Chapter 3: Using the ANSYS FLUENT Population Balance Model Bins specifies the number of particle size bins used in the calculation. Ratio Exponent specifies the exponent used in the discretization of the growth term volume coordinate (see Numerical Method (p. 19)). Min Diameter specifies the minimum bin size
Max Diameter displays the maximum bin size, which is calculated internally. To display a list of the bin sizes in the console window, click Print Bins. The bin sizes will be listed in order of size, from the largest to the smallest. This option is only available when the Geometric Ratio Definition is selected. If you select Inhomogeneous Discrete under Method, you will specify the same parameters as for the Discrete model. Additionally, you can include more than one secondary phase in the bin definition. Enter the total number of Active Secondary Phases in your simulation.
Note
While reading bins through the Load File... option for the Inhomogeneous Discrete model, the corresponding phase name must be included, for example (("air-1" (0.1 0.2 0.3)) If you select Standard Moment under Method, you will specify the number of Moments under Parameters. If you selected Quadrature Moment under Method, you will set the number of moments to either 4, 6 or 8 under Parameters. If you selected DQMOM under Method, you will select the DQMOM Phases from the list. You will also specify the following Parameters: Max Size specifies the maximum size of the particle. Min Size specifies the minimum size of the particle. Reference Length is the reference particle size. Normally, the averaged size of the particle group should be sufficient. Min VOF is the minimum VOF, where the total volume fraction of the particle phases (participating in DQMOM computations) is below the minimum value; the source terms caused by the breakage and coalescence are not computed in that cell for the DQMOM and VOF equations. Max VOF Change/Time Step is the maximum VOF change in percentage for each DQMOM phase per time step, in order to smooth the convergence progress. Generate DQMOM Values enables you to generate DQMOM values from PDF, CDF, or Overall Moments files. Each of the file formats and the way to generate the values are discussed in Generated DQMOM Values (p. 37). 32
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Note
The DQMOM method is restricted to a four-phase system, of which three secondary phases are directly involved in the DQMOM computation. Unsteady simulations are required to model breakage and coalescence and a well defined initial field is recommended, in which the abscissas are distinct. Only growth, breakage, and aggregation are the available phenomena. No nucleation is considered. 5. 6. Select the secondary phase from the Phase drop-down list for which you want to apply the population balance model parameters. For all population balance methods, you can enable the following under Phenomena : Nucleation Rate enables you to specify the nucleation rate ( ). You can select constant or userdefined from the drop-down list. If you select constant, specify a value in the adjacent field. If you have a user-defined function (UDF) that you want to use to model the nucleation rate, you can choose the user-defined option and specify the appropriate UDF.
Note
This option is not available when using the Inhomogeneous Discrete method. Growth Rate enables you to specify the particle growth rate (m/s). You can select constant or user-defined from the drop-down list. If you select constant, specify a value in the adjacent field. If you have a user-defined function (UDF) that you want to use to model the growth rate, you can choose the user-defined option and specify the appropriate UDF.
Note
This option is not available when using the Inhomogeneous Discrete method. Aggregation Kernel enables you to specify the aggregation kernel ( ). You can select constant, luo-model, freemolecular-model, turbulent-model, or user-defined from the drop-down list: If you select constant, specify a value in the adjacent field. If you select luo-model, the Surface Tension for Population Balance dialog box will open automatically to enable you to specify the surface tension (see Figure 3.2 (p. 34)). The aggregation rate for the model will then be calculated based on Luos aggregation kernel (as described in Particle Birth and Death Due to Breakage and Aggregation (p. 7)).
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
33
Figure 3.2 The Surface Tension for Population Balance Dialog Box
If you select free-molecular-model, then Equation 238 (p. 16) is applied. If you select turbulent-model, the Hamaker Constant for Population Balance dialog box will open automatically to enable you to specify the Hamaker constant (see Figure 3.3 (p. 34)). More information about this model is available in Turbulent Aggregation Kernel (p. 16).
Figure 3.3 The Hamaker Constant for Population Balance Dialog Box
If you have a user-defined function (UDF) that you want to use to model the aggregation rate, you can choose the user-defined option and specify the appropriate UDF.
Breakage Kernel ). You can select constant, enables you to specify the particle breakage frequency ( luo-model, lehr-model, ghadiri-model, laakkonen-model or user-defined from the Frequency drop-down list: If you select constant, specify a value in the adjacent field. If you select luo-model, the Surface Tension for Population Balance dialog box will open automatically to enable you to specify the surface tension (see Figure 3.2 (p. 34)). The frequency used in the breakage rate will then be calculated based on Luos breakage kernel (as described in Particle Birth and Death Due to Breakage and Aggregation (p. 7)). If you select lehr-model, the Surface Tension and Weber Number dialog box will open automatically to enable you to specify the surface tension and critical Weber number (see Figure 3.4 (p. 34)). The frequency used in the breakage rate will then be calculated based on Lehrs breakage kernel (as described in Particle Birth and Death Due to Breakage and Aggregation (p. 7)).
Figure 3.4 The Surface Tension and Weber Number Dialog Box
34
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Population Balance Model Setup If you select ghadiri-model, the Ghadiri Breakage Constant for Population Balance dialog box will open automatically to enable you to specify the breakage constant (see Figure 3.5 (p. 35)). The frequency will then be calculated based on Ghadiris breakage kernel (as described in Particle Birth and Death Due to Breakage and Aggregation (p. 7)).
Figure 3.5 The Ghadiri Breakage Constant for Population Balance Dialog Box
If you select laakkonen-model, the Surface Tension for Population Balance dialog box will open automatically to enable you to specify the Surface Tension and the constant C2 (Laakkonen Breakage Kernels (p. 10)). The frequency will then be calculated based on Laakkonen's breakage kernel (as described in Laakkonen Breakage Kernels (p. 10)). If you have a user-defined function (UDF) that you want to use to model the frequency for the breakage rate, you can choose the user-defined option and specify the appropriate UDF.
If you selected constant, ghadiri-model, laakkonen-model, or user-defined for Frequency, then you can specify the probability density function used to calculate the breakage rate by making a selection in the PDF drop-down list. You can select parabolic, laakkonen, generalized, or user-defined : If you select parabolic, the Shape Factor for Parabolic PDF dialog box will open automatically to enable you to specify the shape factor C (see Figure 3.6 (p. 35)). The PDF used in the breakage rate will then be calculated according to Equation 220 (p. 11) (as described in Particle Birth and Death Due to Breakage and Aggregation (p. 7)).
Figure 3.6 The Shape Factor for Parabolic PDF Dialog Box
If you select generalized, the Generalized pdf for multiple breakage dialog box will open automatically (Figure 3.7 (p. 36)).
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
35
Figure 3.7 The Generalized pdf for multiple breakage Dialog Box
Perform the following steps in the Generalized pdf for multiple breakage dialog box: a. b. c. Select either One Term or Two Term from the Options list. Your selection will determine whether in Equation 226 (p. 12) is 0 or 1, respectively. Enter a value for the averaged Number of Daughters. It can be any real number (including non-integers, such as 2.5), as long as it is not less than 2. Define the parameter(s) for Equation 226 (p. 12) in the Input Parameters group box. When One Term is selected from the Options list, you must enter a value for qi0. When Two Term is selected from the Options list, you must enter values for wi0, pi0, qi0, ri0, and qi1. For information about appropriate values for these parameters to result in the daughter distributions shown in Table 2.3: Daughter Distributions (p. 12), see Table 2.4: Daughter Distributions (cont.) (p. 13).
Note
For equisized generalized pdf breakage distribution, the value for qi0 should be set to 20. d. Click the Validate/Apply button to save the settings. The text boxes in the All Parameters group box will be updated, using the values you entered in the Input Parameters group box, as well as values derived from the constraints shown in Equation 227 (p. 12) Equation 229 (p. 12). Verify that the values in the All Parameters group box represent your intended PDF before clicking Close.
e.
If you have a user-defined function (UDF) that you want to use to model the PDF for the breakage rate, you can choose the user-defined option and specify the appropriate UDF. See
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
36
Population Balance Model Setup UDFs for Population Balance Modeling (p. 53) for details about UDFs for the population balance model. Choose between the default Hagesather formulation and the Ramakrishna formulation. Detailed information about these two methods can be found in Breakage Formulations for the Discrete Method (p. 21). 7. Enable Include Expansion if you want to account for bubble expansion due to large changes in hydrostatic pressure.
Note
The secondary phase must be modeled as compressible. This option is currently available for Discrete and QMOM only. 8. Specify the boundary conditions for the solution variables. Boundary Conditions See Defining Population Balance Boundary Conditions (p. 41) below. 9. Specify the initial guess for the solution variables. Solution Initialization 10. Solve the problem and perform relevant postprocessing functions. Run Calculation See Postprocessing for the Population Balance Model (p. 49) for details about postprocessing.
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
37
Figure 3.8 The Population Balance Model Dialog Box for the DQMOM Model
DQMOM Values Produced From PDF, CDF Files, or Overall Moments for the Particles Three quadrature points are assumed, namely QP0, QP1, and QP2 (see Figure 3.9 (p. 39)). Length, Volume Fraction , and DQMOM-m4 values are given. The latter two can be used for initial fields of VOF and DQMOM as well as boundary conditions. For verification purposes, the first six moments are also given together with the total volume fraction of all particles from the PDF or CDF file. It is your responsibility to make sure that these values are correct, especially the total volume fraction. The definition of the first six moments of the particles is length based for the overall moments, described in The Quadrature Method of Moments (QMOM) (p. 24). In PDF or CDF format, the resultant volume fraction is normally given as unity. If you want the real particle volume fraction to be reflected in the mixture, the second column of the PDF or CDF data file need to be multiplied by the value of the real volume fraction. Another way is to multiply the
38
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Population Balance Model Setup values of the generated DQMOM volume fraction and DQMOM-m4 using the real particle volume fraction.
PDF File Format The probability density function (PDF) is defined by the probability distribution of particles in terms of the volume fraction over the particle length (namely the diameter of the particle). The integration of PDF over all possible particle length (normally from 0 to the maximum diameter) shall give a value of unity or the real value of the volume fraction of all participating particles. The following file format is required (as shown below): An integer number specified in the first line, indicating the number of data pairs to follow The data in the 1st column specifying the length or diameter of particles in ascending order in meters (m) The data in the 2nd column specifying the probability density function. Be aware that the integration of the PDF over the length shall result in a value of volume fraction for that particular particle length range
37 5e-6 0.000058e6 10e-6 0.000271e6 15e-6 0.000669e6 20e-6 0.001264e6 25e-6 0.002062e6 30e-6 0.003055e6 35e-6 0.004228e6 40e-6 0.005549e6 45e-6 0.006972e6 50e-6 0.008439e6 55e-6 0.00988e6 60e-6 0.011217e6 65e-6 0.012366e6 70e-6 0.013253e6 75e-6 0.013811e6 80e-6 0.013996e6 85e-6 0.013789e6 90e-6 0.013199e6 95e-6 0.012268e6 100e-6 0.011062e6 105e-6 0.009668e6 110e-6 0.00818e6 115e-6 0.006694e6 120e-6 0.00529e6
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
39
CDF File Format The cumulative density function (CDF) is defined as the integration of PDF over all possible particles up to the length , resulting in a value of volume fraction for all particles less than length . The value of the CDF at the maximum particle length/diameter shall be unity, or the real value of the volume fraction of all particles in the mixture. The following file format is required (as shown below): An integer number specified in the first line, indicating the number of data pairs to follow The data in the 1st column specifying the length or diameter of particles in ascending order in meters (m) The data in the 2nd column specifying the cumulative density function in terms of the volume fraction of particles
37 5e-6 0 10e-6 0.109e-2 15e-6 0.16e-2 20e-6 0.175e-2 25e-6 0.208e-2 30e-6 0.304e-2 35e-6 0.614e-2 40e-6 1.5e-2 44e-6 3.e-2 45e-6 3.44e-2 50e-6 6.573e-2 55e-6 11.19e-2 60e-6 17.11e-2 65e-6 24.17e-2 70e-6 32.007e-2 75e-6 40.243e-2 80e-6 48.397e-2 85e-6 56.453e-2 90e-6 63.823e-2 95e-6 70.53e-2 100e-6 76.073e-2 105e-6 81e-2 110e-6 85.057e-2 115e-6 88.187e-2 120e-6 90.89e-2 125e-6 92.897e-2 130e-6 94.437e-2 135e-6 95.543e-2 140e-6 96.523e-2 145e-6 97.173e-2 150e-6 97.717e-2 155e-6 98.007e-2 160e-6 98.363e-2 170e-6 98.88e-2 180e-6 99.16e-2
40
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Overall Moments File Format The third option is to specify the first six moments for all particles as shown below. The following file format is required (as shown below): An integer number specified in the first line, indicating the number of data (moments) to follow. By default, this shall be 6 six moments from moment-0 to moment-5 are given in that order. The definition of the first six moments is based on length as described in The Quadrature Method of Moments (QMOM) (p. 24) As a check for moments,
! $ "! # " . In the values given below, volume fraction is assumed to be unity and % & Kv is assumed to be ' (
=
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
41
Figure 3.10 Specifying Inlet Boundary Conditions for the Population Balance Model
2.
In the Multiphase tab, under Boundary Condition, select the type of boundary condition for each bin (for the discrete method) or moment (for SMM and QMOM) as either Specified Value or Specified Flux. Note that the boundary condition variables (for example, Bin-0) are labeled according to the following: bin/moment - th bin/moment where the th bin/moment can range from 0 (the first bin or moment) to , where is the number of bins/moments that you entered in the Population Balance Model dialog box.
3.
Under Population Balance Boundary Value, enter a value or a flux as appropriate. If you selected Specified Value for the selected boundary variable, enter a value in the field adjacent to the variable name. This value will correspond to the variable in Equation 249 (p. 19) (for the discrete method) or
If you selected Specified Flux for the selected boundary variable, enter a value in the field adjacent to the variable name. This value will be the spatial particle volume flux .
42
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Population Balance Model Setup The default value under Under-Relaxation Factors (in the Solution Controls task page) for the population balance equations is 0.5, and the default Discretization scheme (in the Solution Methods task page) is First Order Upwind.
(31)
To specify the Sauter mean diameter as the secondary phase particle diameter, open the Secondary Phase dialog box. Phases Secondary Phase Edit...
In the Secondary Phase dialog box (for example, Figure 3.12 (p. 44)), select sauter-mean from the Diameter drop-down list under Properties. Note that a constant diameter or user-defined function may also be used.
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
43
Figure 3.12 The Secondary Phase Dialog box for Hydrodynamic Coupling
), and a growth rate As an example, in crystallization, particles are created by means of nucleation (
() can also be specified. The mass transfer rate of formation (in then
(32)
For the discrete method, the mass transfer rate due to growth can be written as
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
44
= =
(33)
If the nucleation rate is included in the total mass transfer, then the mass transfer becomes
= ! !
(34)
Important
For the discrete method, the sources to the population balance equations must sum to the total mass transfer rate. To access the sources, you can use the macro C_PB_DISCI_PS (cell, thread, i). See UDFs for Population Balance Modeling (p. 53) for more information about macros for population balance variables. For the SMM, only a size-independent growth rate is available. Hence, the mass transfer rate can be written as
" = #$ &%"'
(35)
1 562 53
5
15
(36)
For both the SMM and QMOM, mass transfer due to nucleation is negligible, and is not taken into account.
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
45
Important
Note that for crystallization, the primary phase is comprised of multiple components. At the very least, there is a solute and a solvent. To define the multicomponent multiphase system, you will need to activate Species Transport in the Species Model dialog box for the primary phase after activating the multiphase model. The rest of the procedure for setting up a species transport problem is identical to setting up species in single phase. The heterogeneous reaction is defined as:
When the population balance model is activated, mass transfer between phases for non-reacting species (such as boiling) and heterogeneous reactions (such as crystallization) can be done automatically, in lieu of hooking a UDF. For simple unidirectional mass transfer between primary and secondary phases due to nucleation and growth phenomena of non-reacting species, go to the Phases task page and click the Interaction... button. This will open the Phase Interaction dialog box (Figure 3.13 (p. 47)). Click the Mass tab to specify the Mass Transfer of species between the phases. Specify the Number of Mass Transfer Mechanisms involved in your case. From the drop-down list under From Phase, select the phase that you want to transfer mass from. In the To Phase drop-down list, select the phase that you want to transfer mass to. You have a choice of four mechanisms used to transfer mass. Under Mechanism select from the dropdown list none if you do not want any mass transfer between the phases. constant-rate for a fixed, user-specified rate. user-defined if you hooked a UDF describing the mass transfer mechanism. population-balance for an automated method of mass transfer, not involving a UDF. The nucleation and the growth rates calculated by the population balance kernels are used for mass transfer. Click OK to save the settings.
Note
For the Inhomogeneous Discrete population balance model, where there is more than one secondary phase, you can select population-balance as the mechanism of mass transfer between the solvent phase (say for crystallization) and each of the solute phases defined under the Inhomogeneous Discrete population balance model. For heterogeneous reactions, the Species Transport model has to be activated for the primary phase. In the Phases task page, click the Interaction... button. This will open the Phase Interaction dialog box (Figure 3.14 (p. 47)). Click the Reactions tab to specify the stoichiometry for the reactant and the product. At the bottom of the Phase Interaction dialog box, select population-balance as the Reaction
46
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Population Balance Model Setup Rate Function. Click OK to save the settings. Either this method or the use of the UDF, described in Appendix A (p. 61), will produce the same results. For the Inhomogeneous Discrete population balance model involving nucleation and growth, you can select population-balance as the Reaction Rate Function for each heterogeneous reaction you have set up. To learn how to set up reactions, please go to Specifying Heterogeneous Reactions in the User's Guide.
Figure 3.13 The Phase Interaction Dialog Box for Non-reacting Species
Figure 3.14 The Phase Interaction Dialog Box for a Heterogeneous Reaction
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
47
48
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Bin-i fraction is the fraction ( ) of the volume fraction for the th size bin when using the discrete for the th size method. Number density of Bin-i fraction is the number density ( ) in bin. Moment-i is the th moment of the distribution when using the standard method of moments or the quadrature method of moments.
Important
Though the diffusion coefficients of the population variables (for example, Diffusion Coef. of Bin-i fraction/Moment-i) are available, they are set to zero because the diffusion term is not present in the population balance equations.
49
The steps for computing moments are as follows: 1. 2. 3. 4. 5. For the discrete method, specify the Number of Moments. For the SMM and QMOM, the number of moments is set equal to the number of moments that were solved, and therefore cannot be changed. For a surface average, select the surface(s) on which to calculate the moments in the Surfaces list. For a volume average, select the volume(s) in which to calculate the moments in the Cell Zones list. Click Print to display the moment values in the console window. To save the moment calculations to a file, click Write... and enter the appropriate information in the resulting Select File dialog box. The file extension should be .pb.
The steps for displaying the number density function are as follows: 50
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Reporting Derived Population Balance Variables 1. 2. Specify the Report Type as either a Surface Average or a Volume Average. Under Plot Type, specify how you would like to display the number density function data. Histogram displays a histogram of the discrete number density ( ). The number of divisions in the histogram is equal to the number of bins specified in the Population Balance Model dialog box. This option is available only with the discrete method. Curve displays a smooth curve of the number density function. 3. In the Fields list, select the data to be plotted. Discrete Number Density ( ) is the number of particles per unit volume of physical space in the th size bin plotted against particle diameter size . This option is available only with the discrete method. Length Number Density Function ( ) is the number of particles per unit volume of physical space per unit particle length plotted against particle diameter. Volume Number Density Function ( ) is the number of particles per unit volume of physical space per unit particle volume plotted against particle volume. 4. 5. 6. 7. Choose the cell zones on which to plot the number density function data in the Cell Zones list. Click Plot... to display the data. (optional) Click Print to display the number density function data in the console window. Click Write to save the number density function data to a file. The Select File dialog box will open, where you can specify a name and save a file containing the plot data. The file extension should be .pbd.
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
51
52
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
where =
C_PB_DISCI_PS cell_t c, Thread *t, int i C_PB_SMMI_PS cell_t c, Thread *t, int i
net source term to ith size bin net source term to ith moment net source term to ith moment
53
5.2.1. DEFINE_PB_BREAK_UP_RATE_FREQ
You can use the DEFINE_PB_BREAK_UP_RATE_FREQ macro if you want to define the breakage frequency using a UDF. The function is executed at the beginning of every time step.
5.2.1.1. Usage
DEFINE_PB_BREAK_UP_RATE_FREQ(name, cell, thread, d_1) Argument Type char name cell_t cell Thread *thread real d_1 Function returns real There are four arguments to DEFINE_PB_BREAK_UP_RATE_FREQ: name, cell, thread, and d_1. You will supply name, the name of the UDF. cell, thread, and d_1 are variables that are passed by the ANSYS FLUENT solver to your UDF. Description UDF name Cell index Pointer to the secondary phase thread associated with d_1 Parent particle diameter or length
5.2.1.2. Example
Included below is an example of a UDF that defines a breakage frequency (see Particle Birth and Death Due to Breakage and Aggregation (p. 7)) that is based on the work of Tavlarides [4] (p. 65), such that
=
(51)
where and !" are constants, # is the dissipation rate, $ is the parent diameter, % is the surface tension, & is the volume fraction of the dispersed phase, and '( is the density of the primary phase.
/************************************************************************ UDF that computes the particle breakage frequency *************************************************************************/ #include "udf.h" #include "sg_pb.h" #include "sg_mphase.h" DEFINE_PB_BREAK_UP_RATE_FREQ(break_up_freq_tav, cell, thread, d_1) { real epsi, alpha, f1, f2, rho_d; real C1 = 0.00481, C2 = 0.08, sigma = 0.07; Thread *tm = THREAD_SUPER_THREAD(thread);/*passed thread is phase*/ epsi = C_D(cell, tm); alpha = C_VOF(cell, thread); rho_d = C_R(cell, thread); f1 = pow(epsi, 1./3.)/((1.+epsi)*pow(d_1, 2./3.)); f2 = -(C2*sigma*(1.+alpha)*(1.+alpha))/(rho_d*pow(epsi,2./3.)*pow(d_1, 5./3.)); return C1*f1*exp(f2); }
54
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
5.2.2. DEFINE_PB_BREAK_UP_RATE_PDF
You can use the DEFINE_PB_BREAK_UP_RATE_PDF macro if you want to define the breakage PDF using a UDF. The function is executed at the beginning of every time step.
5.2.2.1. Usage
DEFINE_PB_BREAK_UP_RATE_PDF(name, cell, thread, d_1, thread_2, d_2) Argument Type char name cell_t cell Thread *thread real d_1 Thread *thread_2 real d_2 Description UDF name Cell index Pointer to the secondary phase thread associated with d_1 Parent particle diameter or length Pointer to the secondary phase thread associated with d_2 Diameter of one of the daughter particles after breakage; the second daughter particle diameter is calculated by conservation of particle volume
Function returns real There are six arguments to DEFINE_PB_BREAK_UP_RATE_PDF: name, cell, thread, d_1, thread_2, and d_2. You will supply name, the name of the UDF. cell, thread, d_1, thread_2, and d_2 are variables that are passed by the ANSYS FLUENT solver to your UDF.
Note
thread and thread_2 are the same for the Discrete, QMOM and SMM models. They may be the same or different depending on whether d_1 and d_2 belong to the same phase or different phases for the Inhomogeneous model.
5.2.2.2. Example
Included below is an example of a UDF that defines a breakage PDF (see Particle Birth and Death Due to Breakage and Aggregation (p. 7)) that is parabolic, as defined in Equation 220 (p. 11).
/************************************************************************ UDF that computes the particle breakage PDF *************************************************************************/ #include "udf.h" #include "sg_pb.h" #include "sg_mphase.h" DEFINE_PB_BREAK_UP_RATE_PDF(break_up_pdf_par, cell, thread, d_1, thread_2, d_2) { real pdf; real kv = M_PI/6.; real C = 1.0; real f_2, f_3, f_4;
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
55
5.2.3. DEFINE_PB_COALESCENCE_RATE
You can use the DEFINE_PB_COALESCENCE_RATE macro if you want to define your own particle aggregation kernel. The function is executed at the beginning of every time step.
5.2.3.1. Usage
DEFINE_PB_COALESCENCE_RATE(name, cell, thread, d_1, thread_2, d_2) Argument Type char name cell_t cell Thread *thread Thread *thread_2 real d_1, d_2 Function returns real There are six arguments to DEFINE_PB_COALESCENCE_RATE: name, cell, thread, d_1, thread_2, and d_2. You will supply name, the name of the UDF. cell, thread, d_1, and d_2 are variables that are passed by the ANSYS FLUENT solver to your UDF. Your UDF will need to return the real value of the aggregation rate. Description UDF name Cell index Pointer to the secondary phase thread associated with d_1 Pointer to the secondary phase thread associated with d_2 Diameters of the two colliding particles
Note
thread and thread_2 are the same for the Discrete, QMOM and SMM models. They may be the same or different depending on whether d_1 and d_2 belong to the same phase or different phases for the Inhomogeneous model.
5.2.3.2. Example
Included below is an example UDF for a Brownian aggregation kernel. In this example, the aggregation rate is defined as
= =
where = 56
.
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
5.2.4. DEFINE_PB_NUCLEATION_RATE
You can use the DEFINE_PB_NUCLEATION_RATE macro if you want to define your own particle nucleation rate. The function is executed at the beginning of every time step.
5.2.4.1. Usage
DEFINE_PB_NUCLEATION_RATE(name, cell, thread) Argument Type char name cell_t cell Thread *thread Function returns real There are three arguments to DEFINE_PB_NUCLEATION_RATE: name, cell, and thread. You will supply name, the name of the UDF. cell and thread are variables that are passed by the ANSYS FLUENT solver to your UDF. Your UDF will need to return the real value of the nucleation rate. Description UDF name Cell index Pointer to the secondary phase thread
5.2.4.2. Example
Potassium chloride can be crystallized from water by cooling. Its solubility decreases linearly with temperature. Assuming power-law kinetics for the nucleation rate,
=
where =
and =
/************************************************************************ UDF that computes the particle nucleation rate *************************************************************************/ #include "udf.h" #include "sg_pb.h" #include "sg_mphase.h" DEFINE_PB_NUCLEATION_RATE(nuc_rate, cell, thread) {
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
57
Thread *tc = THREAD_SUPER_THREAD(thread); /*obtain mixture thread */ Thread **pt = THREAD_SUB_THREADS(tc); /* pointer to sub_threads */ Thread *tp = pt[P_PHASE]; /* primary phase thread */ solute_mol_wt = 74.55; /* molecular weight of potassium chloride */ solvent_mol_wt = 18.; /* molecular weight of water */ solute_mass_frac = C_YI(cell,tp,0); /* mass fraction of solute in primary phase (solvent) */ solvent_mass_frac = 1.0 - solute_mass_frac; solute_mol_frac = (solute_mass_frac/solute_mol_wt)/ ((solute_mass_frac/solute_mol_wt)+(solvent_mass_frac/solvent_mol_wt)); T = C_T(cell,tp); /* Temperature of primary phase in Kelvin */
solubility = 0.0005*T-0.0794; /* Solubility Law relating equilibrium solute mole fraction to Temperature*/ S = solute_mol_frac/solubility; /* Definition of Supersaturation */ if (S = 1.) { J = 0.; } else { J = Kn*pow((S-1),Nn); } return J; }
Important
Note that the solubility and the chemistry could be defined in a separate routine and simply called from the above function.
5.2.5. DEFINE_PB_GROWTH_RATE
You can use the DEFINE_PB_GROWTH_RATE macro if you want to define your own particle growth rate. The function is executed at the beginning of every time step.
5.2.5.1. Usage
DEFINE_PB_GROWTH_RATE(name, cell, thread,d_i) Argument Type char name cell_t cell Thread *thread real d_i Function returns Description UDF name Cell index Pointer to the secondary phase thread Particle diameter or length
58
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Population Balance DEFINE Macros real There are four arguments to DEFINE_PB_GROWTH_RATE: name, cell, thread, and d_i. You will supply name, the name of the UDF. cell, thread, and d_i are variables that are passed by the ANSYS FLUENT solver to your UDF. Your UDF will need to return the real value of the growth rate.
5.2.5.2. Example
Potassium chloride can be crystallized from water by cooling. Its solubility decreases linearly with temperature. Assuming power-law kinetics for the growth rate,
=
where
m/s and =
/************************************************************************ UDF that computes the particle growth rate *************************************************************************/ #include "udf.h" #include "sg_pb.h" #include "sg_mphase.h" DEFINE_PB_GROWTH_RATE(growth_rate, cell, thread,d_1) { /* d_1 can be used if size-dependent growth is needed */ /* When using SMM, only size-independent or linear growth is allowed */ real G, S; real Kg = 2.8e-8; /* growth constant */ real Ng = 1.; /* growth law power index */ real T,solute_mass_frac,solvent_mass_frac, solute_mol_frac,solubility; real solute_mol_wt, solvent_mol_wt; Thread *tc = THREAD_SUPER_THREAD(thread); /*obtain mixture thread */ Thread **pt = THREAD_SUB_THREADS(tc); /* pointer to sub_threads */ Thread *tp = pt[P_PHASE]; /* primary phase thread */ solute_mol_wt = 74.55; /* molecular weight of potassium chloride */ solvent_mol_wt = 18.; /* molecular weight of water */ solute_mass_frac = C_YI(cell,tp,0); /* mass fraction of solute in primary phase (solvent) */ solvent_mass_frac = 1.0 - solute_mass_frac; solute_mol_frac = (solute_mass_frac/solute_mol_wt)/ ((solute_mass_frac/solute_mol_wt)+(solvent_mass_frac/solvent_mol_wt)); T = C_T(cell,tp); /* Temperature of primary phase in Kelvin */ solubility = 0.0005*T-0.0794; /* Solubility Law relating equilibrium solute mole fraction to Temperature*/ S = solute_mol_frac/solubility; /* Definition of Supersaturation */ if (S = 1.) { G = 0.; } else { G = Kg*pow((S-1),Ng); } return G; }
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
59
Important
Note that the solubility and the chemistry could be defined in a separate routine and simply called from the above function.
60
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
A.1. Description
You need to use DEFINE_HET_RXN_RATE to specify reaction rates for heterogeneous reactions. A heterogeneous reaction is one that involves reactants and products from more than one phase. Unlike DEFINE_VR_RATE, a DEFINE_HET_RXN_RATE UDF can be specified differently for different heterogeneous reactions. During ANSYS FLUENT execution, the DEFINE_HET_RXN_RATE UDF for each heterogeneous reaction that is defined is called in every fluid cell. ANSYS FLUENT will use the reaction rate specified by the UDF to compute production/destruction of the species participating in the reaction, as well as heat and momentum transfer across phases due to the reaction. A heterogeneous reaction is typically used to define reactions involving species of different phases. The bulk phase can participate in the reaction if the phase does not have any species (that is, the phase has fluid material instead of mixture material). Heterogeneous reactions are defined in the Phase Interaction dialog box.
A.2. Usage
DEFINE_HET_RXN_RATE (name,c,t,r,mw,yi,rr,rr_t) Argument Type char name cell_t c Thread *t Hetero_Reaction *r real mw[MAX_PHASES][MAX_SPE_EQNS] Description UDF name. Cell index. Cell thread (mixture level) on which heterogeneous reaction rate is to be applied. Pointer to data structure that represents the current heterogeneous reaction (see sg_mphase.h). Matrix of species molecular weights. mw[i][j] will give molecular weight of species with ID j in phase with index i. For phase that has fluid material, the molecular weight can be accessed as mw[i][0]. Matrix of species mass fractions. yi[i][j] will give molecular weight of species with ID j in phase with index i. For phase that has fluid material, yi[i][0] will be 1. 61
real yi[MAX_PHASES][MAX_SPE_EQNS]
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Appendix A. DEFINE_HET_RXN_RATE Macro real *rr real *rr_t Function returns void There are eight arguments to DEFINE_HET_RXN_RATE: name, c, t, r, mw, yi, rr, and rr_t. You will supply name, the name of the UDF. c, t, r, mw, yi, rr, and rr_t are variables that are passed by the ANSYS FLUENT solver to your UDF. Your UDF will need to set the values referenced by the real pointer rr. Pointer to laminar reaction rate. Currently not used. Provided for future use.
A.3. Example
The following compiled UDF, named arrh, defines an Arrhenius-type reaction rate. The rate exponents are assumed to be same as the stoichiometric coefficients.
#include "udf.h" static const real Arrhenius = 1.e15; static const real E_Activation = 1.e6; #define SMALL_S 1.e-29 DEFINE_HET_RXN_RATE(arrh,c,t,hr,mw,yi,rr,rr_t) { Domain **domain_reactant = hr-domain_reactant; real *stoich_reactant = hr-stoich_reactant; int *reactant = hr-reactant; int i; int sp_id; int dindex; Thread *t_reactant; real ci; real T = 1200.; /* should obtain from cell */ /* instead of compute rr directly, compute log(rr) and then take exp */ *rr = 0; for (i=0; i hr-n_reactants; i++) { sp_id = reactant[i]; /* species ID to access mw and yi */ if (sp_id == -1) sp_id = 0; /* if phase does not have species, mw, etc. will be stored at index 0 */ dindex = DOMAIN_INDEX(domain_reactant[i]); /* domain index to access mw & yi */ t_reactant = THREAD_SUB_THREAD(t,dindex); /* get conc. */ ci = yi[dindex][sp_id]*C_R(c,t_reactant)/mw[dindex][sp_id]; ci = MAX(ci,SMALL_S); *rr += stoich_reactant[i]*log(ci); } *rr += log(Arrhenius + SMALL_S) E_Activation/(UNIVERSAL_GAS_CONSTANT*T); /* 1.e-40 rr 1.e40 */ *rr = MAX(*rr,-40); *rr = MIN(*rr,40); *rr = exp(*rr); }
62
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
63
64
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Bibliography
[1] J. Abrahamson. Collision Rates of Small Particles in a Vigorously Turbulent Fluid. Chemical Engineering Science. 30. 13711379. 1975. [2] L. Austin, K. Shoji, V. Bhatia, V. Jindal, K. Savage, and R. Klimpel. Some Results on the Description of Size Distribution as a Rate Process in Various Mills. Industrial Engineering and Chemical Process Design Devices. 15(1). 187196. 1976. [3] J. Baldyga and W. Orciuch. Barium Sulfate Precipitation in a Pipe An Experimental Study and CFD Modeling. Chemical Engineering Science. 56. 24352444. 2001. [4] C. A. Coulaloglou and L. L. Tavlarides. Description of Interaction Processes in Agitated Liquid-Liquid Dispersions. Chem. Eng. Sci. 32. 12891297. 1977. [5] H. Dette and W. J. Studden. The Theory of Canonical Moments with Applications in Statistics, Probability, and Analysis. John Wiley & Sons. New York, NY1997. [6] R. B. Diemer and J. H. Olson. A Moment Methodology for Coagulation and Breakage Problems Part 3 Generalized Daughter Distribution Functions. Chemical Engineering Science. 57(19). 41874198. 2002. [7] M. Ghadiri and Z. Zhang. Impact Attrition of Particulate Solids Part 1. A Theoretical Model of Chipping. Chemical Engineering Science. 57. 36593669. 2002. [8] R. G. Gordon. Error Bounds in Equilibrium Statistical Mechanics. Journal of Mathematical Physics. 56. 655633. 1968. [9] K. Higashitani, K. Yamauchi, Y. Matsuno, and G. Hosokawa.Turbulent Coagulation of Particles Dispersed in a Viscous Fluid. Chemical Engineering Journal Japan. 16(4). 299304. 1983. [10] M. J. Hounslow, R. L. Ryall, and V. R. Marshall.A Discretized Population Balance for Nucleation, Growth, and Aggregation. AIChE Journal. 34(11). 18211832. 1988. [11] M. A. Hsia and L. L. Tavlarides. Simulation analysis of drop breakage, coalescence and micro-mixing in liquidliquid stirred tanks. Chemical Engineering Journal. 26(3). 189199. 1983. [12] M. Kostoglou, S. Dovas, and A. J. Karabelas.On the Steady-State Size Distribution of Dispersions in Breakage Processes. Chemical Engineering Science. 52(8). 12851299. 1997. [13] S. Kumar and D. Ramkrishna. On the Solution of Population Balance Equations by Discretization - I., A Fixed Pivot Technique. Chemical Engineering Science. 51(8). 13111332. 1996. [14] Hagesaether L., Jakobsen H.A.1, and Svendsen H.F. A Model for Turbulent Binary Breakup of Dispersed Fluid Particles. Chemical Engineering Science. 57(16). 32513267. 2002. [15] F. Lehr, M. Millies, and D. Mewes.Bubble-Size Distributions and Flow Fields in Bubble Columns. AIChE Journal. 8(11). 24262443. 2002. [16] J. D.Litster, D. J.Smit, and M. J.Hounslow.Adjustable Discretization Population Balance for Growth and Aggregation. AIChE Journal. 41(3). 591603. 1995. [17] H. Luo. Coalescence, Breakup and Liquid Circulation in Bubble Column Reactors. PhD thesis from the Norwegian Institute of Technology. Trondheim,Norway1993.
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
65
Bibliography [18] H. Luo and H. F. Svendsen. Theoretical Model for Drop and Bubble Breakup in Turbulent Dispersions. AIChE Journal. 42(5). 12251233,. 1996. [19] D. L. Marchisio, R. D. Virgil, and R. O. Fox.Quadrature Method of Moments for Aggregation-Breakage Processes. Journal of Colloid and Interface Science. 258. 322334. 2003. [20] B. J. McCoy and M. Wang. Continuous-mixture Fragmentation Kinetics Particle Size Reduction and Molecular Cracking. Chemical Engineering Science. 49(22). 37733785. 1994. [21] R. McGraw. Description of Aerosol Dynamics by the Quadrature Method of Moments. Aerosol Science and Technology. 27. 255265. 1997. [22] R. Moreno-Atanasio and M. Ghadiri. Mechanistic Analysis and Computer Simulation of Impact Breakage of Agglomerates Effect of Surface Energy. Chemical Engineering Science. 61(8). 24762481. 2006. [23] S. B. Pope. Probability Distributions of Scalars in Turbulent Shear Flow. Turbulent Shear Flows. volume 2. pages 716. 1979. [24] W. H. Press, S. A. Teukolsky, W. T. Vetterling, and B. P. Flannery.Numerical Recipes. Cambridge University Press. Cambridge, England,1992. [25] D. Ramkrishna. Population Balances Theory and Applications to Particulate Systems in Engineering. Academic Press. San Diego, CA,2000. [26] A. D. Randolph and M. A. Larson. Theory of Particulate Processes. Analysis and Techniques of Continuous Crystallization. Academic Press. San Diego, CA1971. [27] P.G. Saffman and J.S. Turner. On the Collision of Droplets in Turbulent Clouds. Journal of Fluid Mechanics,. 1. 1630. 1956. [28] M. Schmoluchowski. Versuch Einen Mathematischen Theorie der Koagulationstechnik Kolloider Lsungen. Zeitschrift fr Physikalische Chemie. 92. 129168. 1917. [29] R. D.Vigil and R. M.Ziff. On the Stability of CoagulationFragmentation Population Balances. Journal of Colloids and Interface Science. 133(1). 257264. 1989. [30] R. Fan, D.L. Marchisio and R.O. Fox. Application of the Direct Quadrature Method of Moments to Polydisperse Gas-solid Fluidized Beds. Power Technology. 139. 720. 2004.
66
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Index
A
aggregation, 7
N
number density function, 50 Number Density Function Dialog Box, 50
P
particle birth and death due to breakage and aggregation, 7 particle birth by nucleation, 18 particle growth, 6 particle state vector, 5 population balance birth by nucleation, 18 boundary conditions, 41 coupling with fluid dynamics, 43 DEFINE macros, 53 direct quadrature method of moments , 25 discrete method, 1 discrete methods, 18 dissolution, 6 generated DQMOM values, 37 installing, 29 interphase mass transfer , 44 introduction, 1 loading, 29 particle birth and death due to breakage and aggregation, 7 particle growth, 6 particle state vector, 5 postprocessing, 49 quadrature method of moments , 4, 24 reconstructing particle size distribution, 27 reporting, 49 setting up, 30 solution controls, 42 solution methods, 18 solution variables, 49 standard method of moments , 3, 22 theory, 5 UDFs, 53 using the model, 29 variables, 53 population balance equation, 6 Population Balance Model dialog box, 30
B
boundary conditions, 41 breakage, 7
C
conventions used in this guide, vi coupling with fluid dynamics, 43
D
DEFINE macros, 53 DEFINE_HET_RXN_RATE macro, 61 DEFINE_PB_BREAK_UP_RATE_FREQ, 54 DEFINE_PB_BREAK_UP_RATE_PDF, 55 DEFINE_PB_COALESCENCE_RATE, 56 DEFINE_PB_GROWTH_RATE, 58 DEFINE_PB_NUCLEATION_RATE, 57 direct quadrature method of moments, 25 discrete method inhomogeneous, 1 population balance, 1 discrete methods, 18 dissolution, 6 DQMOM generated values, 37
G
Generalized pdf for multiple breakage dialog box, 35 Ghadiri Breakage Constant for Population Balance dialog box, 35
H
Hamaker Constant for Population Balance dialog box, 34
I
installing the module, 29 introduction population balance, 1
Q
quadrature method of moments, 24 population balance , 4
L
loading the module, 29
M
moments, 49
R
reconstructing particle size distribution, 27 reporting, 49
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
67
Index
S
setting up the model, 30 Shape Factor for Parabolic PDF dialog box, 35 solution controls, 42 solution methods, 18 solution variables, 49 standard method of moments, 22 population balance , 3 Surface Tension and Weber Number for Population Balance dialog box, 34 Surface Tension for Population Balance dialog box, 33
T
theory, 5
U
usage, 29 user-defined functions, 53 hooking, 60 using this manual, v
V
variables, 53
68
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.