Professional Documents
Culture Documents
AIAA 99-0934: A Second Law Based Unstructured Finite Volume Procedure For Generalized Flow Simulation
AIAA 99-0934: A Second Law Based Unstructured Finite Volume Procedure For Generalized Flow Simulation
AIAA 99-0934: A Second Law Based Unstructured Finite Volume Procedure For Generalized Flow Simulation
For permission to copy or republish, contact the American Institute of Aeronautics and Aeronautics
1801 Alexander Bell Drive, Suite 500, Reston, Virginia 20191-4344
A Second Law Based Unstructured Finite Volume Procedure for
Generalized Flow Simulation
Alok Majumdar
Sverdrup Technology
Huntsville, Alabama
ABSTRACT
An unstructured finite volume procedure has been developed for steady and transient thermo-fluid
dynamic analysis of fluid systems and components. The procedure is applicable for a flow network
consisting of pipes and various fittings where flow is assumed to be one dimensional. It can also be used
to simulate flow in a component by modeling a multi-dimensional flow using the same numerical scheme.
The flow domain is discretized into a number of interconnected control volumes located arbitrarily in
space. The conservation equations for each control volume account for the transport of mass, momentum
and entropy from the neighboring control volumes. In addition, they also include the sources of each
conserved variable and time dependant terms. The source term of the entropy equation contains entropy
generation due to heat transfer and fluid friction. Thermodynamic properties are computed from the
equation of state of a real fluid. The system of equations is solved by a hybrid numerical method, which
is a combination of simultaneous Newton-Raphson and successive substitution schemes. The paper also
describes the application and verification of the procedure by comparing its predictions with the
analytical and numerical solution of several benchmark problems.
1
NOMENCLATURE r Radius (ft)
S Momentum Source(lb f )
A Area (ft2) .
Notes:
Atmosphere
1) Number of Internal Nodes = 7 16
14.7 psia
2) Number of Branches = 12
3) Total Number of Equations = 7 x 4 + 12 = 40
4) Number of Equations Solved by Newton
25
Raphson Method = 7 + 12 = 19
5) Number of Equations Solved by Successive
Substitution Method = 3 x 7 = 21
47
Helium
151 psia 87 86
o
70 F
Atmosphere
14.7 psia 66 46
50
Legend
137 88
XX Branch
Solution Scheme . . .
The system of equations is solved by a hybrid mji mij = - mji
numerical scheme, which is a combination of
the Newton-Raphson and successive sub-
stitution schemes. The equations which are
strongly coupled are solved by the Newton- Node
Raphson method. The equations which are k=2 j=4
weakly coupled are solved by the successive Figure 2- Schematic of Nodes, Branches and
substitution scheme. The successive sub- Indexing Practice
stitution scheme is also used to develop an
initial guess for the Newton-Raphson scheme Momentum Conservation Equation
to ensure numerical stability.
The flow rate in a branch is calculated from
GOVERNING EQUATIONS the momentum conservation equation
(Equation 3) which represents the balance of
Figure 2 displays a schematic showing fluid forces acting on a given branch. A
adjacent nodes, their connecting branches, typical branch configuration is shown in
and the indexing system used in this paper. Figure 3. Inertia, pressure, gravity, friction
In order to solve for the unknown variables, and centrifugal forces are considered in the
mass and entropy conservation equations and conservation equation. In addition to these
the equation of thermodynamic state are five forces, a source term S has been provided
written for each internal node and flow rate to represent any external momentum sources.
equations are written for each branch. For example, this external momentum source
term can be used to model a pump in a flow
Mass Conservation Equation system.
Node
j
Branch
.
mij
Node i
g
ri rj
Axis of Rotation
gVcos . . K A 22
pi pjA g Kfmij mij A 2 g r r S rot 2 2
j i
c c
ms ms
.
j n j n MAX mij ,0 Q
. . . i
MAX mij ,0 s MAX mij ,0 s S ij , gen (4)
j 1 j i j 1 . T
mij i
Equation 4 shows that for unsteady flow, the A modified virial equation of state is used to
rate of increase of entropy in the control calculate the density from the computed
volume is equal to the rate of entropy pressure and temperature at a given node.
transport into the control volume plus the rate
of entropy generation in all upstream i N j M
heat transfer. The MAX operator in Equation Ai(T) and Bj(T) are polynomials in T and 1/T
4 reflects the use of an upwind differencing
scheme which has been extensively This equation was originally developed by
employed in the numerical solution of Benedict, Webb and Rubin (BWR) and later
Navier-Stokes equations in convection heat modified by Bender 5 . This equation was the
transfer and fluid flow applications. When basis of the computer code GASP developed
the flow direction is not known, this operator by Hendricks et al 6. This equation enabled
allows the transport of entropy only from its PVT calculations to be made in the liquid and
upstream neighbor. In other words, the vapor phases. The derived properties of
upstream neighbor influences its downstream enthalpy and entropy were also obtained.
neighbor but not vice versa. The first term in The
the right hand side of the equation represents
Table 1 - Mathematical Closure
term on the right hand side of the equation is u u ij cosij - u i
negligible (based on an order of magnitude A Aij
argument). The fourth term on the right hand y Branch i shear Yij
j=1
side corresponds to the friction term in the nsi
one dimensional momentum conservation u wall ik coswall ik - u i
equation. For multi-dimensional flow, + Aik (9)
y wall ik
friction is modeled by shear force as k=1
discussed below. where i is the current branch, np is the
number of parallel branches to branch i, and
Momentum Transport Due to Shear ns is the number of parallel solid walls to
branch i
N12
N1 N2 12
1 2
AN YN
12
1 2 S1 S2
S12
AS YS S1 S2
S12
S1 S2
Figure 5 - Branch and Node Schematic for
Transverse Momentum Exchange
Figure 4 - Branch and Node Schematic for
Shear Exchange
Transverse Momentum Transport
The transverse momentum component of flow rates also appear in the entropy equation.
Equation 7 can be expressed in terms of a The governing equations to be solved are
force per unit volume. strongly coupled and nonlinear and therefore
they must be solved by an iterative method.
vu ( v u) There are two types of numerical methods
V ( x)( y)( z) available to solve a set of non-linear coupled
y ( y)
algebraic equations: (1) the successive
= ( x)( z)( vu) = m trans u substitution method and (2) the Newton-
Raphson method. In the successive
(10) substitution method, each equation is
expressed explicitly to calculate one variable.
Figure 5 represents a set of nodes and The previously calculated variable is then
branches for which transverse momentum substituted into the other equations to
exchange will take place. Let branch 12 calculate another variable. In one iterative
represent the current branch which will cycle each equation is visited. The iterative
receive transverse momentum from the cycle is continued until the difference in the
surrounding branches. Branch S12 represents values of the variables in successive iterations
an adjacent parallel branch, while branches becomes negligible. The advantages of the
S1 and S2 represent the adjacent normal successive substitution method are its
branches. simplicity to program and its low code
overhead. The main limitation, however, is
The finite volume formulation for transverse finding an optimum order for visiting each
momentum for the ith branch can be written equation in the model. This visiting order,
as shown in equation 11. which is called the information flow diagram,
is crucial for convergence. Under-relaxation
n ij
(partial substitution) of variables is often
1
ui max - ijk cos ijk ,0
m
mi
n ij
required to obtain numerical stability.
vu k =1
V (11)
y n ij
i
j=1
- uij cos ij max 0,
1
m In the
ijk cos ijk
Newton-Raphson method, the
n ij
k =1 simultaneous
solution of a set of non-linear
Detailed derivation of equation (9) and (11) equations is achieved through an iterative
appear in GFSSP User’s Manual. 7 guess and correction procedure. Instead of
solving for the variables directly, correction
SOLUTION PROCEDURE equations are constructed for all of the
variables. The intent of the correction
In the sample circuit shown in Figure 1, equations is to eliminate the error in each
pressures and temperatures are to be equation. The correction equations are
calculated for the 7 internal nodes; flow rates constructed in two steps: (1) the residual
are to be calculated in the 12 branches. The errors in all of the equations are estimated and
total number of equations can be evaluated (2) the partial derivatives of all of the
from the following relationship: Number of equations, with respect to each variable, are
equations = Number of internal nodes * calculated. The correction equations are then
Number of scalar transport equations + solved by the Gaussian elimination method.
Number of branches. Therefore, the total These corrections are then applied to each
number of equations to be solved is 40 (= 7 X variable, which completes one iteration cycle.
4 + 12). These iterative cycles of calculations are
repeated until the residual error in all of the
There is no explicit equation for pressure. equations is reduced to a specified limit. The
The pressures are implicitly computed from Newton-Raphson method does not require an
the mass conservation equation (Equation 2). information flow diagram. Therefore, it has
The flow rates are calculated from Equation improved convergence characteristics. The
3. The inertia and friction terms are nonlinear main limitation to the Newton-Raphson
in Equation 3. The pressures and mass flow method is its requirement for a large amount
rates appear in the flow rate equations. The of computer memory.
5. Calculate density and temperature from
The present formulation employs a novel the equation of state for calculated
numerical scheme, SASS (Simultaneous pressure and entropy at each internal
Adjustment with Successive Substitution) node. Viscosity is also computed
which is a combination of the successive from the thermophysical property
substitution and Newton-Raphson methods. correlation for calculated pressure
The mass and momentum conservation and temperature.
equations are solved by the Newton-Raphson 6. Calculate flow resistance parameter (K f)
method. The entropy conservation equations of each branch. Kf is a function of
are solved by the successive substitution density and viscosity.
method. The underlying principle for making 7. Calculate the maximum difference in
such a division was that the equations which values of entropy, density, and flow
are more strongly coupled are solved by the resistance parameters between
Newton-Raphson method. The equations successive iterations. Steps 3 to 7
which are not strongly coupled with the other constitute one iteration cycle.
set of equations are solved by the successive 8. Repeat steps 3 to 7 until the maximum
substitution method. Thus, the computer difference is less than the specified
memory requirement can be significantly convergence criterion. Steps 2 to 8
reduced while maintaining superior numerical constitute all operations required for
convergence characteristics. To improve the one time step.
convergence and stability of the numerical 9. Repeat steps 1 to 8 until final time is
scheme, the successive substitution method is reached.
used to provide an initial guess for pressure
and flow rate. Equations 2 and 3 are
rewritten such that pressures and flow rates
can be estimated at each node and branch.
1. At the beginning of a new time step, The numerical procedure described in the
provide the initial solution of all previous sections was incorporated into a
dependant variables in the flow general purpose computer program named
domain e.g. pressure, resident mass, Generalized Fluid System Simulation
density and entropy at all internal Program (GFSSP) . The computer program
and boundary nodes, flow rates at all has three major parts. The first part consists
branches. of the subroutines for the preprocessor. The
2. Begin the outer iteration loop; the preprocessor allows the user to interactively
purpose of this loop is to calculate create the flow network model consisting of
entropy and density at all internal nodes and branches. All of the input
nodes and flow resistance in the specification, including the boundary
branches. conditions, are specified through the
3. Solve mass conservation equation preprocessor. The second major part of the
(Equation 2) in internal nodes, program consists of the subroutines that
momentum conservation equation in provide the initial conditions and then
branches (Equation 3) and equation develop and solve all of the conservation
of resident mass in internal nodes equations in the flow network. The third part
(Equation 6) by Newton Raphson of the program consists of the
method (Appendix - A). thermodynamic property programs, GASP
4. Solve entropy conservation equation by and WASP that provide the necessary
successive substitution method thermodynamic and thermophysical property
(Appendix - B). data required to solve the resulting system of
equations.
information necessary for the model. The
Figure 6 shows GFSSP’s process flow solver module reads the input data file and
diagram. The user runs the interactive produces the solution in conjunction with the
preprocessor to generate the input data file. thermodynamic property programs.
The input data file contains all the
User
Equation
Solver
Preprocessor Solver and Property Module
Input Output
Data File
Receiving Reservoir
Pipe
150 ft
o w L = 1500 ft
Fl
Supply Reservoir D = 6 in.
/D = 0.005
(WRT Gravity Vector) = 95.74
Water
Gravity Vector
Gate
Pump Valve
1 12 2 23 3 34 4
Legend
XX Branch
X Boundary Node
X Internal Node
Figure 8 - Finite volume Model of Flow System Described in Example 1.
RESULTS
Where:
The feasibility, robustness and verification of p = Pressure rise, lbf/ft
the proposed method have been demonstrated .
by simulating five example problems. They m = Flow rate, lbm/sec
are:
The momentum source, S, in Equation 3 was
1. Flow system consisting of pump, valve then expressed as:
and pipe line.
2. Water distribution network. S p A
3. Compressible flow through a converging-
diverging nozzle. Valve Model
4. Blow down of a pressurized tank. The resistance in branch 23 representing the
5. Recirculating flow in a square cavity. valve was computed by the two-K method of
Hooper8 . For this option, K f of Equation 3
Example 1 - Flow System Consisting of a
Pump, Valve and a Pipe Line was expressed as:
K1 / Re K 1 l / D
A problem commonly encountered in fluid Kf (13)
2 g c u A 2
engineering is to match a pump’s
characteristics with the operating system’s
characteristics. The designer needs to know Where:
the flow rate in the system and the power K1 = K for the fitting at Re = 1;
consumed by the pump. The system Kµ = for the fitting at Re = µ
considered for this example is shown in D = Internal diameter of attached pipe, in.
Figure 7.
The constants K1 and Kµ for common fittings
The fluid system show in Figure 7 was and valves are listed in reference 8.
simulated with a finite volume model
consisting of four nodes and three branches as
shown in Figure 8.
Pump Model
The pump was modeled as a momentum Pipe Model
source in branch 12. The pump The resistance in branch 34 was computed
characteristics were expressed as: from the friction factor in the pipe line. The
resistance coefficient, K , for a pipe with
2
D p = A0 + B0 m (12) length, L, diameter D, and surface roughness,
was expressed as:
It took 28 iterations to satisfy the convergence
8fL criterion. The solutions are shown in Tables
Kf 2 and 3. Table 2 show pressures,
u D 5 g
2 temperatures, compressibility factors and
c density in nodes 2 and 3. It may be noted that
(14) water was treated as a compressible fluid and
the compressibility factor is very low as
Where ru is the density of the fluid at the expected.
upstream node of a given branch.
Table 2 shows Kf , pressure drop, flow rate,
The Darcy friction factor, f, is determined velocity, Reynolds number and Mach number
from the Colebrook Equation 9 which is in each branch. The predicted flow rate is
expressed as: 191 lbm/sec and the pump is supplying 214
1 2.51 psid pressure rise to meet the system
2 log (15) requirement. The predicted system and pump
f 3.7 D Re f characteristics are shown in Figure 8 which
also provides verification of the predicted
Where e/D and Re are the surface roughness operating point shown in Table 3.
factor and Reynolds number respectively.
INTERNAL NODES
NODE P(PSI) T(F) Z RHO EM(LBM) QUALITY
(LBM/FT^3)
2 0.2290E+03 0.6003E+02 0.1186E-01 0.6241E+02 0.0000E+00 0.0000E+00
3 0.2288E+03 0.6003E+02 0.1185E-01 0.6241E+02 0.0000E+00 0.0000E+00
150
100
Pump Characteristics
Fluid System Characteristics
50
systems which are commonly known as flow
network. In general, water supply systems
are considered as flow networks, since nearly
0
0 500 1000 1500 2000 2500 3000 all such systems consist of many
Mass Flow Rate (lbm/s)
interconnecting pipes. A ten pipe
4
8 p
sia 3 4
5 p
sia 4
(commercial steel) distribution system is
shown in Figure 10.
5 6
1 2
5
0 p
sia
7 8
9
4
6ps
ia
1.6
1.4 Q - GFSSP Solution (ft^3/sec)
1.2
Q - Hardy Cross Prediction (ft^3/sec)
1
Flowrate (ft^3/sec)
0.8
0.6
0.4
0.2
0
-0.2
-0.4
12 25 27 53 56 57 64 68 78 89
Branch Number
Figure 11 - A Flow Rate Comparison Between GFSSP and Hardy Cross Method Predictions
in this circuit simulate pipes. The length,
The system shown in Figure 10 is modeled by diameter and roughness factor of all branches
using 9 nodes and 10 branches as shown in are given in Table 4.
Figure 10. The fluid was assumed
incompressible. Nodes 1, 3, 4 and 9 are Figure 11 shows a comparison of flow rates
boundary nodes where the pressures are between the present predictions and the Hardy
prescribed. Node 1 represents the inlet Cross method. The comparison appears
boundary node. Nodes 3, 4 and 9 are outlet reasonable considering the fact that the Hardy
boundary nodes. All of the remaining nodes Cross method assumes a constant friction
(2, 5, 6, 7 and 8) are internal nodes where the factor in the branch while the present method
pressures are calculated. All of the branches computed the friction factor for each branch
during every iteration. Therefore, as the becomes choked when the flow velocity
flowrates change the friction factor also equals the local velocity of sound. The
changes. purpose of this example is to investigate how
accurately the present procedure can predict
Example 3 - Compressible Flow in a the choked flow rate in a converging-
Converging-Diverging Nozzle diverging nozzle.
Not to Scale
0.158 in.
6.142 in.
- 1
+ 1
and below, the mass flow rate remained throat
Pinlet
constant due to choking of the flow at the R Tinlet
nozzle throat.
Example 4 - Simulation of the Blow Down of
Table 5 - Predicted Mass Flow Rate with a Pressurized Tank
Varying Exit Pressure
In the previous examples we considered the
Pexit . simulation of steady state flow in a given
(psia) m (lbm/s) flow circuit. In this example we will employ
the capabilities of the unsteady flow history of the isentropic blow down process.
formulation to simulate the process of These predicted values will then be compared
blowing down a pressurized tank. with the analytical solution.
Consider a tank with an internal volume of 10 The physical schematic for Example 4 is
ft3 containing nitrogen gas at a pressure and shown in Figure 13(a) and a schematic of the
temperature of 100 psia and 80 F corresponding finite volume model is shown
respectively. The nitrogen is discharged into in Figure 13(b). The venting process can be
the atmosphere through an orifice with a 0.1 modeled with two nodes and one branch.
inch diameter until the pressure in the tank Node 1 is an internal node which represents
drops to 50 psia. The purpose of this example the tank.
is to determine the blow down time and the
pressure, mass flow rate and temperature
Tank
V = 10 ft3
Initial Conditions
d p / pi
(1 3 ) / 2
p 90 Volume = 10 cubic feet
70
( 1) / 2 ( 1)
A 2
g c pi i (17) 60
i V 1
Pressure (psia)
50
p Time (sec)
pi Figure 13 - Comparison of the Predicted
Pressure History by Finite Volume Method
2 /( 1)
1 2
( 1) / 2 ( 1)
g c p i A using GFSSP and the Analytical Solution
1 (18)
2 1 i V
Example 5 - Recirculating flow in a Square
Cavity
The analytical and finite volume solutions
obtained by GFSSP are compared in Figure Flow in a square cavity is induced by moving
its top wall at a constant speed as shown in
Figure 15. The density of the fluid is uwall = 100 ft/sec
assumed constant at 1.00 lb m/ft3 , and the
viscosity of the fluid is assumed to be 1.00
lbm/(ft-sec). The bottom and side walls are
fixed. The top wall is moving to the right at a
constant speed of 100 ft/sec. The
corresponding Reynolds number for this
situation is Re = 100.
12 inches
Top Wall Top Wall Top Wall Top Wall Top Wall Top Wall
7 714
14 1421
21 2128
28 2835 35 3542 42 4249 49
Side Wall 67 1314 2021 2728 3435 4142 4849 Side Wall
6 613
13 1320
20 2027
27 2734
34 3441
41 4148
48
Side Wall 56 1213 1920 2627 3334 4041 4748 Side Wall
5 512
12 1219
19 1926
26 2633
33 3340
40 4047
47
Side Wall 45 1112 1819 2526 3233 3940 4647 Side Wall
4 411
11 1118
18 1825
25 2532 32 3239
39 3946 46
Side Wall 34 1011 1718 2425 3132 3839 4546 Side Wall
Side Wall 23 910 1617 2324 3031 3738 4445 Side Wall
2 29
9 916
16 1623 23 2330 30 3037 37 3744 44
Bottom Wall Bottom Wall Bottom Wall Bottom Wall Bottom Wall Bottom Wall
Dimensionless Height
0.7
0.6
0.5
0.4
The finite volume model of the driven cavity which considers an one-dimensional
consists of 49 nodes (48 of which are internal) form for system level calculations.
and 84 branches. For numerical stability, one Fluid friction is calculated from the
node (Node 1) was assigned to be a boundary friction factor or loss coefficients.
node with an arbitrary pressure of 100 psi. A For component level analysis, the
unit depth (1 inch) was assumed for the multi-dimensional form of the
required areas. The model is shown momentum equation is used. Fluid
schematically in Figure 16. Modeling details friction is, then, calculated from the
are provided in GFSSP user’s manual. local velocity gradient and viscosity.
In addition, transverse transport of
Figure 16 shows a comparison between the momentum is also computed.
benchmark numerical solution and the finite 4. Thermodynamics and fluid dynamics of
volume predictions along a vertical plane at the flow is linked through entropy
the horizontal midpoint. As can be seen in and pressure. The second law
Figure 17, the results of this coarse grid formulation allows the calculation of
model compare very favorably with the entropy generation through heat and
benchmark numerical solution of Burggraf. fluid flow. All thermodynamic and
thermophysical properties are
CONCLUSIONS computed from local values of
pressure and entropy.
1. The present paper has described a 5. The system of equations is solved by a
generally applicable numerical novel numerical method which is a
method to perform thermo-fluid combination of successive
dynamic analysis of a fluid system or substitution and Newton Raphson
component. Methods. The method has
2. A novel unstructured co-ordinate system demonstrated a remarkable stability
has been used; this allows the for both system and component level
development of mass, momentum analysis.
and entropy conservation equations 6. The method has been incorporated into a
in a complex flow network defined general purpose computer program which
by interconnected nodes and is extensively being used in many
branches. aerospace engineering applications and
3. The method described here uses a the computer program, GFSSP, is
generalized momentum equation available through NASA/Marshall Space
Flight Center’s Technology Transfer Generalized Fluid System Simulation
Center. Program to Model Flow Distribution
in Fluid Networks”, Sverdrup
ACKNOWLEDGEMENT Technology Report No. 331-201-97-
005, Contract No. NAS8040836,
This work was performed under Task No. October, 1997.
371-401 for Contract No. NAS8-40836 with 8. Hooper, W.B., “The Two-K Method
Mr. Henry Stinson of Marshall Space Flight Predicts Head Losses in Pipe
Center as Task Manager. The author would Fittings.”, Chem. Engr., Aug. 24,
like to acknowledge the contribution of Mr. pp.97-100, 1981.
John W. Bailey, Paul Schallhorn and Todd 9. Colebrook, C.F., “Turbulent Flow in
Steadman of Sverdrup Technology in the Pipes, with Particular Reference to
development and testing of GFSSP. The the Transition Between the Smooth
author would also like to acknowledge the and Rough Pipe Laws”, J. Inst. Civil
comments and suggestion of Mr. Tom Engineering, London, vol. 11, pp.
Beasley of Sverdrup Technology during the 133-156, 1938-1939.
course of this work. 10. Moody, F.J., “Introduction to Unsteady
Thermofluid Mechanics”, John
REFERENCES Wiley, 1990.
11. Burggraf, O.R., “Analytical and
1. Hardy Cross, “Analysis of Flow in Numerical Studies of the Structure of
Networks of Conduits or Conductors:, Steady Separated Flows”, Journal of
Univ. Ill. Bull. 286, November 1936. Fluid Mechanics, Vol. 24, part I, pp. 113-
2. Patankar, S.V. and Spalding, D.B., “A 151, 1966.
Calculation Procedure for Heat,
Mass and Momentum Transfer in APPENDIX - A
Three-Dimensional Parabolic
Flows”, Int. J. Heat Mass Transfer, Newton-Raphson Method of Solving
Vol. 15, pp. 1787-1806, 1972. Coupled Nonlinear System of Algebraic
3. Datta, A.B. and Majumdar, A.K., “Flow Equations
Distribution in Parallel and Reverse
Flow Manifolds”, Int. J. Heat & The application of the Newton-Raphson
Fluid Flow, Vol. 2, No. 4, pp. 253- Method involves the following 7 steps:
262, 1980
4. Bejan, A., Entropy Generation Through 1. Develop the governing equations:
Heat and Fluid Flow, New
York,Wiley, 1982. The equations are expressed in the following
5. Bender, E., “Equations of State Exactly form:
Representing the Phase Behavior of
Pure Substances”, Proceedings of the
f 1( x , x 2 , x 3 ,....... x n) 0
1
Fifth Symposium on Thermophysical
Properties, ASME, pp. 227-235, f ( x , x , x ,....... x ) 0
2 1 2 3 n (A-1)
1970.
6. Hendricks, R.C., Baron, A.K., and Peller, ........................................
I.C., “GASP - A Computer Code for
Calculating the Thermodynamic and f n ( x , x 2 , x 3 ,....... x n) 0
Transport Properties for Ten Fluids: 1
Parahydrogen, Helium, Neon,
Methane, Nitrogen, Carbon If there are n number of unknown variables,
Monoxide, Oxygen, Fluorine, Argon, there are n number of equations.
and Carbon Dioxide”, NASA TN D-
7808, February, 1975. 2. Guess a solution for the equations.
7. Majumdar, A.K., Bailey, J.W.,
Schallhorn, P., Steadman, T., “A
Guess x1* , x *2 , x *3 ,....... x *n as an initial f 1 f 1 f 1 f
........ 1 '
x1 x 2 x 3 x n x 1 R1
solution for the governing equations
f f f f x ' R
3. Calculate the residuals of each equation.
2 2 2 ........ 2 2 2
x1 x 2 x 3 x n
......................................
When the guessed solutions are substituted
into Equation A-1, the right hand side of the
f n x 'n R n
equation is not zero. The non-zero value is
f f f
the residual.
n n n
........
x1 x 2 x 3 x n
f 1( x * , x *2 , x *3 ,....... x *n) R1 ' , x ' , x ' ,....... x ' by
1 5. Solve for x1 2 3 n
f 2 ( x * , x *2 , x *3 ,....... x *n) R 2 solving the simultaneous equations.
1
........................................ 6. Apply correction to each variable.