Professional Documents
Culture Documents
Division
Reactor Analysis
Division
Reactor Analysis
Division
Reactor Analysis
Division
Reactor Analysis C0MMIX-1AR/P:
Division A Three-dimensional Transient
Reactor Analysis
Division Single-phase Computer Program
Reactor Analysis
Division for Thermal Hydraulic Analysis
Reactor Analysis of Single and Multicomponent Systems
Division
Reactor Analysis
Division Volume 1: Equations and Numerics
Reactor Analysis
Division
Reactor Analysis
Division by R. N. Blomquist, P. L. Garner,
Reactor Analysis and E. M. Gelbard
Division
Reactor Analysis
Division
Reactor Analysis
Division
Reactor Analysis
Division
Reactor Analysis rvofSiTT a*
Division ANl-W Technital Ubror/
Reactor Analysis
Division
Reactor Analysis
Division
Reactor Analysis
Division
Reactor Analysis
Division
Reactor Analysis
Division
Argonne National Laboratory, with facilities in the states of Illinois and Idaho, is
owned by the United States government, and operated by The University of Chicago
under the provisions of a contract with the Department of Energy.
DISCLAIMER-
This report vi^as prepared as an account of work sponsored by an agency of
the United States Govemment. Neither the United Stales Govemment nor
any agency thereof, nor any of their employees, makes any warranty, express
or implied, or assumes any legal liability or responsibility for the accuracy,
completeness, or usefulness of any information, apparatus, product, or pro-
cess disclosed, or represents thai its use would not infringe privately owned
rights. Reference herein to any specific commercial product, process, or
service by trade name, trademark, manufacturer, or otherwise, does not
necessarily constitute or imply its endorsement, recommendation, or
favoring by the United States Government or any agency thereof. The views
and opinions of authors expressed herein do not necessarily state or reflect
those of the United States Govemment or any agency thereof.
ANL-90/45
raorwTT or
^ ftNL-W Technita! Librar/
July 1991
PREFACE
The documentation of the computer code COMMIX-lAR/P has been divided into
four volumes, each addressing different aspects of the documentation process and
written from different perspectives. A brief summary of the four volumes is as
follows;
The normal user will primarily use the information in Volumes 1, 2, and 4
and will be using a controlled configuration of the code. Volume 3 Is designed
as a consolidated source of reference material for those involved in the code
development effort.
lii
iv
TABLE OF CONTENTS
NOMENCLATURE "
ABSTRACT ^
EXECUTIVE SUMMARY ^
1. INTRODUCTION ^
3
1.1 Overview
1.2 Features ^
1.3 Organization of Report
2. GENERAL FORM OF CONSERVATION EQUATIONS '
3. CONTROL VOLUME ^^
5. PRESSURE EQUATION 34
6.1 Introduction 38
6.2 Geometrical Description 39
6.3 Conduction Heat Transfer 42
6.3.1 Governing Equation 42
6.3.2 Finite-Difference Formulation 43
6.3.3 Initial and Boundary Conditions 46
6.3.4 Solution '*1
6.3.5 Heat Transfer to Adjacent Fluid 48
TABLE OF CONTENTS (Cont'd)
. . • 50
6.4 Radiation Heat Transfer ^^
6.4.1 Governing Equations
6.4.2 Solution
... 56
7. TURBULENCE MODELING
56
7.1 Introduction ,,
7.2 Background on Turbulence Modeling
7.3 Two-Equation (k-c) Model
7.3.1 Transport Equations ^^
7.3.2 Boundary and Initial Conditions °2
7.4 One-Equation (k) Model
7.5 Zero-Equation Mixing-Length Model °°
7.6 Constant Turbulent Viscosity and Conductivity 67
8. PUMP MODELING ^*
8.1 Introduction ^^
8.2 Homologous Pump Model ^^
8.3 Specified Pump Speed Model ^1
8.4 Specified Pressure Increase Model 72
8.5 Interface with Rest of Code 72
vl
TABLE OF CONTENTS (Cont'd)
ACKNOWLEDGEMENTS ^°'*
REFERENCES ^"^
APPENDICES ^°*
13
3.1 Construction of Cell Volumes j^^
3.2 Placement of Variables on Staggered Grid . . • • ' ' : '
3.3 Main Control Volume around Point 0 and Neighbor Numbering . . . . . 15
3.4 Momentum Control Volumes s u • j
4.1 Control Volumes Showing Variable Placement: (a) M a m and ^^
(b) x Momentum , \ \, • j
4.2 Control Volumes Showing Convective Fluxes: (a) M a m and
(b) X Momentum
4.3 Control Volumes Showing Diffusive Fluxes: (a) Main and
(b) x Momentum 25
6.1 Definition of a Cylindrical Thermal Structure
Element Relative to the Flow Domain 39
6.2 Outer and Inner Surfaces of Several Thermal Structure Elements
in the Fluid Grid Structure 40
6.3 Four Quarter-Cylindrical Thermal Structure Elements
each Interacting with One Fluid Cell 40
6.4 Multiple Thermal Structures Interacting with a Single Fluid Cell . . 41
6.5 Material Regions and Gaps for a Typical Thermal Structure Element . 42
6.6 Partitions in Cross Section of a Thermal Structure Element 43
6.7 Energy Balance on Partition { of a Thermal Structure Element . . . . 43
6.8 Radiant Energy Interchange on Surface i 51
10.1 Cells Near Outlet Boundaries 82
10.2 Recommended Surface Arrangements for Pressure Boundary Conditions . 85
10.3 Finite-Thickness Wall Boundary 89
A.l Quarter-Pin Partitioning of a 19-Pin Fuel Assembly
in a Hexagonal Duct ^^0
A.2 Full-Pin Partitioning of a 19-Pin Fuel Assembly
in a Hexagonal Duct ^IQ
A. 3 Typical Arrangement of Helical Wire Wrap 113
A.4 Cross Section of a Helical Wire Wrap around a Fuel Pin 113
B.l Coarse Mesh Rebalancing Regions 120
vlli
LIST OF TABLES
NOMENCLATURE
NOMENCLATURE ( C o n t ' d )
velocity compc
n z direction
P
r.rnS»c. "" s.e..»
pump
ing pump operating state
radian value i
coordinate in Cartesian system Tf, Ti,» 'm
i-direction sp-
• direction i (general) . „aii shear stress
wall shear s^^ — -
spatial coordinate m direc ion
^ . m a t e in Cartesian system ^. m fluid energy equation
J.direction spatial coordina . „ , „ , cylindrical viscous dissipation rate . ;. C or h ) i
. oatiat coordinate in Cartesian and cy
k-direction spatial c
systems
xiii
COMMIX-lAR/P: A THREE-DIMENSIONAL TRANSIENT
SINGLE-PHASE COMPUTER PROGRAM
FOR THERMAL HYDRAULIC ANALYSIS
OF SINGLE AND MULTICOMPONENT SYSTEMS
by
ABSTRACT
EXECUTIVE SUMMARY
The COMMIX (COMponent Mixing) computer codes are designed for analyzing
steady-state and transient aspects of fluid flow and heat transfer in three
spatial dimensions. Code versions in this series having a "1" in the suffix
(i.e. COMMIX-1, -lA, -IB, and -lAR/P) are for single-phase fluids having limited
compressibility.
The material properties for the fluids and embedded solids, heat transfer
coefficients, and friction factors are assumed to have various basic forms for
which the user supplies coefficients. In some cases, the user may supply the
coding to override these basic forms. Detailed fluid property packages are
included for liquid sodium, liquid water (both normal and heavy) , and helium gas,
as well as a library of friction factors for specific applications.
1.1 Overview
The COMMIX (COMponent MIXing) computer codes are intended for steady-state
and transient analysis of fluid flow and heat transfer in three dimensions.
Although primarily developed for nuclear reactor applications, COMMIX can be used
to analyze the fluid behavior in other engineering systems.
The development of COMMIX began in 1976 and resulted in the release of the
COMMIX-1 computer code (Ref. 1). This version introduced the concepts of volume
porosity and directional surface porosity for modeling fluid flow in complicated
geometries containing distributed solids, defined the basic conservation
equations to be used for single-phase fluids, developed the finite-differencing
techniques to be used in Cartesian geometry, and established the overall
framework of the computer code. Special modeling techniques for hexagonal
bundles of wire-wrapped fuel pins were included. The formulations of the
conservation equations were explicit in time.
Two development paths were followed after COMMIX-1. One of these paths
led to the development of COMMIX-2 (Ref. 2), which extended the COMMIX-1 modeling
techniques to two-phase fluids. The other path continued development of the code
for single-phase fluids and resulted in code versions denoted COMMIX-lx.
The continued development of COMMIX over the years has had two major
purposes: (1) the addition of modeling to augment the computer code's range of
applicability to various systems, and (2) the improvement of the numerical
methods, particularly with respect to reducing the computer time required to
perform the simulation of a transient. The first of these two purposes has
generally been driven by the changing needs of the classes of problems for which
three-dimensional analyses are needed. The second purpose has followed naturally
as attempts are made to analyze increasingly more complex geometries in
sufficiently fine spatial detail. Consequently, COMMIX has become a rather
general purpose computer code with a wide range of applications.
1.2 Features
Two options are available for the fluid equation of s'ate: detailed and
simplified. The detailed properties are provided by a group of FUNCTION
subprograms containing high-order fits to physical property data; packages are
available for liquid sodium, liquid normal water [lA], liquid heavy water
[lAR/P], and helium gas [lAR/P], The simplified properties take the form of
linear functions of temperature, to which the user inputs the coefficients [lA].
A suboption within the simplified properties allows the density to be calculated
from the ideal gas law rather than being a linear function of temperature
[lAR/P], In a multifluid problem, only one fluid may use detailed properties;
all other fluids must use simplified properties.
Physical properties for the solids used in thermal structures and duct
walls are second-order polynomials in temperature to which the user inputs the
coefficients for each solid [lA]. The user may, optionally, supply FUNCTION
subprograms to describe the thermal conductivity and specific heat capacity for
solids in order to circumvent the limitations imposed by the basic second-order
form [lAR/P].
Heat transfer between the surfaces of solids (duct walls and thermal
:) and the fluids involves
structures) involve.-! the
the use nf surface
i.oo of o,,,-<;.,„„ heat
i . .c_„
transfer
coefficients. A basic functional form has been assumed for these heat transfer
coefficients which involves the Reynolds [1A,1AR/P] and Prandtl [lAR/P] numbers
of the fluid and a set of user-supplied constants for each fluid/structure
interface The user may, optionally, supply a FUNCTION subprogram to describe
basic form [ m / p " " ' " correlations which are not adequately described by the
ence model.
The formulation in COMMIX uses the same <:ol,,n
in both steady-state and transient mode T t i l e l T ''""'"" ' ° ' calculations
order to advance the equations through a calcul^Mo i ^ ^ " """"' ^^ selected in
The user may specify the time-step size dUect^v v, ^''"''^ '" "^'^^^ " ° ^ " •
internally using a Courant-based [Ul or rsfo „f \.°^ ^^^ '^°'^^ compute it
"J rate-of-change-based [lAR/P] formula.
Within a time step, the fluid conservation equations are solved in blocks.
Within each block, the same type of equation is solved for all fluid cells
simultaneously [lA] to retain the implicitness of the finite-difference
formulation. Each type of equation for each cell has the same general form,
which usually has the quantities in a given cell related to the quantities in the
six nearest neighbor cells (i.e. one cell in the minus and plus direction for
each spatial coordinate direction). These sets of equations are assembled into
a matrix formulation (A)*(x)-(b), where (A) is a (sparse) coefficient matrix of
knowns, (b) is a known vector, and (x) is the vector of unknowns (one unknown for
each mesh cell). These matrix systems are solved using successive-overrelaxation
[1A,1AR/P1 or conjugate-gradient [lAR/P] techniques; both of these techniques are
iterative. The pressure equation, which results from a combination of the mass
and momentum conservation equations, should generally be solved using the
conjugate-gradient technique; if the successive-overrelaxation technique is used,
then the mass rebalancing scheme [lA) should generally be used to accelerate
convergence. The successive-overrelaxation technique is always used to solve the
equation systems which correspond to the conservation equations for energy,
turbulent kinetic energy, and turbulent kinetic energy dissipation rate.
The solution methods used for the temperature fields in thermal structures
are somewhat different. Within a thermal structure, the conduction equation
results in a matrix system for which the coefficient matrix (A) is tridiagonal;
this system is solved by a process of forward elimination followed by back
substitution, which is noniterative. The matrix system to be solved for the
radiation heat fluxes does not necessarily have a nice banded structure for the
coefficient matrix (A); the system is solved by direct inversion of the
coefficient matrix.
The International System of Units (SI) is used COMMIX (i.e. base units of
meter for length, kilogram for mass, and second for time) except that degree
Celsius (rather than kelvin) is used for temperature. The other units used in
COMMIX are derived from the base units and include newton for force, pascal for
pressure, joule for energy, and watt for power.
With the above features, COMMIX may be used for simulations of both simple
and very complex problems. Single component applications have included laminar
and turbulent flow through straight pipes, bundles of fuel pins, and coolant
mixing in plena of nuclear reactor vessels. A typical multicomponent application
is the use of COMMIX to model the complete primary system of an advanced
liquid-metal cooled reactor design, including the fuel assemblies, reactor vessel
plena, intermediate heat exchanger, primary pumps, and passive cooling of the
reactor vessel exterior by natural circulation of air.
This volume presents the models used in the COMMIX-lAR/P computer code,
covering the basic equations, underlying assumptions, and solution techniques.
interfctlont h't''"'
interactions between 'the
r ^ Afluid
' ^ T ' and
'/"' ' '""^ ^'"^"^
submerged resistance model for momentum
solids.
The conservation equations for mass, momentum, and energy of the fluids
in COMMIX possess a common form (Ref. 3 ) , which, in Cartesian coordinates, is
given by
* V S (2.1)
where * stands for the "variable of conservation"; u, v, and w are the velocity
components in the x-, y-, and z-directions; >„ is the volume porosity (i.e., the
fraction of the physical volume occupied by fluid); 7,, >,, and 7^ are the
directional surface porosities (i.e., the fraction of the areas through which
fluid may flow); p is the fluid density; t is time; r^ is the diffusion
transport coefficient; and S,^ is the source term on a volumetric basis.
The source term also depends on the specific equation; these are shown
symbolically in Table 2.1 for each equation. The mass conservation equation has
no source term. The gravity and pressure-gradient terms in the momentum equation
are straightforward as presented in Table 2.1; the viscous diffusion term is only
nonzero at a boundary surface when one of the nonconstant turbulence models is
being used and is described in Sec. 7.3.2; the distributed resistance term is
described in Sec. 9.4; the pump pressure terra is described in Sec. 8.5. The
internal heat generation in the energy equation is supplied by the user; the
thermal interaction with submerged solids is described in Sec. 6.3.5; the
substantial derivative of pressure and the dissipation term are currently
Ignored.
The same general form of Eq. 2.1 may also be used in a cylindrical
coordinate system, using the transformations in Table 2.2. Generally, x, y, and
z are replaced with r, 9, and z, respectively. Changes in the second spatial
coordinate. Ay, are replaced with rA9, to retain the dimensions of length;
similarly, the partial derivative with respect to y, a()/3y, is replaced with
1/r d()/d6. The additional convection and diffusion terms which arise in the
momentum equations (due to the unit vectors in polar coordinates being a function
of position) are moved to the source term in order to maintain the same base form
for Cartesian and cylindrical coordinates. The components of the gravitational
acceleration vector, g, are a function of angular position and are calculated
internally by the code from the user-input Cartesian components.
Table 2.1 Source Terms in the Cartesian Coordinate System
Diffusion Source
Variable Coefficient Term
Equation Direction
Continuitv Scalar 1 0
Momentum
(i) X u V^ P,.-v.-...(A£)^_-(i)
(ii) y V (t
(ill) z w v^ PSz - V,
Cartesian Cylindrical
General:
(x,y, z) (r, d, z)
A A a A lA A
dx ' dy ' dz
dl ' r dd' dz
Ax,Ay, Az
Ar,rA0,Az
U=Ux
u=u,
V=Uy
V=U9
w=u.
Source Terms in Momentum
Equations:
g^ = C O S (0) g^j + s i n (0)gy (*)
gx
gg= - sin(6)g^ + cos(0)gy (*)
Sy
g^ gz
Vx. V . V Vr . Ve , V,
' "y ' z
R,,. Ry ' Rz Rj , Rj , Rj
In the forms stated, the general conservation equations describe the time-
dependent behavior of a viscous, Newtonian fluid of limited compressibility
having spatial distributions of its properties in three dimensions, allowing for
thermal and momentum interactions with embedded solids. The conservation
equations given by Eq. 2.1 reduce to the more familiar conservation equations for
a continuum domain when the volume and directional surface porosities are set to
1 and there are no distributed resistances or heat sources, viscous boundary
diffusion terms, or pumps.
The common form of the conservation equations for all fluid variables
simplifies the finite-differencing and other aspects of the solution process.
The set of equations given by Eq. 2.1 and Table 2.1 constitute a set of
5 coupled equations (mass, energy, and three momenta) in 6 unknowns (u, v, w, p,
P, and h ) . The sixth equation needed to complete the set is the equation of
state, having the form
p = f (h,P) . (2.2)
r* = W t Mr*)t • (2.3)
The laminar part of this diffusion coefficient comes from the equation of state
information. The turbulent part of this diffusion coefficient is a function of
the fluid state and the velocity field; it may be supplied by the user as input
or calculated as a function of space and time using one of the turbulence models
in the code (cf. Sec. 7 ) .
CONTROL VOLUME
and Xi (or r j and yj (or 6^) are defined in the same manner.
4y,
a grid point and the three directional surface porosities are associated with the
different cell faces. This placement of variables is illustrated in two
dimensions in Fig. 3.2. The x- (or r-) direction component of velocity (u) is
defined at the center of the cell face which separates grid point location
(i,j,k) from grid point location (1+1,j,k); the y- (or 6-) direction component
of velocity (v) is defined at the center of the cell face which separates grid
point location (i,j,k) from grid point location (i,j+l,k); the z-direction
component of velocity (w) is defined at the center of the cell face which
separates grid point location (i,j,k) from grid point location (i,j,k-t-l).
f
—»- • — —— • — - • - •
1 — i j + 1
f i
1
1
1 1
—^ • —-^ • —-^ • — .
(
y 1
ik —.- • — —^ • -.- • - j - 1
(
1
t
1 - 1
1
*• X
i
1 i + 1
u
V
• Other variables
Fig. 3.2. Placement of Variables on Staggered Grid
The control volume for a field variable is shown in Fig. 3.3 and the
notational convention used to refer to the surrounding control volumes and cell
faces IS given in Table 3.1. These control volumes are denoted the "main control
volumes" in later sections of this report. The control volume is constructed
around grid point 0 at location indices (i,j,k). The faces of this control
15
volume are planes of separation between this control volume and the six nearest
neighbor control volumes. The cell volumes to the west and east contain,
respectively, grid points 1 and 2 at location indices (1-1,j,k) and (i+l,j,k);
the cell volumes to the south and north contain, respectively, grid points 3 and
4 at location indices (i,j-l,k) and (i,j+l,k); the cell volumes below and above
(not shown in Fig. 3.3) contain, respectively, grid points 5 and 6 at cell
location Indices (i,j,k-l) and (i,j,k+l).
i-1 i +1
Fig. 3.3. Main Control Volume Around Point 0 and Neighbor Numbering
If solids are immersed in a fluid cell, the user must input the volume
porosity (0 < 7^ < 1) to indicate what fraction of the cell volume is occupied
by fluid; the default assumption is that the cell volume is completely filled
with fluid (,y„ - 1 ) . Similarly, if the presence of solids obstructs the fluid
flow area of a cell face, the user must input the directional surface porosities
(0 < Ti < 1, for i- X (or r ) , y (or $), z) to indicate what fractions of the cell
face areas are open for fluid flow; the default assumption is that the cell face
areas are completely open to fluid flow (7^ - 1, for i- x (or r) , y (or 8), z ) .
All of these porosities are allowed to be spatially dependent. The thermal and
momentum aspects of injnersed solids are discussed in Sec. 6 and Sec. 9.4,
respectively.
The control volume for each velocity component is displaced from the main
control volume in the velocity component direction, extending from grid point to
grid point and encompassing the cell face upon which the velocity component is
defined. The other four faces are coincident with the faces of the main control
volumes; however, each of these four faces is composed of half of the face of two
different main control volumes. This is illustrated for i- and j-direction
control volumes in Fig. 3.4. These control volumes are denoted the "momentum
control volumes" in later sections of this report. Each momentum control volume,
thus, consists of half of two adjacent main control volumes. Grid points 0
through 6 have the same relative meanings (i.e., center, west, east, south,
north, bottom, and top) as for the main control volume; however, the specific
spatial indices are different and are defined in Tables 3.2 through 3.4.
y moinentuni
Control Volune"
X momentum
Control Volume
4. FINITE-DIFFERENCE FORMULATION
: . . J * 1
J - 1
(b) X Momentum
gives
Vjt, = Yv A x A y A z (4.2)
is the volume of fluid in the main control volume surrounding point 0, At is the
time step size (i.e. t - t""^) and the superscript n-1 refers to the known old
time-step values. The new time-step values are written without a superscript (it
would be n) for notational simplicity in this and the remaining equations.
The geometrical differences between momentum and main control volumes and
the differences between definition points for field and flow variables leads to
differences in the integrated forms of the terms in the conservation equation for
the two control volumes. The unsteady term is processed by applying the chain
rule of differentiation to the integrand and then performing the integration to
give
/ A ( Y ^ P 4 , ) dxdydz = / ( p - ^ + <I>|^)YV d x d y d z
=[(^(nr)*(*¥^)(^)) (4.3a)
where the bar over a field variable is used to denote that the value to be used
must be for the momentum control volume rather than the main control volume for
which it is nominally defined. The fluid volume and density for a momentum
control volume, thus, must be defined as averages of the fluid volumes and
densities in the two adjacent main control volumes which are intersected by the
momentum control volume. The specific averages used for an x-momentum control
volume (cf. Fig. 4.1b) are
Po = Pi. (4.5)
AXH + Ax, ,
=p (4.6)
J-
At at (4.7)
21
With these assumptions, the Integrated form of the unsteady term for a momentum
control volume may be written as
Po . if^o (4.3b)
/•^(Y,P*) dxdydz-' <l>o- At 2latj
At 2l at
4 »24
j ^ 1 -1-
4 f. U
1
j-l- -
II m4 ^ f ? - '"2
L
i
|_3
(.-•-:-
1 _, i - 1 i i t 1
L . i'-1 i +1
(LI) X ,";nillL-lllUl.l
(0) Main
The quantity F is the mass flow rate (i.e., the product of density,
velocity, and flow area) across the surface of the control volume; for example,
the flow rate across the east surface is given by
and the mass flow rates for all six faces are shown in Table 4.1.
^1 = (^Jl-l/2,^..<P>°
^2 •• i^A.U2.i..'P>°
^^ •• (^^)i,^.l/2.K<P>2
^= •• ("^^)i,3,.-l/z<P>0
^^ •• ^A^)i,3,K.l//P>°
where the symbol | A , B | designates the greater of A and B. The form given by Eq.
4.11b is also advantageous since its use results in vectorizable coding.
/ [i^c-p^*)*-|;(''yp''*)"i<^^p''*)l '^^y'^^
= [|0, FJ + lO.Fjj + 10, F J
/ [-|^(^xP"*)^-|^(''vP''*)*-^(Y^p''*)l ^"^y^^
= [HO, F j + |0, FJI + 10, F j
As was the case for the unsteady term, a bar over a quantity (in this case, the
mass flow rate) denotes an average of quantities nominally defined for main
control volumes.
The x-direction momentum control volume depicted in Fig. 4.2b will be used
to illustrate several examples of the averaging processes used to define mass
flow rates for momentum control volumes. Since the west and east faces of this
momentum control volume are located between the faces of main control volumes,
the i-direction mass flows rates for these two faces of the momentum control
volume will be defined by averaging the volume flow rates for the two main
control volume faces which are on either side of the momentum control volume face
and multiplying by the density of the main control volume in which the momentum
control volume face is located; for example, the mass flow rate across the west
face of the momentum control volume in Fig. 4.2b is the average of the volume
flow rates across the west and east faces of main control volume 0 multiplied by
the density of main control volume 0, or
(4.13)
h = |[(^)i-i/a,i,k M^xK.,/,,,,,]Po •
24
Since the j- and k-direction faces of this momentum control volume each coincide
with half of two different main control volume faces, the mass flow rates in
these two directions for the momentum control volume will be the sum of the mass
flow rates across the two half faces of the coincident main control volume faces.
For example, the mass flow rate across the north face of the momentum control
volume in Fig. 4.2b is the sum of half of the mass flow rates across the north
faces of main control volumes 0 (F^) and 2 (F24) , or
F4 = I F . + 1^24 • (^-H)
In a similar manner, the mass flow rate across the top face of this momentum
control volume (not shown in Fig. 4.2b) is the sum of half of the mass flow rates
across the top faces of main control volumes 0 (F,) and 2 (F24), or
The mass flow rates appearing on the right-hand sides of these last two equations
are defined using the method given in Sec. 4.2.1. The mass flow rates for all
six faces of an x-direction momentum control volume are given in terms of base
variable definitions in Table 4.2.
F • 1
^ = 2 [("'^x)i-l/2,i,.M^x),.,,,,,.JP0
^^ •• l[('^^«)i.l/2,i,K^(^x)i.3,,,,,,]P.
^3 = i K)i,i-i/...<P>o + (vA,K.,,,_,,,,,<p>f ]
^. = i K)i,i.i/.,K<p>? Mv\),,,,..,,,,,<P>L]
^^ •• \ [(^^^)i,i,..l/2<P>° - («Mi.l,3,K,l/.<P>26]
25
- D3*((J.o-<l>3)+Df((t),-*o)-D5(4>o-«t>s)
(4.16)
- ( D * + D ? + D * + D j + D* + D*)(t)o •
j +1
j -1
(S) X 'lor^entJT
(a) Main
AXi/2 + AXi.i/2
(r*)e«,2
AXi/2 AXi,i/2 (4.17)
(r*)o (r»)2
The diffusion strengths for all six faces of the main control volume are
shown in Table 4.3.
D* Ax Ax
'1-1/2,i,k 2r,• / i 2r„
Ax Ax)
°* = (^x)l.l/3,,,. 2r.• Vo 2rJ2
.Ay)
^ * •• (^)i..-l/2
2rJ3 2rJo
°* = (^)i,,.l/2..
tl- .Ay)
2rJ,
D* : (A,i Az Az
^ ^'i,j,k-1/2 2r, 2r„
Az^l Az
'' •• (^^)M,.n/
2rJ„ 2r,
- ^ • + Df + D ? + D t + D t + D*)<t.o . (4.18)
As was the case for the convective terms, the only difference between the forms
of the diffusion terms for the momentum and main control volumes is the use of
a bar over the coefficients to denote that the quantity is for a momentum control
volume.
A different procedure is used for the other two directions. Since the j-
and k-direction faces of this momentum control volume coincide with half of two
different main control volumes, an average diffusivity is first calculated for
the momentum control volume on each side of the face by averaging the
diffusivities for the main control volumes which are intersected by each momentum
control volume; for the north face of the momentum control volume shown in
Fig. 4.3b, these would be
in the adjacent momentum cell to the north. These two diffusivities are then
used In a harmonic interpolation to get the effective diffusivity for the
surface; for the north face of the momentum control volume shown in Fig. 4.3b,
this would give
_ A y , / 2 + Ay,.,/2
(^•)eff,4 - Ay3/2 ^ Ay^.,/2 ' (4-21)
The area in the diffusion strength is half of the areas of the two main control
volume faces which form the momentum control volume face; for the north face of
28
the momentum control volume shown in Fig. 4.3b, this would be [(Ay)ij+i/2,k +
(Ay)i+i,J+1/2,kl/2- The separation distance is the distance between the centers of
the adjacent momentum cells, which is [Ayj + Ayj+i]/2 for the north face of the
momentum control volume shown in Fig. 4.3b.
assumed ' to
t conform
c r ^ o ™ ItoT '" ''^ ^^""^^ ^°™ °^ ' ^ ^ c o n s e r v a t i o n equation is
The main control volume is used for the mass, energy, turbulent kinetic
energy, and turbulent kinetic energy dissipation rate conservation equations.
The source terms for the mass and energy conservation equations are given in
Tables 2.1 and 2.2.
The energy equation (for which * is h) has several source terms. The
Internal heat generation term, q", is part of (5^^)^ since it is not a function
of 0. The structure-to-fluid heat transfer, q^,, contributes to (Sc^)o and to
(Sp*)o »"d (S^)t depending on the solution technique selected (cf. Sec. 6.3.5);
this is the only term in any conservation equation which uses the summation term
in Eq. 4.22, the summation representing the coupling of fluid cell enthalpies due
to heat transfer through a thermal structure. The DP/Dt and « terms are
neglected in the present code version (as was the case in prior versions (Refs.
1, 3, and 5)).
The source terms for the two turbulence equations are discussed in Sec. 7.
The integrated form of the source term for the main control volume, thus,
may be written as
(4.23)
There are several source terms which are common to each direction's
momentum equation (for which 4 is either u, v, or w). The gravitational
acceleration (g) is constant and is multiplied by the density of the momentum
control volume (Eq. 4.5) to become part of (S,^)^. The pressure increase
supplied by a pump ((AP/L)p as defined in Sec. 8.5) is constant over a momentum
control volume and becomes part of (S^,^);,. The distributed resistance (friction)
terms (R,, Ry, Rj as defined in Section 9.4) involve the velocity in the cell;
the velocity in the direction to which the momentum equation is being applied is
factored out of the term and the remainder of the term becomes part of (S^)^
(cf. Sec. 9.4). The special momentum terms arising in hexagonal fuel assemblies
(cf. Appendix A) are treated as distributed resistances. The viscous diffusion
terms (V,, V , V^ as defined in Sec. 7.3.2) only appear for momentum control
volumes which' are adjacent to a zero-slip boundary surface when one of the
nonconstant turbulence models is used; these terms involve the velocity; after
factoring out the velocity, the remainder of the term becomes part of (Sp^)„.
The normal pressure term is treated separately, rather than being part of
either S^s or Spj. After integration over the momentum control volume, a term
30
results which contains the difference in pressures at the grid points in the main
control volumes which intersect the momentum control volume.
The integrated form of the source term for the x-direction momentum
control volume, thus, i. ay be written as
- -. (P2-P0) • (4.24)
-(AXi + Ax,,,)
Similar expressions result for the y- and z-direction momentum equations, with
P2 replaced by P4 and P^ (which are the pressures at the grid points which are,
respectively, north and above grid point 0) and the Ax terms replaced with Ay and
Az for the appropriate positions.
The individual terms are given by Eqs. 4.1, 4.8b, 4.16, and 4 23 and
substitution into Eq. 2.1 gives the following form
+ E (a.**,) + b * , (4.25)
||0,Fj|+Df+(Sp^)^V£„ I|0,FJ|+D*
10, -Fjl+D*
a* 80, -Pj*Dt*{S^)yto
||0,F3l+D*+(Sp^)3V£„
|0,F3l+D*
|10,Fj|+D|'+(Sp^)^V„ |0,F5«+Dt
a* {=7,...,L
not applicable
Dp At (Sc»)o .4(f)-]«-..,s.,.|.
1 0 , - F J + 1 0 , F2 1 + II 0 , - Fj 1 10, - F j + | 0 , F 2 l + 10, -F3II
a*(l)
E^.* P° - (S ) + E B? + t 2\ dt ) (Sp*)o
1-1
not a p p l i c a b l e
a*(2) E [af-(Sp*),V,o]+ - ^ - ( S p * ) o
(2nd form)
32
Coefficient af has been written in two forms in Table 4.5. The first form
is the direct result following the substitution process described in the
preceding paragraph. The second form results from subtracting the continuity
equation from the first form. The continuity equation comes from Eq. 4.25 with
1^-1 and using coefficients from Table 4.5 with all D-0 and all S-0; with these
substitutions, the continuity equation may be written as
+ 1 0 , F J | + 10, -F5l + | | 0 , F J |
1 0 , F J | + 10, -F2l| + | 0 , F 3 | |
,n-lT
+ | | 0 , - F J | + 1 0 , F J | + 10, -FJI+ •^\'°} =0 . (4.26
Note that the first density term in the above equation is at the new time and the
second density term is at the old time. The second form of ag'* is then computed
by subtracting this equation from the first form, or
This second form of af may be used in formulating the two turbulence equations
and the energy equation, since these three equations are constructed and solved
after the continuity equation has already been satisfied in the solution sequence
(cf. Sec. 11.2) used in COMMIX.
The individual terms are given by Eqs. 4.3b, 4.12, 4.18, and 4 24 and
substitution into Eq. 2.1 gives the following forms for the x-, y-,' and
z-direction momentum equations:
ao"uo = ai"u^+a2"u2+a3"u3+a4"u,+a5"u5+a6"u5+bo"
aoX = aiX+a2''v2+a3V3+a4X+a5"v5+a6X+bo"
where the a and b terms are given in Table 4.5. The conservation equation for
a momentum control volume, thus, has the same general form as that for the main
control volume except for the appearance of the pressure gradient term. These
pressure gradients are included as separate terras, since the pressure is neither
known beforehand in the solution sequence (cf. Sec. 11.2) nor can it be
eliminated in terras of other known quantities. Thus, pressure must be regarded
as an unknown and will be determined from the constraint that the velocity field
must satisfy the continuity equation (cf. Sec. 5).
Only the first form for a^ is shown for the momentum equations in
Table 4.5. Use of the second form, which is acceptable for the main control
volume equations, could Introduce inconsistencies in the momentum equations,
since the continuity equation may not be satisfied at the point in the
calculational sequence where these coefficients are calculated.
34
5. PRESSURE EQUATION
The equation for conservation of mass (continuity) for the main control
volume around point 0 (cf. Fig. 4.1) is found by using the general
finite-difference form from Eq. 4.25 with the following substitutions: variable
4-1, diffusion strengths D-0, and source S-0. In Cartesian coordinates, these
substitutions result in
-(M)i,3-l/2.k<P>° M^V),,3.1/2,k<P>°
where the fluid volume (V^Q) , the flow areas (A), the velocities (u, v, and w ) ,
and the upwind density (<p>) are all defined in Sec. 4. This same equation
holds for cylindrical coordinates with the variable substitutions indicated in
Table 2.2.
The velocities appearing in Eq. 5.1 may be replaced with functional forms
involving pressure which result from the momentum equations presented in
Sec. 4.5.2. For this purpose, the momentum equations, Eq. 4.28, may be written
in the following form
(t.=$-a*AP (5.2)
for 0=u, V, and w. The velocities on the six faces of the main control volume
surrounding point 0, thus, may be written as
i) ' (5.3a)
^3 - d ^ P o - P3) - (5.3c)
Po) . (5.3d)
T (aUt) + bo
= _ ^-i (5.4)
a;
The a and b terras used in Eq. 5.4 are given in Sec. 4.5.2, and the d terms used
In Eq. 5.3 are defined in Table 5.1.
Po - PV . i^Y'^ (5.5)
At I 5t j
This is the same approximation which was used in Sec . 4.1.2 for the unsteady term
in the momentum equation.
Substitution of the velocities given by Eq . 5 . 3 and the density derivative
given by Eq. 5.5 into the continuity equation given by Eq. 5.1 results in the
following pressure equation
where the coefficients a and b are given in Table 5.2. Equation 5.6 has the same
form as the general finite-difference equations presented in Sec. 4.5 for the
main (Eq. 4.25) and momentum (Eq. 4.28) control volumes. The system of these
pressure equations for all main control volumes will be solved simultaneously
using iterative methods. The pressure solution is then substituted into Eq. 5.3
to calculate the velocities. Further details of the solution sequence are given
in Sec. 11.2.
a' = (Ax)i.,/2,:.k^"<P>o
^^' •• (Ax)i.,,2,3,k^2"<P>2
^' = (^)i.,-l/2,k^3^<P>0
^" •• (^)l,3n/2,k^^^<p>^°
ai : \IA\. . ^ , a5"<p>^
^'1,3.k-1/2 5 r g
^6 = (A,). . . , a"<p>°
^ ^'i.],k*l/2 6 r- 6
..P P p p p p p
ao : ai + aj + a3 + a^ + as + a /
bo^ = -^"(^f'MAxaw,,,k<P>o-(Axfl),,,,2.,.k<P>°
(M)l,,-l/2,k<P>0-(V),,,,.;2,k'<P>5
(^A,,,k-1/2<P>0-(M),,,,,.,,2<P>°
The system given by Eq. 5.6 defines the pressure field satisfying the
momentum and mass conservation equations. Of course pressures, P*, obtained
during the iterative solution process never satisfy this equation exactly.
Instead they satisfy the identity
ajp„' - alP,' - alP,- - alP,- - aJP," - a^^P^- - afp,' - bJ = «p,o , (5.7)
where 6p o is the mass residual for the main control volume surrounding point 0.
The iterative solution process obtains a solution for the pressure field which
minimizes the mass residuals to a user-specified degree. If the momentum and
mass conservation equations were satisfied exactly, the mass residual would be
zero.
38
6.1 Introduction
- Each structure may consist of more than one type of material, arranged
in layers and separated by gaps. The thickness of each material may be
subdivided into a number of nodes.
- The structure exchanges heat with the fluid, through the use of
convection heat transfer correlations, at either or both of the
structure's surfaces which have the same surface normal vector as the
direction in which the conduction equation is being solved within the
structure.
- Radiation heat transfer may occur among the surfaces of various thermal
structures. The intervening fluid is assumed to be transparent to
thermal radiation.
The user has a rather high degree of flexibility in preparing the input to
describe thermal structures, including the specification of geometry,
composition, fluid-structure and gap heat transfer coefficients, material
properties and radiation heat transfer view factors; the details of this input
are covered in the User's Guide (Ref. 9 ) .
AZ
-ELEMENT Of
A STRUCTURE
Each thermal structure element has two surface elements: inner and outer.
It is through these surfaces that a thermal structure element exchanges heat with
a fluid (by convection) or with another thermal structure element (by radiation).
40
Symmetry Line/Plane,
^/
//)
® 0
0
FLUID
FLUID
SURFACE 1
where T, p , and Cp are the temperature, density, and specific heat capacity of
the material, r is the position coordinate (and is only truly a radius for
J,l,r,tT \ t = P ^ " ^ = ^1 t^"-"^! structures), A is the area whose unit normal
Iflux^ % X T ' ' ^ ' " " i " " " -^^ q i= the heat transfer rate per unit area
Ulux;, q IS the heat generation rate per unit volume, and t is time
43
Figure 6.6 shows the cross section of a typical thermal structure element
under consideration. Each element is divided into a number of material regions,
and each material region is further divided into a number of partitions.
1 i 1 1
. • • •
T, T, T, \
Figure 6.7 shows a single material partition f and its two neighbors. The
energy equation when integrated over material partition f becomes
(5.2)
(A,.i/2q(.i/2 - A,.i/2q(-i/2) * Q . v ,
where superscript n-1 denotes a value from the end of the previous time step and
absence of a superscript denotes a value at the end of the current time step (n) .
The surface area between two material partitions, Af, used in Eq. 6.2
depends on the geometry and location of the thermal structure and is given by
where Ax^ is the spacing of the fluid coordinate grid in the i-th spatial
direction at the location of the thermal structure and RODFR allows for multiples
or fractions of the basic thermal structure shape to be included. The exact
directions associated with II, 12, and 13 depend on the orientation of the
thermal structure; further details are in the User's Guide (Ref. 9 ) . The volume
of a material partition, V(, used in Eq. 6.2 is given by
V, = A, A r (6.4)
where QK is a spatial shaping function, f„£ is the nf-th transient function, and
q^Q is a reference volumetric heat source. The index 14 refers to a spatial
location in the fluid coordinate grid system; its exact meaning in terms of i,
j , or k depends on the orientation of the thermal structure element; further
details are in the User's Guide (Ref. 9 ) .
The differencing of the two heat flux terms in Eq. 6.2 depends on the
location of the partition boundaries; there are four cases to be considered:
adjacent material partitions (no gap), adjacent partitions separated by a gap,
and the two end partitions.
where
45
(6.9)
(pCpV), /At
(6.10)
b|»l/2 - U,.i/2 A,.1/2
and
(6.11)
d, = (q"'V), + a.T,"-
(6.12)
I Alii] . _ ^ *i^^\
where U^.p is the coefficient for heat transfer across the gap. The revised
definition of V/^^^^ ^^ 'hen used in Eqs. 6.8-6.11.
End Partition 1: If surface number 1 has a nonadiabatic boundary
condition, the heat flux across the end surface is given by
(6.13)
qi/2 = u 1/2 (T,cool , 1 - T i)' <3r.l
where T , , is the temperature of the fluid in the adjacent cell and q,., is the
net radiation heat flux to this boundary from the surfaces of other thermal
structures. (Radiation heat transfer is discussed in Sec. 6.4.) The overall
heat transfer coefficient is given by a combination of convection through the
fluid to the surface of the material partition and conduction through half of the
material partition
(6.14)
Ucool.l \ ^ 'iJ
( I n s t e a d of Eq. 5 . 8 ) , where
(6.15)
d l = (q"'V)3 + a i X r ' + qi",'i Ai/2
and the a and b terms come from Eqs. 5.9 and 6.10, respectively. If surface
number 1 does not interact with a fluid cell, then biy2 is zero in Eq. 6.15.
IT T ) + n""^ (6.17)
qL.l/2 (T, - T^ool.2' + yr,2 ' ^ '
where T^ool 2 is the temperature of the fluid in the adjacent cell and q^ 2 is the
net radiation heat flux to this boundary from the surfaces of other thermal
structures. (Radiation heat transfer is discussed in Sec. 6.4.) The overall
heat transfer coefficient is given by a combination of conduction through half
of the material partition and convection from the surface of the material
partition through the fluid
where U^o^i 2 i^ computed from a user-supplied correlation. The heat flux on the
other (L-1/2) side of the last material partition is computed using Eq. 6.5 or
Eq. 5,13. The resulting form of the energy balance is given by
and the a and b terms come from Eqs. 6.9 and 6.10, respectively. If surface
number 2 does not interact with a fluid cell, then bL+1/2 is zero in Eq. 6.19.
If the surface does not interact with fluid and is not part of a radiation
surface, then the surface is adiabatic. The q given by Eq. 5.13 or 6.17 is set
to zero along with the corresponding biy2 or bLti/2-
6.3.4 Solution
With the fluid temperatures and radiation heat fluxes taken as knowns, the
equations in the preceding section are a set of L linear equations in L unknowns
(the temperatures) for each thermal structure element. Equations 6.15, 5.8, and
6.19 may be summarized as follows:
a-L) , ^'•''^'
(5.23b)
b,.i/2 - b,li/2 / C.'.i (1=2.....h)
and
A; = d i + b i , 2 T _ , , i (c=i) (6-2^-)
If surface 2 interacts with fluid, then the heat transfer rate from the structure
to the fluid through that surface is given by
The heat transfer coefficients used in Eq. 6.25 are defined by Eqs. 5.14 and
6.18. If one of the surfaces does not interact with fluid, then the
corresponding heat flux is set to zero. These heat transfer rates are summed
over all thermal structure elements, j , interacting with a given cell and then
divided by the fluid volume in the cell to obtain the source terra appearing in
the fluid enthalpy equation
where Vfo is the fluid volume in the computational cell (e.g. >„ Ax Ay Az) .
The structure and fluid energy equations are solved in separate blocks of
the computation, rather than all equations being solved truly simultaneously.
The coupling is provided by the structure-to-fluid heat transfer rate. This heat
transfer rate must be irapllcitized in time in order for the coupling to be
numerically stable for all tirae step sizes. This is accoraplished by writing the
heat transfer rate at the end of an outer iteration, 1, in terras of the heat
transfer rate at the end of the prior iteration and the change in heat transfer
rate across the iteration. There are two recommended methods for doing this in
COMMIX: limited and full coupling.
49
In the limited coupling approach, the heat transfer rate at the surface
of a thermal structure element is assumed to be a function of the enthalpy hj
(which is related to temperature T^„„i) in the fluid cell which interacts with
that surface; therefore, the heat transfer rate (per unit fluid volume) at the
end of outer iteration 1 is written as
The definition of q^, given by Eq. 5.26 results in both terms on the right-hand
side of Eq. 6.27a actually being summations over all thermal structure surface
elements which interact with a given fluid cell. Each derivative needed for the
right-hand side of Eq. 5.27a is computed numerically using
where Ah is a fixed enthalpy increment (currently 100 J/kg). The terras in Eq.
6.27a are allocated as follows in the finite-difference formulation of the source
term for the fluid energy equation (Eq. 4.23): the term qt,'"' + Oqbs/^ho) (-hV )
becomes part of (S.Jo and the terra dqljdhc becomes part of (Sph)o- This approach
accounts for the fact that the temperatures of the thermal structure and the
adjacent fluid are not independent and is exact if only one surface of a thermal
structure element Interacts with fluid.
In the full coupling approach, the heat transfer rate at the surface of
a thermal structure element is assumed to be a function of the enthalpy ho in the
fluid cell which interacts with that surface and the enthalpy h„ in the fluid
cell which interacts with the other surface (if there is such interaction);
therefore, the heat transfer rate at the end of outer iteration 1 is written as
where the summation is over all of the m fluid cells which are coupled to a given
fluid cell through thermal structures and the derivatives are computed
numerically using Eq. 6.28. The terms in Eq. 6.27b are allocated as follows in
the finite-difference formulation of the source term for the fluid energy
equation (Eq. 4.23): the term q^,'-! + (3qL/3ho) (-ho'"^) + E [ (3qb»/3h») ("hi,"') 1
becomes part of (S,h)o. the term flq^/dho becomes part of (S^Jo. ^nd each dqljBK
term becomes part of (S,0. f°r m - 1,2,...,L; each (SpJ„ term ultimately becomes
oart of a" for ra - 0,1, .,L. This approach accounts for the temperatures in
two differe"nt fluid cells being coupled through a thermal structure as well as
the Interdependence of structure and fluid temperatures. If the fluid cells
interacting with the two surfaces of a thermal structure element are physically
adjacent to each other (e.g., thermal structure surface 1 interacts with the
fluid cell at spatial location (I,J,K) and thermal structure surface 2 interacts
with the fluid cell at spatial location (I-1,J,K)), then this approach conforms
to the six-neighbor-cell coupling already provided in the basic finite difference
form of the fluid energy equation in Sec. 4. The derivatives appearing in Eq.
6.27b become part of the a* (m - 0,1,.,6) terms.
50
The fluid cells coupled through a thermal structure are not, however,
restricted to being physically adjacent; for example, thermal structure surface
1 may interact with the fluid cell at spatial location (I,J,K) and thermal
structure surface 2 may Interact with the fluid cell at spatial location
(1-3,J,K); this flexibility in thermal structure specification is not used
frequently but is extremely convenient for some cases. The basic
six-neighbor-cell finite difference form of the fluid energy equation is modified
to allow proper numerics for this nonadjacent cell coupling by adding terms like
a* h,„ (m-7,8,..) for those coupled cells which are not physically adjacent, where
af contains the derivative of the heat transfer rate with respect to the non-
adjacent cell's enthalpy. (The maximum number of nonadjacent cells allowed to
be coupled through thermal structure elements to another cell is limited by the
value of variable NTSCUP, which is set by a PARAMETER statement in the source
code at compile time; see User's Guide (Ref. 9).) When full coupling is
selected, the two surfaces of a thermal structure element must not both be
coupled to the sarae fluid cell and the same pair of fluid cells must not be
coupled by more than one thermal structure element.
Both the limited and full coupling approaches give the same ultimate
result for end of step temperatures and heat transfer rates during a transient;
the difference is in the amount of numerical work performed. The full coupling
approach requires more CPU time per iteration than the liraited coupling approach
but usually results in obtaining convergence in a sraaller number of iterations.
The tradeoff is such that the overall CPU tirae for a calculational history
usually goes down when the full, rather than limited, coupling is used, except
when the time step size is relatively small during a transient calculation.
Naturally, the full coupling approach is most helpful when the thermal coupling
is strongest (e.g. a sodium-to-sodlum heat exchanger). For cases where the
coupling is weak (e.g. where heat transfer coefficients, heat transfer areas, or
structure thermal conductivity are small), the liraited coupling approach is
adequate.
/ / / / / / / y y / / / / / / / / / / ^ / / / / - ^ - ^
Surface i at temperature, i^
E = oT*. (^'^C)
l^bi "•'li '
where Fji is the fraction of energy leaving surface j which arrives at surface i
(view factor) and A is the surface area. Use of the reciprocity relation,
AjFji = Ai Fij , (6.34)
SF.
G, = E F,,J, . (6.35)
3-1 '' '
Substituting Eqs. 5.30, 6.31, 6.32, and 6.35 into Eq. 6.29 gives
The irradiation Gj may be removed from this equation by rearranging Eq. 6.29 and
using Eq. 6.30-5.32, whereupon Eq. 6.37 may be rearranged to show
Finally, substitution of Gj from Eq. 6.35 and J^ from Eq. 6.38 into Eq. 5.37
removes both the irradiation G^ and the radiosity J^ from the balance equation
and results in
(6.39)
t (F,, -».,)oTV
£(Fi, t ^^^'"^
- 8,,)oT^ = E - ^ F i-, --^Jq,,
Matrices [B] and (C) are square (N*N); their elements are given by
(6.42)
Bi3 = (Fi3 - Sij)"
and
(6.43)
Cij = [(l-ej)Fij - 6i^] /e^
which are known and constant for a given set of radiation surfaces. Column
vectors [T*] and [q,] contain the fourth power of absolute temperature and the
net radiation heat flux, respectively, for each radiation surface. If the
temperatures of the radiation surfaces are known, the systera of equations may be
solved for the net radiation heat fluxes (and vice versa).
6.4.2 Solution
The solution of the equations governing radiation heat transfer among the
thermal structures is coupled to the solution of the equations governing
conduction heat transfer within thermal structures (which is, in turn, coupled
to the solution of energy equations for the fluid). All of these computations
are performed in separate blocks of the code, with temperatures and heat fluxes
from one block of the calculation being supplied to the next block. The
specifics of the coupling for radiation heat transfer are described below.
The user must also provide an emittance for each radiation surface and the
complete set of view factors, F^^, which specify the fraction of radiation
54
f; F.. = 1 , (6.44)
jTi '^^
otherwise energy will not be conserved in the systera. The input view factors
must also conform to the reciprocity law given by Eq. 6.34. The diagonal term
in the set of view factors, F n , is not necessarily zero, since a concave surface
can see (at least a part of) itself.
The definitions of A and T used in Eq. 5.45 depend on which surface of a thermal
structure element forms part of radiation surface 1. The area is
which uses the surface areas given by Eq. 5.3. The temperature is
which uses the temperatures at the center of the first or last material partition
in absolute units (kelvlns). (COMMIX does not track a true surface temperature
for thermal structure elements; for this reason, the first and last material
partitions of a thermal structure should be relatively thin when the surfaces
they adjoin form part of a radiation surface. Additionally, all teraperature
values in COMMIX are stored in units of degrees Celsius; since the temperatures
within the radiation heat transfer model must be in absolute units, conversions
are made from degrees Celsius to kelvlns and from kelvlns to degrees Celsius as
needed.) The use of the fourth power of temperature in this averaging process
results in an average temperature which properly characterizes the total emissive
power of the elements which form the surface.
55
With the temperatures of the radiation surfaces known, the net radiation
heat fluxes may be computed by solving the systera of equations given by Eq. 6.39.
This system of equations is solved using a set of routines from the LINPACK
(Ref 18) linear algebra package. The net radiation heat fluxes are converted
to a net radiation heat transfer rate for each surface by multiplying by the area
of the radiation surface (which is the denominator of Eq. 6.45). Provision is
also made for averaging the heat transfer rate obtained from solving Eq. 6.39
with the rate from the previous tirae step. The end of step net radiation heat
transfer rates are thus given by
(6.48)
Q,"i = (i-n,)Or":' + Qr qn Al ,
where Ai is the denominator of Eq. 6.45. The quantity n, is a user-input
parameter, in the range 0 to 1, which controls the averaging process. In theory,
fl should always be 1. In practice, the beginning of a steady-state calculation
usually needs n, « 1, since the radiation heat transfer rates are zero during
the first time step and are very sensitive to the radiation surface temperatures
as they begin to change during the first few tirae steps. Larger values of fl^ raay
be used in later stages of the calculation.
The values of the radiation heat transfer rate, as calculated at the end
of the time step, are held constant during the next tirae step for use in
computing thermal structure temperatures. These radiation heat transfer rates
are used in the boundary conditions for the thermal structure energy equation
(Eq 6 1 ) . The radiation heat flux is assumed to be uniform for all thermal
structure surface elements which compose a given radiation surface. Thus, the
radiation heat flux q,,, appearing in Eqs. 6.13 and 6.17 is given by Q,, from Eq.
6.48 divided by the denominator of Eq. 6.45.
56
7. TURBULENCE MODELING
7.1 Introduction
where the subscripts t and t stand for laminar (molecular) and turbulent
properties. The laminar values are provided directly by the equation of state
(cf. Sec. 9.1); the turbulent values are a function of the flow field. These
effective viscosity and thermal conductivity values are only used in the
diffusive terms in Eq. 2.1; friction and heat transfer correlations always use
Uf and Xf. There are five models in the present version of COMMIX for providing
values of the turbulence quantities ^l^^ and X^:
than equations available for the solution of unknowns). Here p denotes fluid
density, u' and v' are the fluctuating velocity components in the coordinate
directions x and y, and the overbar denotes the time averaging. The correlations
u'v' are known as Reynolds stresses.
- p U'V -
^A^'^)-i'^'^'''^''
" ' — ^ ' - II III - .f V T w I . V . /
In 1945 Prandtl (Ref. 21) suggested a more general approach than the
mixing-length hypothesis. His new approach is generally referred to as a one-
equation turbulence raodel. In this raodel, the turbulent viscosity is assumed to
be a function of the square root of the turbulence kinetic energy k. To
determine the value of k, its transport equation must be solved. Since then,
many one-equation turbulence models have been proposed. The transport equation
for the shear stress developed by Bradshaw et al. (Ref. 22) and the transport
equation for the turbulent viscosity developed by Nee and Kovasznay (Ref. 23) are
typical turbulent viscosity models.
There are several two-equation turbulence models (k-c model, k-f model,
k-U model, etc.) Here, the symbol k is the kinetic energy of turbulence, c is
the dissipation rate of turbulence energy, f is a macroscopic length scale of
turbulence, and W is interpreted as the time-averaged square of the velocity
fluctuations. Among the two-equation models, the k-c model, as proposed by
Harlow and Nakayama (Ref. 24) and Jones and Launder (Ref. 2 5 ) , is the most widely
used.
but will cause numerical difficulties if too abrupt. More work is needed to
improve the current transition treatment.
where o^ is the effective turbulent Prandtl number for k. The source term is
given by
S, = Pk + G , - P t + E, . ^^-5)
where u, is the velocity component in the coordinate direction Xj. The source
due to thermal buoyancy is defined in Cartesian coordinates by
(7.7)
pP Oh
Oh ar l^axj 'j
Table 7.1 Expansion of Summation Terms In P^ (Eq. 7.6) and G^ (Eq. 7.7)
Ul = u , U2 = V , and U3 = w
Cartesian Coordinates:
Xi = X , X2 = y , X3 = z
„ ar „ar^„aT^„aT
arr = 9x 3ax
9: ax, ='>' 3::
: : + gy ay + Sz az
Cylindrical Coordinates:
Xi = r , Xj = 9 , and X3 = z
^^ ax. = Sx f + ge1 ar ^ „ ar
r ae az
61
where a is the effective turbulent Prandtl number for c. The source term is
given by
S. = tCi(P^ + G^ - fjpele/k + E. , (7.9)
Components E^ and E^ in the source term definitions (Eqs. 7.5 and 7.9) are
both neglected in the current implementation of the k-c turbulence model. Their
omission is only strictly correct for high Reynolds-number flow. There Is
limited theoretical basis for including these terms in the equations for low
Reynolds-number flow; Instead, various researchers have added various forms of
these terras in order to obtain agreement between computational raodels and
experimental measureraents. Several forms for these terras are summarized in
Ref 31' as a specific example, Jones and Launder (Ref. 30) suggest
E^ = -2Mak'^V3y)^ and E. = (2\i.\i^/p) (d'u/dy')' for low Reynolds-number flow.
Further work is needed to ascertain the proper forms for these terms and to
Implement them in such a way as to result in a set of equations which provides
a correct and numerically stable solution for all flow regimes.
After both equations have been solved, the turbulent viscosity is computed
from
\^t
f„c„pkVe
f
. (^12)
Xt = Cpjit/a^ , (7.14)
For a symmetry boundary, the velocity normal to the surface is zero and
velocity gradients in the direction of the normal are zero. Similarly, the
gradients of the turbulence quantities k and c are both zero. The actual value
at the boundary is not required in this case. This treatment is also used for
a free-slip rigid-wall boundary.
For any of the several outlet boundary conditions, the gradients of the
turbulence quantities k and c in the direction of the normal are assumed to be
zero. The actual value at the boundary is not used for outward flow of fluid in
the donor-cell convection formulation used in COMMIX.
The default value for Ci,,i„ is 0.001. The quantity C^ i„ has units of 1/m
and there is no default value in the code; in absence of other information, the
user may estimate this quantity from
where « Is the von Karman constant and D^ is the hydraulic diameter at the inlet.
The value of it is set internally by the code to .23/C^ " for use in other parts
of the turbulence model and is approximately 0.42.
The final type of boundary is a no-slip rigid wall. This type of boundary
Is Identified by having a specified velocity boundary condition with u„o - 0 and
Invokes the most complex of the turbulence boundary conditions. In the immediate
vicinity of this type of boundary, there are large spatial gradients in the
velocity and the turbulence quantities. A fine mesh structure would be required
to explicitly represent the details of these steep gradients. To avoid this, a
wall-function treatment Is used which accounts for the effects of the gradients
on an Integrated basis. This procedure affects the two turbulence transport
equations as well as the momentum transport equations.
fl = u-/u. (7.19)
and
X,/[H/(P u. )] , (^-2(5)
p
where point p is at the center of the cell which is adjacent to the wall, Up is
the velocity parallel to the wall at point p, and Xp is the distance from point
p to the wall. The corresponding Reynolds number at point p is given by
Re = P^""- = m . (7-21)
p ^l
and has a value of approximately 9.0. The general forms used for Eqs. 7.22a and
7.23 have been chosen since they are asymptotically equivalent to the classical
near-wall velocity profiles for flows at both very low (laminar) and very high
(turbulent) Reynolds numbers; i.e., the profile is linear for low flow
u(x) - x as x - 0 , (7.22b)
The specific constants In Eq. 7.23 (coefficient 0.44 and exponent 6.055) have
been chosen to provide a blending between these two asymptotic behaviors which,
when used in COMMIX, results in friction factors which fit the Moody curve (Ref.
32) as well as possible without destabilizing the numerics of the calculation.
The no-slip rigid-wall boundary condition for the turbulent kinetic energy
dissipation rate equation is imposed by setting the value for the wall cell to
diffusion term for that face (e.g. Dj"(U3-u„) for the south face of an i-
directlon raoraentum control volume) is dropped from the equation and the effect
of the wall shear is Incorporated into the equation as part of the source term.
The addition to the source term is in the forra of a viscous shear force per unit
volume, and these terms are identified as V,, Vy, and V^ in Table 2.1. Each such
face contributes a term which is the wall shear stress ( t, as given by Eq. 7.18
with Up being the velocity component at the center of the momentum control volume
and Xp being the distance from that point to the wall) multiplied by the area of
the cell face and divided by the volume of the momentum control volume. Since
this source terra for each coordinate direction involves the velocity component
in that direction, the finite-difference form of the momentum equation source
term (Eq. 4.24) will contain the term -V,/u in (Sp„)o, -Vy/v in (Sp^)o, and -V,/w
in (Sp„)o rather than these contributions being contained in (Sj^)o.
turbulent kinetic energy dissipation rate, this quantity is computed from the
turbulent kinetic energy
e = C ° - " k ^ - V (KC) (7.31)
for each mesh point. The length scale, t, is the sraaller of (a) the distance
from the raesh point to the closest no-slip rigid-wall boundary and (b) 0.175 D^.
The hydraulic diameter, D^, is input by the user and is currently constant
spatially.
After k and c are computed, the turbulent viscosity and turbulent thermal
conductivity are computed using Eqs. 7.12 and 7.14, respectively. Use of the
one-equation turbulence model invokes the special treatments for zero-slip
boundary surfaces in the momentum and energy equations as described in
Sec. 7.3.2.
In this model, the transport equations for turbulent kinetic energy and
turbulent kinetic energy dissipation rate are not solved. Instead, the turbulent
viscosity is computed from the velocity gradients using
p (Kt)'
aun / au. au. (7.32)
dx. I ax, dx.
where the characteristic length, t, has the sarae definition as in Section 7.4 and
the expanded form of the summation-notation terra in square brackets is given in
Table 7.1. The turbulent thermal conductivity is calculated from Eq. 7.14. The
special treatments for zero-slip boundary surfaces in the momentum and energy
equations as described in Sec. 7.3.2 are not used.
This is the simplest turbulence model. The user inputs constants HK, and
X^o which become the turbulent viscosity and thermal conductivity, respectively,
for all spatial locations. The default for both constants is zero, which
corresponds to no turbulence effects. The user has the option to override the
base values given by /i^o and ^to on a cell-by-cell basis with other input values.
The special treatments for zero-slip boundary surfaces in the momentum and energy
equations as described in Sec. 7.3.2 are not used.
where
(7.34)
Cjio
with u„„ - max(u,v,w), Re„„ - max(Re,,Rey,Re,) , and t - 0.4 D^. The turbulent
conductivity may be estiraated using
1 ^ ^P^*to ^ (7.35)
" ' 0 . 8 / [l - e x p (-6*10-= Re,H Pr^'h'")]
where Re^h and Pr.j, are characteristic Reynolds and Prandtl numbers, respectively.
The user must input /!„; the user raay input X^o directly or by inputing Re.^ and
a characteristic temperature, T,h, at which to evaluate Pr,h and the code will
calculate X^o internally.
8. PUMP MODELING
8.1 Introduction
There are generally four variables of interest for a pump: the head
supplied, H (m) , the volumetric flow rate, Q (m'^/s) , the shaft torque, T (N'm),
and the speed, N (revolutions/s) . At steady state, any two of the four
quantities may be considered independent; these will be the flow rate and speed
in the present analysis; the other two variables are taken from the pump
characteristic curves, which are a set of cross plots of the four variables
against one another. In the strictest sense, the pump characteristic curves must
be known for the specific pump to be modeled.
The development is aided by defining normalized values for flow rate, pump
speed, head, and motor torque as
Q = 0/QR , (8.1)
N = N/NR , (8.2)
H = H/HR , (8.3)
and
^ = T/TR , (8.4)
and
or these ratios are equal for two pumps (indicated by subscripts 1 and 2) which
are geometrically similar and are being operated in a dynamically similar manner.
This particular form of the homologous conditions has little practical use when
one needs to allow for very low or zero pump speed.
X = 7t + tan-'{Q/^ . ^^-^^
By utilizing the signs of both 0 and N the definition of X given by Eq. 8.7
covers all four quadrants of the 0-N plane as shown in Table 8.1. The pump
characteristic curves are assumed to be representable using the dimenslonless
forms
(8.8)
H / ( N ^ + Q ' ) = W H (X)
and
(8.9)
T/{N'+Q')=WT(X) .
Operating Mode
The above description works for steady state but raust be combined with
other equations for use in analysis of transient behavior. The equation
governing the change in rotational speed of a mechanical pump is based on the
Change in angular momentum being proportional to the sum of the applied torques.
This may be expressed as
2 It Ip - ^ - ^m^^h ^f '
70
where Ip is the moment of inertia of the rotating elements of the pump (kg.m^),
N is the rotational speed (revolutions/s), and the 2-n factor converts from
revolutions to radians. The r terms are the various torques (Nm) : T„ is the
torque supplied by the motor, t,, is the hydraulic torque due to motion of the
fluid against the impeller, and T, is the total frictional torque which includes
losses to the shaft seal, thrust radial bearings, motor windage, and shaft to
fluid viscous losses. (At steady state, the torque supplied by te motor exactly
balances the sum of the hydraulic and friction torques, resulting in the pump
operating at constant speed.) The pump characteristics, Eqs. 8.8 and 8.9, are
assumed to be valid for each operating point during a transient.
where WF (N) is the relative friction torque as a function of relative pump speed
from the pump characteristic curves. The motor torque is assumed to be given by
X. = t ^ * f n f ( t ) , (8.13)
where T„R is a user-supplied reference motor torque and fnf(t) is the nf-th
transient function supplied by the user. Knowing the pump speed and flow rate,
the pump head is calculated from the characteristic curves using Eq. 8.8:
(8.14)
APp = p g H , (8.15)
During a transient, the pump speed is advanced across the time step, from
t"-^ to t", by direct integration of Eq. 8.10, which gives
where the three torques come from Eqs. 8.13, 8.11, and 8.12.
71
The user must provide the pump inertia (Ip), the reference quantities (QR,
HR, NR, TM, , and x^ ), and the various pump functions (WT(X) , WH(X) , WF(S) ,
and f(t)). The functions are assumed to have the following polynomial forms:
(8.17)
WH (X) = g C,,iX-^
9
(8.18)
vn:(x) = J2 c,,iX'-^
• 1
3
Y, Cf,i N^-^ for N^Cf,,„t,i (8.19a)
i=l
3
(8.19b)
WF(N) = { E <=f.i'3 N'"' for Cj,^^t,i<NsCj,<,„t,2
i-l
where the Cj are constants input by the user. The transient function is input
as a series of data pairs.
(8.20)
st/Ot
Instead of using Eq. 8 .14 as long as N < N^„t and S < O^ut-
where NR is a reference speed and f„£(t) is the nf-th transient function, both
specified by the user.
Having the pump speed and the current volumetric flow rate through the
pump, Q (raVs), the pressure increase due to the pump in this model is given by
where t h e normalized speed and normalized v o l u m e t r i c flow r a t e for the pump are
d e f i n e d by Eqs. 8.2 and 8 . 1 , r e s p e c t i v e l y , and QR i s a u s e r - s p e c i f i e d r e f e r e n c e
flow r a t e . The c o n s t a n t s a, b , c , and d a r e a l l s p e c i f i e d by t h e u s e r . The u s e r
may i n p u t a f l o w - r a t e dependent v a l u e for d, as
Re=p|u|L/n, (8-2M
and u is the fluid velocity in the pump, L is a characteristic length for the
pump, and /Xf is the molecular fluid viscosity. The quantities df, d^, Retr, and
L are all input by the user.
' p, as
model in Sec. 8.2 or 8.3 and fn£(t) is the nf-th user-supplied transient
function.
Each pump must be aligned with one of the three fluid coordinate axes and
is associated with a particular momentum control volume. The faces of the
momentum control volume containing a pump should be blocked to fluid flow in the
two directions which are transverse to the alignment of the pump. There may not
be more than one pump in a momentum control volume.
73
There are two ways to describe the physical properties of fluids: detailed
and simplified. The user selects whether detailed or simplified properties are
to be used for Fluid #1. All other fluids being used in a calculation must use
simplified properties.
p = p(h or T , P) , (9.1)
T = T(h, P) , (9.2)
(1, = n, (h or T, P) , ^ (9.3)
X, = 1, (h or T) , (9.4)
75
C„
"p
= C-p (h or T,P) , <'-5)
d£ = d£ (^^^ T pj ^ (9.6)
on cm
and
(T) (9.7)
The terminology "h or T" means that both enthalpy and temperature appear as
arguments; the correlation may be based on either one. Additionally the inverse
of the functional relationship given by Eq. 9.2, i.e.
h = h (T, P) , ('•*)
must be available. Detailed property packages have been prepared for liquid
sodium, liquid normal water, liquid heavy water, and helium gas; the specific
functional forms used in each of these fluid packages are given in the User's
Guide (Ref. 9 ) . The user may use these as a guide for creating detailed fluid
property packages for other fluids. In any event, the user may include only one
detailed fluid property package when forming an executable code version.
l:
C + C T , or (9.10a)
P = \ p / [(8314/C2P,) (T + 273.15)] , (9.10b)
X - C + C T ('-^^^
and
u - C + C T , ('-^2)
where the constant coefficients Cij„ are input by the user for each fluid number,
m, which is to use simplified properties. The choice of density functions is
made based on the value of C2,„, which corresponds to the fluid's molecular
weight- if C2^-0, the linear forra given by Eq. 9.10a is used; otherwise, the
Ideal-gas-law forra given by Eq. 9.10b is used. The input constants are used to
generate a T(h) function and to compute the various derivatives needed.
C T2 (9.14)
and
^ = Cox. + C u . T + C2i,T^ , (5-15)
where the constant coefficients C^p^ are input by the user for each solid
material number,ra,which is being used. The specific heat capacity and therraal
conductivity are actually computed by FUNCTION subprograms which use these
coefficients; the user raay modify these routines to specify different functional
forms for materials whose properties are not well described by the basic
quadratic form.
The heat transfer rate between a fluid cell and the associated surface of
a solid (either a boundary or an immersed object) is generally computed using
Q = U„A(T3-T) , (9.16)
where U„ is a heat transfer coefficient, A is the interfacial surface area, T^
is the temperature of the solid at the surface, and T is the fluid temperature.
The user must input all heat transfer coefficients to be used in a calculation;
each is assigned an index number, n. Then, for each fluid-solid thermal
interaction, the user specifies which heat transfer coefficient, by index n, is
to be used at the surface. The same heat transfer coefficient index may be used
on more than one surface.
Re = p D j I ? + v ^ + w Y V n , (^-1^'
uses a fluid speed based on the spatial averages of the three velocity
components, u, v, and w. The fluid Prandtl number in Eq. 9.18 is given by
Pr = \i, Cp/X, (9.20)
and the constant coefficients Ci^n are input by the user for each of the n
correlations to be used. (The user may input up to 20 such correlations.)
genei
an
beer
in
Guide
user may .» j — - ,^ ..v.
functions, assigning unused correlation index numbers to thera.
78
The user must input which cell's momentum equations are to use a specific
one of the n force structure correlations. The resulting distributed flow
resistance is applied over the length of the corresponding momentum control
volume, which is offset by a half a cell from the main control volume.
79
The remaining subsections present the forms allowed for the velocity and
pressure boundary conditions, which are associated with the momentum equation,
and for the energy equation boundary conditions. The User's Guide (Ref. 9)
explains how to define boundary surfaces and selectively specify the desired
boundary conditions.
10.1.1 Velocity
-(A.UiW2<P>"-^t^|f)„ (10.3a)
^n,m*l/2 /A n\
i^i P)m.l/2
for the boundary associated with cell m and
(A.-i)..i.<P>-t^l?), (10.3b)
""-•-^^^ ' (Af P),_i/2
for the boundary associated with cell (, where p is the fluid density. A, is
fluid flow area for a cell face, V, is the fluid volume of a cell and u, is the
fluid velocity in the coordinate direction 1 which is the same direction as the
surface normal vector. The density, <p>. appearing in the numerator of these
equations is for the upwind cell based on the sign of the velocity at the
indicated cell face, as described in Sec. 4.2. The density m the denominator
is associated with the boundary surface and is defined in terms of boundary
enthalpy and pressure. The arrangement of signs in these equations is diffe"nt
due to the normal velocity (u„) being defined as positive for flow into the fluid
domain.
The condition given by Eq. 10.3 is applied individually to each cell
face which is a part of the boundary surface. The ""^^^^^^''! f "/^^^;; ^^
Eq. 10.3 essentially forces there to also be, on a cell-wise basis for each of
the cells on the boundary surface, zero net mass flow for the sum of the two
directions which are transverse to the surface normal vector.
This boundary condition is the primary boundary condition used for the
outlet of a problem. It may also be used at an inlet when pressure is prescribed
as the inlet boundary condition.
82
Outlet Cutlet
Boundary Boundary
i+l n-1
Inlet
This boundary condition has limited practical application unless the two
areas involved are truly equal, in which case the coding will execute slightly
faster than if the continuative mass flow boundary condition were used;
otherwise, raass conservation will be difficult to obtain.
execute slightly faster than if the continuative mass flow boundary condition
were used; otherwise,raassconservation will be difficult to obtain.
The normal velocity is set to provide a uniform velocity across the cell
faces which forra the boundary surface. This boundary condition is implemented
in araanneridentical to the continuative mass flux boundary condition except
that the numerator and denominator of Eq. 10.3 are both replaced with summations
over all surface elements on the boundary surface. The resulting average
velocity is then assigned to all elements of the boundary surface.
s
tnis surrace snouiu uc aui=Lj = ^^-. -- - , i ui i j ,-„ i-v,o f 1 nu
designated the "expansion cell." This cell must be totally blocked to the flow
of m!ss and energy in the directions which are transverse ^^;'^^%\l\';ilZT'n
vector and should not interact with any thermal structures. The fl"^d volume in
the expansion cell is allowed to change during a transient calculation, as
described below; all other fluid cells have a constant '^-^''.^°^'^'^.Jll°^''l[
boundary surfaces of the fluid region should have u„ - 0 (with either zero- or
free-slip) to model a constant raass system.
During a transient calculation, this boundary condition provides the
same constraint as provided by the continuative mass flow ''-"^-/ "^^^J^"^
until
itil the
the time
time step
step has
has converged.
converged. The
The code,_
code, therefore,
thererore, _iis
^s_ allowed^to
• ^ - " — ;" believe —-•-
lat mass is actually flowing across the boundary surface element.
that (The
tocity u„ on this boundary surface is, in fact, never set to zero.) Following
ity, u„.
84
(pAfUn),(t"-t"-^)
v" = v""^ - '" - - (10 5)
(PV)„
where the subscript b refers to the boundary surface element (i.e. m+1/2 or
m-1/2). The porosity of the cell, thus, increases and decreases as the fluid in
the rest of the region expands and contracts. The porosity of the expansion cell
is allowed to exceed 1 to accommodate the volume change; however, the coding in
COMMIX does not allow for negative values of volume porosity; warnings are issued
and the code will stop if the porosity gets close to 0. (Warnings are issued by
the code when the volume porosity drops below 0.07; the code will stop if the
porosity is below 0.02 or is projected to be below 0.02 at the end of the next
time step.) In performing global balances for edit purposes, the mass and energy
flows across this boundary surface are excluded (since, in actuality, nothing was
ultimately allowed to cross the boundary).
10.1.2 Pressure
« • •
1 1
> 1 1 1 1
10.1.3 Energy
The specific details of the various boundary conditions allowed for the
fluid energy equations are discussed in the following subsections.
Uv, (10.8)
Uf I ^ )w
The user has the flexibility to input a correlation number from which the fluid
convection heat transfer coefficient (Uf) is to be calculated (cf. Sec. 9.3); if
a correlation number is not input, then this terra will be computed by the code
based on conduction through a half thickness of the fluid cell
Ut = A.,t/(0.5*Vf/At,) , (10.9)
where X,f is the molecular thermal conductivity of the fluid, Vf is the fluid
volume of the cell, and Aj, is the area of the boundary surface element. In a
similar manner, the user has the flexibility to input a material number for the
wall; if this is nonzero, then the thermal conductivity of the wall, X„, is
evaluated using the structure property correlations (cf. Sec. 9.2) at the
87
boundary temperature and L, is the input wall thickness; otherwise, the solid
conduction term is neglected.
This boundary condition is normally associated with an inlet and is
sometimes useful for an impervious wall. For an inlet, a fluid heat transfer
correlation and a wall material number would not usually be specified.
The heat flux frora the boundary to the fluid is constant in tirae for
this boundary condition. The value, q,o, i^ specified by the user and is
spatially uniform across the boundary surface.
The boundary heat flux is used in conjunction with the temperature (T,)
In the adjacent fluid cell to calculate a boundary teraperature based on
conduction through the fluid, which is given by
/T7 (10.12)
Tb = Tf + qb/Uf .
where Uf is given by Eq. 10.9.
88
This boundary condition is useful for Impervious walls where the heat
flux is known. If a zero heat flux is desired, the adiabatic boundary condition
described in Sec. 10.1.3.6 is generally preferred rather than using the specified
constant heat flux boundary condition with q,, - 0.
The heat flux from the boundary to the fluid is a function of time for
this boundary condition, as given by
10.1.3.6 Adiabatic
The heat flux from the boundary to the fluid is zero for this boundary
condition. The boundary temperature will be set to the teraperature of the
adjacent fluid cell for each boundary surface element. The results obtained
using the adiabatic boundary condition are equivalent to, but are obtained in
less computational time than, the results obtained using a specified heat flux
boundary condition with q^ = 0.
where p„ and Cp„ are the density and specific heat capacity of the wall, L„ is
the wall thickness, Tf is the fluid temperature in the adjacent cell, and T^ is
a user-input constant temperature for the surroundings on the other side of the
wall. The heat transfer coefficient on the fluid side (U^) comes from Eq. 10.8
and the coefficient on the other side (U^) is a user-input constant. The heat
source in the wall, if used, is assumed to be in the following form
/ /
4/
•
Tf
SURRC
/ /
^ Lw
\ / /
If the fluid temperature and heat source are assumed constant over a
time step,
. , ,then Eq. 10.14 may be integrated across the time step (frora t"" to
lai temperature at the end of the tirae step
t") to give the boundary
(10.16)
= T
(TS"^-T^) * exp [-o(t
where
(10.17)
a^Tj + a,T, + P
(10.18)
ffb = Ub/ (PCpL)^
(10.19)
tts = Us/ (pCpL)^
(10.20)
a = Ob + ag ,
and
(10.21)
P = ql/ (pCp)^ .
All therinophyslcal properties of the wall are evaluated at teraperature T^ using
the correlations in Sec. 9.2 for the user-specified material.
90
After the temperature of the wall has been computed, the heat flux from
the boundary to the fluid is calculated using Eq. 10.7.
This boundary condition is useful for irapervious walls which are thin,
such as the duct wall of a fuel asserably. In raany cases, the wall bounding a
fluid region is sufficiently complex (in terms of composition or boundary
conditions) that it raust be raodeled using the thermal structure treatment (cf.
Sec. 5 ) ; when the thermal structure model is used to simulate a boundary
condition, then the normal fluid energy equation boundary condition should
usually be adiabatic.
For the first run in a sequence, the code performs a base level
initialization as follows. The user specifies reference values for temperature
(Tjjf) and for the pressure (Pj^f) at one location (x^ef ,yref, Zret) for each fluid
type. This temperature becomes the initial uniform value for all cells
containing that fluid type. The reference teraperature and pressure are used to
establish a reference fluid density p^^f frora the equation of state for each
fluid. Using these values and the three components of the gravitational
acceleration vector (g,), the code will establish a reference state pressure for
all fluid cells of each fluid type, using
After this base level initialization has been perforraed, the user has
three ways to provide alternate values: restart, pointwlse, and one-dimensional
calculation, as discussed in the next three paragraphs.
The user also has the option to specify values on a pointwlse basis
using records in the input stream. Values may be specified for fluid
temperature, pressure, and the three components of velocity for as raany cell
locations as desired. These values are read after the optional reading of a
guess from the restart file. After all of these pointwlse values are read, an
enthalpy and density for each fluid cell will be calculated from the equation of
state using the temperature and pressure.
6. If the requested number of tirae steps or raaxiraum problem time have not
been reached, then go to Step 3 to begin a new time step.
The code reads user supplied information from two files: card-image input
and binary restart input. Based on the information in these two files, the code
establishes the geometry and initializes all calculational variables. The order
in which Information from these two files is used during the initialization
process is discussed in Sec. 10.2. Following selection of a tirae step size
(which will be discussed in Sec. 11.4), the code advances the solution across one
tirae step; the details of Step 4 are discussed in Sec. 11.2. After all variables
have been advanced, there are options for the user to selectively print various
variables and write certain variables to a binary plot file. If more
calculational history is desired, the code loops back to Step 3 to begin a new
time step. The norraal end of a coraputer run raay be based on completing the
requested number of time steps or problem simulation time. At the end of a run,
the code will write a new binary restart file if requested, so that the
calculation may be continued tn a subsequent computer run.
The details of how input is supplied to the code and output is returned
to the user are presented in the User's Guide (Ref. 9 ) . The User's Guide also
explains how the plot file may be passed to various postprocessing prograras to
obtain graphical output.
the fluids plus the thermal structure energy equations for all nodes in the
calculational domain.
The formulation is Implicit in time; i.e., all variables appearing in the
equations are at the new (end of step) time except for the use of the old
(beginning of step) time value in forming the unsteady terra of the difference
equations. This allows the time step size to be larger than would be the case
in an explicit formulation (all variables at old tirae except for the new time
value in the unsteady term), where the time step size is limited by Courant,
Fourier, and other such restrictions.
1. Save values frora end of the last time step (e.g. u""' , P""' , etc.) as
"old" values; these are new the beginning-of-step values for time step n.
P " = f (t") .
4. Construct the coefficients for the raoraentum equations for all cell:
5. Using the coefficients from Step 4, construct the coefficients for the
pressure (i.e. continuity) equations for all cells:
6. Solve (iteratively) the system of equations from Step 5 to get the new
pressures:
pn.m
Save the maximum (in absolute value) mass residual per unit fluid volume
7. Substitute the pressures into the momenta equations to get the new
velocities:
Ijn.in ^n.m ^n,m
Save the maximum relative change of each velocity coraponent during this
outer iteration, e.g. (u"'"" - u"''""^ |/[(u^ + V^ + W^)''*]^^, as (Au)„^,
( ^'^)nax' and (Aw)„^ for use in Step 16.
8. Construct the coefficients for the turbulent kinetic energy equations for
all cells:
9. Solve (Iteratively) the system of equations frora Step 8 to get the new
turbulent kinetic energies:
10. Construct the coefficients for the turbulent kinetic energy dissipation
rate equations for all cells:
11. Solve (iteratively) the system of equations frora Step 10 to get the new
turbulent kinetic energy dissipation rates:
(.n,m_
, n , ni\
X?'" = f(ti?'
Construct tVie coefficients for the fluid energy equations for all cells:
13
a,** (C = 0,1, ..,L) , bo'.
The energy boundary conditions are applied and the heat transfer rates to
the fluid from the boundaries and the therraal structures are evaluated
during this process. The value of L is greater than 6 for cells coupled
to nonadjacent cells through thermal structures.
14. Solve (iteratively) the system of equations from Step 13 to get the new
enthalpies:
hn.m.
Save the maximum relative change of enthalpy during this outer iteration,
Set the fluid density and temperature from the equation of state for all
15.
cells:
pn.m = f (pn.m _ j^n.m)
then this tirae step has converged; go to Step 17 to complete the time
step. If convergence has not been achieved, then go to Step 3 to begin
a new outer iteration.
17. Update conditions for boundaries having adiabatic and duct-wall energy
boundary conditions:
Ti n u n rr n .n
Pb , hb , Tb , Pb-
Tan '
mH
.•• r •
qt •
Yv
where (> stands for one of the velocity components (i.e. u^ or u, v, or w ) ; these
same terms in the energy, turbulent kinetic energy, and turbulent kinetic energy
dissipation rate equations are formulated using
97
and
where ^ stands for one of the computational unknowns (i.e. h, k, or c). In the
above equations, superscript n denotes the current time step number, and
superscripts m and m-1 denote the current and previous outer iteration numbers;
on the first outer iteration for a time step, the "previous outer iteration" is
the final outer iteration (M) of the previous time step (i.e. superscript "n,m-l"
at m-1 is replaced by "n-l,M"). The forms for F^ and D, are given in Sec. 4.
Within Ff, the velocity is Uj"-'""^ for the momentum equations but is Ui"-" for all
other equations since the new velocity is available. The density in ?/ and the
laminar part of the transport coefficient in D, are always p "•'"'' and r,"'""^ since
the equation of state is not invoked until the end of an outer iteration. The
turbulent part of the transport coefficient in Uf depends on whether the
calculational block in which the transport coefficient is needed is before or
after Step 12 of Table 11.2; therefore, it is Pt"-""' for the momenta, turbulent
kinetic energy, and turbulent kinetic energy dissipation rate equations and Ft"-"
for the energy equation. Source terms must also be linearized. The type of
linearization applied depends on the importance of the term and is liraited by the
form of the term. Most source terras are linearized by a separation process
sirallar to that used for the convective and diffusive terras; for example, the
fluid-structure momentum transfer (friction) term is calculated in the momentum
equations using
(11.5)
pn.m-l^ J ^ r " " ' (uJ'^-U?'""-')
giP = 91
in order to improve the convergence rate in buoyancy dominated problems; this has
not been fully impleraented in the current code version.
98
There are four blocks of the calculation (Steps 6, 9, 11, and 14) which
perform an Iterative solution of a coupled system of linear equations. The
different iterative processes used in these blocks are described in Sec. 11.5.
The Important thing to note at this point is that the user specifies a relative
convergence criterion and a maximum number of inner iterations allowed for each
one of these inner Iterative processes.
At the end of an outer iteration, the code checks to see whether the
relative change in values between successive outer iterations and the mass
residuals are less than user-specified convergence criteria. The changes between
successive outer iterations are evaluated using
J^n.m _ j^n.m-l
< e. (11.6a)
hn.m
and
^n,m _ ,|)n.m-l
< e. (11.6b)
[(^ + v^ ... ;:T2\TAI
w^)^l
where 4 stands for each of u, v, and w. The term [...]„„ in the denominator of
Eq. 11.6b is the maximum fluid speed, calculated by sweeping over all fluid main
control volumes and computing the cell-center spatial average of all three
velocity components; theraaxiraumfluid speed is used for norraalization purposes
so that fluctuations of very small velocity components are ignored for the
purposes of assessing convergence. The mass residuals are evaluated using
where the mass residual 5p is given by Eq. 5.7, Vf is the fluid volume for a
cell, and
p-Ai-Ui
(11.8)
(6/V)p,„f = «i
The user supplies the values of the constants Cj. The term (. . . )„ax is the
maximum raass flow rate per cell fluid volume; the quantity is maxiraized by
sweeping over all faces (the subscript 1 denoting the three spatial directions)
of all fluid cells. If Eqs. 11.5 and 11.7 are satisfied for all cells, then the
outer iteration has converged. If convergence has not been achieved, then outer
iterations are continued until a user-specified raaxiraum number of outer
iterations has been completed. If the inner iterations do not converge, then the
outer iterations will probably not converge. The actions taken by the user and
by the code in the event of nonconvergence depend on whether the case is running
in steady-state or transient mode (cf. Sec. 11.3) and whether the change-based
automatic time-step-size selector is being used (cf. Sec. 11.4).
After the outer iteration has converged, the code performs certain
computations associated with therraal structures, radiation surfaces, and
expansion-cell boundary conditions. At this point, all variables have been
advanced across the time step and control is transferred to Step 5 of Table 11.1.
99
When running in the steady-state mode, the code solves the same equations
in the same order as for a transient calculation. A time-step size raust be
provided; this generally needs to start small but raay usually be increased as the
equations move toward convergence. This time-step size is used in the unsteady
term of all fluid conservation equations. The time is advanced as steps are
taken during steady state. Due to the nature of the calculation, the meaning of
this time is only partially physical. The solution is advanced somewhat just by
virtue of there being multiple tirae steps; however, a significant problem time
(not just number of time steps) must elapse for the solution to converge. During
a steady-state calculation, the energy equations for the thermal structures and
duct wall energy boundary conditions use an artificially large tirae-step size
(I.e. l.*10''° s) in order to keep these solids in therraal equilibrium with the
fluids during the progression toward steady state. The value of all transient
functions should be 1.0 in the steady-state mode.
When the code is running in the transient mode, the maximum number of
outer iterations allowed should be selected such that the convergence test in
Step 16 of Table 11.2 can be satisfied. This iteration limit is dependent on the
time step size and the convergence criteria Cj and («/V)p,„f. As the time step
size increases and the £j values decrease, the number of outer iterations needed
to achieve convergence will increase. Transient calculations in which the outer
iterations are routinely not converging should be discontinued and restarted
using a smaller tirae step size or allowing raore outer iterations to achieve the
desired level of convergence.
100
There is a need during most calculations to vary the time step size for
computational efficiency. Small time step sizes are generally needed at the
beginning of both steady-state and transient calculations and during the portions
of a transient calculation when the boundary conditions are changing rapidly.
Large time step sizes may be used after the initial part of a steady-state
calculation and during the portions of a transient calculation when the boundary
conditions are changing slowly. There are three ways for the user to control the
tirae step size: manual, Courant-based automatic, and change-based automatic.
Under the manual mode, the user supplies two time step sizes, Atj and At2,
and a time step number for switching, Nto- The first of these two tirae step
sizes is used for all time steps through tirae step number Ntol the second of
these two time step sizes is used thereafter.
Under the Courant-based automatic mode, the time step size is adjusted
based on the Courant condition, which relates the time step size to the number
of mesh cells a mass particle would traverse in one time step. This is
implemented as follows:
At J_
A,uA (11.9)
V,
where p is a user-input constant and (...)„ax is the same as the quantity used
in Eq. 11.8 but without the density. The tirae step size is adjusted using this
forraula at the time step numbers specified by the user. This mode of time step
size selection has a strong theoretical basis when calculations are performed
using a formulation which is explicit in time, which dictates P <1 and, thus,
restricts a particle of mass from completely traversing a cell during a time
step. There is less theoretical basis for choosing p for the current
impliclt-in-time formulation in COMMIX, although arguments can be made
for P » 1 .
Under the change-based automatic mode, the tirae step size is adjusted
based on the relative rate of change of certain variables. Specifically, the
step-to-step changes of the kinetic energy, fluid teraperature, and turbulent
viscosity for each fluid cell are evaluated using the following relational
expressions:
I T H _ rpn-i j
< e (11.11)
rp n
and
At=AtVP , '''•'''
where P is the same constant used in Eq. 11.14. If the resulting tirae step size
is greater than a user-input minimum time step size (At„j„) , all variables are
restored to their beginning of tirae step values and the current time step Is
repeated; otherwise, the calculation is terminated with an error message. During
a steady-state calculation, the logic controlling time step size decrease is
bypassed in the code until after the tirae step size has undergone at least one
increase (i.e. the changes are less than c„i„ for Nt2 consecutive steps); this
avoids needlessly decreasing the tirae step size early in the calculation where
quantities are expected to be changing by rather large araounts; during this early
stage of the calculation, the time step size is set by the code using what was
described above for the manual mode (i.e. switching from Ati to At2 at step
number Nto). During a transient calculation, the step-repeat path is also taken
if the outer iteration does not converge in the allowed maximum number of
iterations. If, after any time step size increase, the code during the next time
step finds that the time step must be repeated using a reduced time step size,
then the code will double the current value of Nt2; this will slow down the rate
at which the tirae step size can be increased and avoid sorae of the step repeats
encountered in ill-behaved cases.
iU2
There are four blocks of the calculation where an iterative method is used
to solve a system of linear equations. These are the solutions for pressure (P),
turbulent kinetic energy (k), turbulent kinetic energy dissipation rate (c), and
fluid enthalpy (h), which are Steps 6, 9, 11, and 14 in Table 11.2. Each of
these is denoted an "inner" iterative process, since they are all contained
within the outer iteration which sweeps through all blocks of equations multiple
times to complete a single time step.
Two different methods are used within the code for inner iterations:
successive overrelaxation and conjugate gradient. The successive overrelaxation
method is always used for the two turbulence equations and the fluid energy
equation; these equation systems have a coefficient matrix which has positive
diagonal elements and negative off-diagonal eleraents, is strongly or irreducibly
diagonally dominant, and is nonsymmetric. The coefficient matrix for the
pressure equation system has the same properties except that it is symmetric;
recognition of this symmetry property led to the addition of the conjugate
gradient method to COMMIX; the user may select either conjugate gradient or
successive overrelaxation as the method of solution for the pressure equation;
the former is recommended.
Brief descriptions of the two methods are given below. The impleraentation
of both methods is predicated on the fact that all of the coefficient matrices
are sparse; this is due to the physical restriction that a cell is only coupled
to its six closest neighbors in forming the difference equations. (Although
allowance is made in the fluid energy equation for coupling of nonadjacent fluid
cells via thermal structures, the number of such couplings is usually small and,
thus, the coefficient raatrix is still sparse.) The details of implementation are
deferred to the Programmer's Guide (Ref. 10).
ACKNOWLEDGEMENTS
REFERENCES
REFERENCES (Cont'd)
17. Robert Siegel and John R. Howell, Thermal Radiation Heat Transfer. 2nd
edition, McGraw-Hill Book Company, New York, NY, 822-831 (1981).
19. 0. Reynolds, "On the Dynamical Theory of Incompressible Viscous Fluids and
the Determination of the Criterion", Philos. Trans. R. Soc. Lon., Ser. A,
Math. Phys. Sci.. 185, 123 (1895).
21. L. Prandtl, "Uber eln neues Formelsystera fur die Ausgebildete Turbulenz",
Nachrichten Akaderaie der Wlssenschaften. Gottinpen,
Matheraatisch-Phvsikallsche Klas.qe 6-19, (1945).
REFERENCES (Cont'd)
26. P. Y. Chou, "On Velocity Correlations and the Solutions of the Equations
of Turbulent Fluctuations", Quart. Appl. Hath.. 1, 38-54 (1945).
27. K. Hanjalic and B. E. Launder, "A Reynolds Stress Model of Turbulence and
its Application to Thin Shear Flows", J. Fluid Mech., 52, 609-538 (1972).
31. Y. Nagano and M. Hishida, "Improved Form of the k-c Model for Wall
Turbulent Shear Flows", Trans. ASME, J. Fluids Engineering. Ij09, 156-150
(1987).
32. Lewis F. Moody, "Friction Factors for Pipe Flow", Trans. ASME. 61, 671-684
(1944).
35. E. Benjamin Wylie and Victor L. Streeter, Fluid Transients. FEB Press, Ann
Arbor, MI, 102-117 (1983).
37. David S. Kershaw, "The Incomplete Cholesky - Conjugate Gradient Method for
the Iterative Solution of Systems of Linear Equations", J. Coraput. Phys.,
26, 43-65 (1978).
108
APPENDIX A
HEXAGONAL FUEL ASSEMBLY
With this rainiraum inforraation, the code calculates all required geometrical
parameters--grid sizes in x and y directions, directional surface porosities,
volume porosities, wetted perimeters, hydraulic diameters, surface areas, etc.
and A.2, respectively. (Unlike what is shown in Figs. A.l and A.2, the six
corners of the bundle are represented in COMMIX as being sharp, not rounded.)
The quarter-pin and full-pin partitionings derive their names from how much of
a fuel pin is associated with each fluid cell in a constant-z plane in the bundle
interior; for quarter-pin partitioning, this is one quarter of one pin and for
full-pin partitioning this is one half of one pin and one quarter of two adjacent
pins (for a total of one full pin); there are, of course, exceptions raade for
fluid cells near the assembly wall.
The hex-geometry option can also be used even if the hexagonal fuel
asserably under analysis has some deviations from a regular hex-georaetry or
contains some internal structures (e.g., blockage) that affect the values of
volume porosity and directional surface porosities. The only difference is that
the user now has to input the values of volume porosity and directional surface
porosities that are different from those for a regular hex-georaetry. The user-
prescribed values override the code-calculated values.
The hex-geometry option is only applicable when the full cross section
of the bundle is raodeled. If only a sector (e.g., 1/12) is desired, then the
normal box-georaetry option raust be used.
A.2.1 Introduction
The presence of a helical wire wrapping around a fuel pin has two
effects on fluid flow.
The presence of wire wraps may be included by invoking either the smeared or
cell-integrated option, which are described below. There is no automated way for
including the effects of spacer grids.
The geometrical effects due to the presence of wire wraps are introduced
by modifying volume porosities and directional surface porosities. This is done
using the relations
Yv = Yv P A," dz , (A.l)
(AxAyAz)
and
(A.4)
Y2,k»i/2 ' Yz,k;,i/2 (AxAy)
where the superscript w refers to the wire wrap and A is the cross-sectional area
of the wire wrap. The first terra on the right-hand side of these four equations
is the value of the porosity as set by the presence of the fuel pins and the
irregular boundary surfaces. The integrals on the right-hand sides of Eqs. A.l-
A 3 are evaluated nuraerically. At each axial position, A is coraputed by
determining the wrap's proper location in a cell. Jhe step size for numerical
integration is taken to be the axial distance over which the wrap spirals around
the pin by three degrees, i.e.
This resistance force per unit volume due to the wire wrap is raodeled
as
where p is the fluid density and w is the axial velocity. The resistance force
raay be written in component form
where f^ is the coraponent of force in spatial direction 1 and becoraes part of the
distributed resistance terra Rj in the momentum equations (cf. Table 2.1). The
quantity (C"A) is a combination of a wire force multiplier and the projected
area of the wrap
Figure A.3 shows a typical wire wrap arrangement. Consider the wire
wrap as a spiral ring of width d^, attached to the fuel pin and located at
position S(x,y,z) as shown in Fig. A.4. The projected area is defined in terms
of a vector cross product as
tp is the radius of the fuel pin, ZQ is the reference axial position where wrap's
angular position a is zero, and P„ Is the wrap pitch. The change in the wire
wrap position vector is
113
-i^.ph
H 2-^P r
WIRE WRAP
P d
dA = " " [i(-sin a) + J cos a - K tan 8] da , (A.8b)
2ll
where
is the angle of Inclination between the wire wrap centerline and the fuel pin
centerline. Integrating Eq. A.8b between two z planes [k-1/2 and k+1/2] for a
given cell gives
- P d,., -
A = — j - ^ [i(cos a^-cos a.,)+j (sin a^-sin a.,)-9.(a^-a.,) tan Q] , (A.13)
where
and
02 - « ! = ^"'^IC^l/Z ~ ^l^-l/2>
(A.15)
115
The components of the projected wire area (A,, Ay, and Aj) raay be
extracted from Eq. A.13 for use in Eq. A.7. Substitution of this form of Eq. A.7
into Eq. A.6a defines the components of the wire force vector (f^, fy, and f,)
in Eq. A.6b:
P„d„
C, C ^ ( c o s O , - cos O.) , (A. 1 5 a )
AxAyAz 2n
and
These components are part of the distributed resistance source terms (R,, R,, and
R ) shown in Table 2.1 for the respective component momentum equations. The way
in which these wire force terms are incorporated into the finite-difference form
of the momentum equation source term (Eq. 4.24) is different for the axial and
transverse directions, since the expressions given by Eq. A.15 contain the axial
velocity component (w) but not the transverse velocity components (u and v) . The
term -f^/w becomes part of (Sp„)o for the z-direction equation and the terms -f,
and -fy become part of (S,Jo and (S,y)o, respectively, for the x- and y-dlrection
equations.
When a rod bundle is aligned along the z axis, the cross-flow friction
factor fx is given by (Ref. 3) the largest of the following three expressions:
116
and
Py - 2 r p 4-32rp
f, = 3 ii/Re. 1 + (A.lBc)
Py - 1 . 8 6 r p P„ - 2 r ,
p(Py-2rp) |uj
Re„ (A.19)
and
. _ P 2 r p |u^|
Re (A. 20)
The a x i a l f r i c t i o n f a c t o r f^ i s given by
__ P DbluJ (^22)
The distributed resistance due to the fuel pins for each coordinate
direction involves the velocity component in that direction; therefore, the
finite-difference form of the raoraentum equation source terra (Eq. 4.24) will
contain the term -R,/u in (Sp„)o , -Ry/v in (Spy)o , and -R^/w in (Sp,)o , where Rj
is given by Eq. A.17 for j - x, y, and z.
One way of modeling the heat source frora fuel pins requires minimal user
input. When this is selected, the code calculates the heat source in a cell
using the relation
Equation A.23 assumes that all axial planes have the sarae normalized
transverse power distribution QIN, and all points in a transverse plane (cells
with sarae (i,j) locations) have the sarae normalized axial power distribution QK.
The power Q calculated in Eq. A. 23, is divided by the fluid cell volume
(Vf„) and added to the heat source terra (q\,) in the fluid-energy equation.
Therraal Inertia of fuel pins is not accounted for in this calculation. The use
of the easy heat-source input described here is therefore recommended only for
steady-state analysis and slow transients. For fast transients, fuel pins should
be considered as therraal structures (described in Sec. 6 ) .
. Prescribe a volumetric heat source (q") for each cell using array
QSOUR, or
A.4.3 Initialization
APPENDIX B
MASS REBALANCING
B.l Introduction
B.2 Description
Adjusting the pressures by the pressure correction adjusts the velocity field and
the mass flow rates, since pressure and velocity are related through Eq. 5.3.
|n-l 1 1 1
Surface n
1 1 '
1 t 1 1 1 '
1
i 1 1 ' 1 1
1 1
— 1 - - - 1 —
1
' i 1
1 1 1 1
1 1
—1-- -_4--4--i--^
1
1
' ' 1
1 1
' ! 1
1 1 1
1 ; 2
1
' 1 2 1
1 ! 1
f- -
1
1 RE GION| I 1 1
1
where P„* is the pressure, 6„* is the mass residual, a„ and b„ are the
coefficients of the pressure equation (cf. Table 5.2), and the summation is over
the six cells which are the neighbors of cell m. The uses of P as a superscript
on a„ and b„ and as a subscript on S„* have been oraitted for notational
simplicity. At this point, P„* has not converged; thus, the continuity equation
is not satisfied and the mass residual is not zero. These pressure equations are
summed for all cells in rebalancing region n to give
(B.2)
amo Pm - ^ {a„jP;)-l=m E 6:
The right hand side of this equation is the net raass residual for rebalancing
region n.
(B.3)
jPm - .^ (a^P.)-bmO
The new pressure is assumed to be the sum of the old pressure and a pressure
correction (APn)
Pm = Pm > A P „ ,
where the pressure correction is a constant for all cells m in rebalancing
region n. Substitution of Eq. B.4 into Eq. B.3 gives
AP„
E ,Pm - ^(am.P<') - K ten
in€n
(B.5)
AP„_i - E E a,, AP„.i = 0 ,
E Vte(n-l) J [m6n\<€(n«l) /.
men
where the summations over f involving pressure corrections have been split into
three partial summations
(B.6)
S (^-^•) = J-U (^'"'^ ' £ ("-'•) ' ,^lu^^'''^
to recognize that the cell referred to by t is in one of three rebalancing
regions n-1, n, or n+1. Equation B.5 holds for all of the N rebalancing
regions with two exceptions: (1) rebalancing region 1 has no AP„_i term, since
there is no rebalancing region 0; (2) rebalancing region N has no AP„,i terms,
since cells outside of the N regions do not participate m rebalancing.
where
for n = l
(B.8)
for n=2,...,N
[ men Lie (n-1)
122
E «: (B.ll)
where use has been made of the relationship between the coefficients in the
pressure equation (cf. Table 5.2)
^t (B.12)
Since the terms A^ „ and B„ are known, the set of N equations given by Eq. B.7
form a linear system of the form
B.4 Application
successive regions are defined as you move through the problem geometry toward
the outlet.
The pressure field P obtained here frora Eq. B.4 is not the final solution,
since this pressure only satisfies net mass conservation for each rebalancing
region -- not for each cell within the rebalancing region. Mass conservation for
each cell must be obtained by solving the pressure equation for each cell. As
rebalancing makes large-scale pressure corrections rapidly by direct solution,
it reduces the number of iterations required to solve the norraal pressure
equations on a cellwise basis. In this regard, rebalancing is perforraed at the
beginning of every IREBIT-th inner Iteration, where the value of IREBIT is
supplied by the user. Since rebalancing requires some work, there is a tradeoff
involved in selecting a value for IREBIT: rebalancing too frequently may
decrease the CPU time spent on inner iterations at the expense of excessive CPU
tirae spent in actually performing the rebalancing.
124
Internal:
External: