Professional Documents
Culture Documents
October 2011
Write to:
NASA STI Help Desk
NASA Center for AeroSpace Information
7115 Standard Drive
Hanover, MD 21076-1320
NASA/TM2011-217181
October 2011
The use of trademarks or names of manufacturers in this report is for accurate reporting and does not constitute an
official endorsement, either expressed or implied, of such products or manufacturers by the National Aeronautics
and Space Administration.
Available from:
NASA Center for AeroSpace Information
7115 Standard Drive
Hanover, MD 21076-1320
443-757-5802
Abstract
Several boundary conditions that allow subsonic and supersonic ow into and out of the
computational domain are discussed. These boundary conditions are demonstrated in
the FUN3D computational uid dynamics (CFD) code which solves the three-dimensional
Navier-Stokes equations on unstructured computational meshes. The boundary conditions
are enforced through determination of the ux contribution at the boundary to the solution
residual. The boundary conditions are implemented in an implicit form where the Jacobian
contribution of the boundary condition is included and is exact. All of the ows are governed by the calorically perfect gas thermodynamic equations. Three problems are used to
assess these boundary conditions. Solution residual convergence to machine zero precision
occurred for all cases. The converged solution boundary state is compared with the requested boundary state for several levels of mesh densities. The boundary values converged
to the requested boundary condition with approximately second-order accuracy for all of
the cases.
Introduction
boundary normal, U = U n
, where U = ui + vj + wk.
Designated by the sign and magnitude of U , the ow conditions at the boundary are
listed in Table 1. The Euler equations have ve eigenvaluesthree that are associated with
convective waves, 24 , and two that are associated with acoustic waves, 1,5 . A positive
eigenvalue corresponds to a wave that is entering the domain and that conveys physical
information specied from the outside (i.e., the boundary condition). A negative eigenvalue
is a wave that is leaving the solution domain. As discussed in Kim et al. [7], various
conditions for a boundary are summarized in Table 1. For example, for the specication
Requested
physical state
Interior state
- n
3
R+ = Ui +
R = Ub
XX
y
XXX
2cb
1
2ci
1
Condition
Eigenvalue
|U |
1
2
3
4
Subsonic inow
<0
<c
<0
Subsonic outow
>0
<c
<0
Supersonic inow
<0
>c
>0
Supersonic outow > 0
>c
<0
*
Alternatively and U or and p, but not U
Specify
>0
<0
>0
<0
>0
<0
>0
<0
>0
<0
>0
<0
>0
>0
>0
<0
pt , Tt , , *
p
All
None
and p.
Boundary Conditions
To evaluate the uxes at the boundary, information from the interior of the domain is
combined with the physical constraints of the problem. As shown in Figure 2, the ux at
the boundary depends on a combination of the left and right states (q L and q R ) and the
direction, n
, and area, A, of the boundary (F = f(
n, A, q L , q R )). The left state is equal to
the interior state, q i , and the right state is a function of the interior state, q i , the free-stream,
q , and/or user-specied parameters, B, depending on the boundary condition.
The linearization of the ux function for xed grids, is written as the change in the ux
function, F , with respect to the state vector, q, on the left side of the boundary:
F
F
F q R
=
+
(1)
q L
q L
q R q L
2
Left state
Right state
qL = qi
q R = f(q i , q , B)
F
= u c , v
= v c , w
= w c ,
=
, u
= TT
= c2 T
e = e c2 , c = c c , T
(2)
(3)
= 1, p = 1/, c = 1, T = 1
u = M cos cos , v = M sin ,
(4)
w = M sin cos (5)
The equations in the subsequent sections are written in their non-dimensional form.
2.1
Specify
Extrapolate
Update
Outow
M , [M 0], ,
None
All
The far-eld boundary condition species the free-stream conditions that are calculated
from the user input variables M , , and .
M cos cos
c2
, U = M sin
(6)
= 1, c = 1, p =
M sin cos
3
qR = U
p
2.2
(7)
Specify
Extrapolate
Update
Inow/outow
M [M 0]
Entropy (outow)
, p
conditions, q o = , U , p .
R+ = Ui +
2ci
,
1
R = Uo
2co
1
(8)
where
Ui = U i n
,
T
U i = [ui , vi , wi ] ,
Uo = U o n
,
T
U o = [uo , vo , wo ] ,
Mi =
|Ui |
ci
pi
i
po
c2o =
o
c2i =
(9)
(10)
(11)
If the ow at the boundary is locally supersonic leaving the domain (Mi 1), then no
incoming characteristic waves exist; thus, R is set equal to
R = Ui
2ci
1
(12)
2co
1
(13)
A velocity, Ub , and the speed of sound, cb , at the boundary are the sum and dierence of
the invariants:
Ub =
1 +
R + R ,
2
cb = 4 ( 1) R+ R
(14)
The velocity that is imposed on the boundary depends on the local direction of ow. If
the sign of U is positive, then the ow is exiting the computational domain and the
entropy is extrapolated from the interior and is used to update the density at the boundary.
Conversely, a negative U indicates that the ow is entering the computational domain and
4
the free-stream entropy is used. Summarizing, the velocity and entropy on the boundary
are calculated from the following equations.
n, if U > 0 (outow)
U i + (U Ui )
(15)
Ub =
U o + (U Uo )
n, if U 0 (inow)
2
i
c1
, if U > 0 (outow)
i
sb =
(16)
2
c
o
1
,
if
U
0
(inow)
The density and pressure on the boundary are then calculated as follows.
2 1/1
cb
b c2b
, pb =
b =
sb
(17)
qR = U b .
pb
2.3
(18)
Specify
Extrapolate
Update
Outow
M [0 M < 1]
, p
The Mach number at the boundary, Mset , is specied for the entire boundary, and the ow
is assumed to be adiabatic and isentropic. The local acoustic speed is determined from
the temperature of the interior state, q i , with the local speed of sound determined using
Eq. (19).
pi
(19)
c i = Ti , T i =
i
For each point on the boundary, the Mach number, Mi , is used to determine a new total
pressure, pt,b .
|Ui |
, Ui = U i n
ci
1
1
2
= pi 1 + ( 1)Mi
2
Mi =
pt,b
(20)
(21)
The static pressure, p, is updated using the new total pressure and the set Mach number,
Mset
1
1
2
p = pt,b 1 + ( 1)Mset
(22)
2
If the ow is locally supersonic as a result of some transient ow condition, then the boundary
condition will reset the local static pressure to the local total pressure. If the specied Mach
number is supersonic, then an extrapolation boundary condition should be used. Thus,
p, if Mi < 1 (subsonic)
(23)
pb =
pt , if Mi > 1 (supersonic)
pb /Ti
qR = U i
pb
(24)
Note: Using this condition is inconsistent if the boundary face adjoins a viscous surface.
The Mach number is xed over the entire boundary and precludes the presence of a velocity
gradient that would normally be present on the viscous no-slip surface. A constant pressure
boundary condition, such as the subsonic outow boundary, should be used in this situation.
2.4
Specify
Outow
Extrapolate
U, T
Update
For a subsonic outow boundary condition, the static pressure ratio, pset /p , is specied,
while the velocities and temperature are extrapolated. The boundary ow is assumed to be
adiabatic and isentropic. The density is updated from the extrapolated temperature and
the requested static pressure. If the ow is supersonic at this boundary, then all quantities
are extrapolated. The pressure is calculated as
pset , if Mi < 1 (subsonic)
pb =
(25)
pi , if Mi 1 (supersonic)
and the right-side vector is
pb /Ti
q R = U i ,
pb
2.5
Ti =
pi
i
(26)
Specify
Outow
Extrapolate
U, T
Update
The manner in which this boundary species the static pressure ratio is the same as that
presented in section 2.4 but with dierent implementation details. If any reverse ow (i.e.,
ow into the computational domain) occurs, setting the static pressure at the boundary
is numerically ill-posed. This boundary condition will explicitly set the ow to exit the
domain. The ow is also forced to remain subsonic by setting the local static pressure to
the local total pressure if the local Mach number is greater than one. The velocities, Ui , and
the temperature, Ti = pi /i , are extrapolated from the interior solution. The pressure is
pset , if Mi < 1 (subsonic)
pb =
(27)
pt , if Mi > 1 (supersonic)
Ub =
U i,
if U > 0
n, if U < 0
|Ui |
(outow)
,
(inow)
U = U i n
(28)
pb /Ti
qR = U b
pset
2.6
(29)
Specify
Outow
m
[m
0]
Extrapolate
U, T
Update
, p
This boundary condition allows for specication of the mass ow out of the computational
domain. Adiabatic ow through the boundary is assumed, and the method iteratively
modies the static pressure for the entire boundary to obtain the requested mass ow
condition. The choice of equations solved for this boundary condition is from the CFD code
VULCAN [10].
The boundary values of momentum thrust Eq.(30), pressure force Eq.(31), and mass ow
Eq.(32), are calculated by using the following integrals, where the domain of the integration
is the entire boundary face:
Fm =
2
U n
dA,
(momentum thrust)
(30)
p dA,
(pressure force)
(31)
U n
dA,
(mass ow)
(32)
boundary
Fp =
boundary
m
=
boundary
(33)
The velocity and the temperature are extrapolated from the interior computational domain
so that the right-state vector is:
pb /Ti
(34)
qR = U i
pb
2.7
Specify
Extrapolate
Inow
pt /p , Tt /T , n
p, R+ , Ht
Update
, U
The user can specify the direction of the velocity at the boundary either by the ow angles
b .
(set and set ) relative to the global coordinate axis, or as normal to the boundary, n
cos set cos set i sin set j + sin set sin set k
n
=
(35)
n
b
The right-side vector, q R , is determined from the outward propagating invariant, R+ , and
a statement of the total enthalpy, Ht , at an element face on the boundary. The formulation
of this boundary condition is the same as that used in [10], which assumes that the ow
through the boundary is adiabatic and isentropic. Following these assumptions, we write
1 2
pi
Hti =
ui + vi2 + wi2
(36)
+
i 1
2
2ci
(37)
R+ = Ui
1
Because the ow is adiabatic, that is, the total enthalpy is conserved across the boundary,
we can state that
Ht =
1
c2b
+ U2
1 2 b
(38)
2cb
1
(39)
(40)
Equation (40) is solved for cb , which is the sonic speed at the boundary, by rewriting it as
a quadratic equation of the form
2
1 +2
1+
(41)
c2b + 2R+ cb +
R 2Ht = 0
( 1)
2
The solution has the form
cb
b
=
2a
b2 4ac
2a
where a, b, and c are the coecients of the quadratic equation (Eq. 41):
2
1 +2
a = 1+
, b = 2R+ , c =
R 2Ht
( 1)
2
(42)
(43)
The physically consistent result is the larger of the two roots and is chosen to update the
sonic velocity at the boundary:
cb = max(cb+ , cb )
(44)
The updated inow velocity and the Mach number at the boundary are then computed by
using
U =
2cb
R+ ,
1
8
Mb =
U
cb
(45)
The static pressure and temperature are calculated from the isentropic relations
pb = pt,set
1 2
Mb
1+
2
1
,
Tb = Tt,set
pb
pt,set
1
(46)
The primitive variables that are determined from the input boundary conditions are placed
in the right state q R as
pb /RTb
n
(47)
q R = U
pb
2.8
Specify
Extrapolate
Update
Inow
m
[m
0], Tt /T
Mass ow into the computational domain through this boundary condition is updated by
adjusting the static temperature, T, at the boundary through a form of the energy equation:
2
cp T +
U
= cp Tt,set
2
(48)
The variable, Tt,set , in Eq. (48) is the user-specied total temperature at the boundary,
and the ow is assumed to be isentropic and adiabatic through the boundary face. An
expression for the velocity is derived by dividing the specied mass ow by the density and
can be written as
dA
m
boundary
, =
(49)
U =
A
A
A quadratic equation of static temperature is written by combining Eq. (49) with Eq. (48)
and using a thermally perfect gas assumption for density in terms of the static pressure and
temperature, = p
/RT:
2
1 mR
T2 + cp T cp Tt,set = 0
2 p
A
The solution to the resulting equation is a quadratic equation
b2 4ac
b
T =
2a
2a
(50)
(51)
2
1 mR
,
2 p
A
b = cp ,
c = cp Tt,set
(52)
The larger root is taken to update the static temperature at the boundary as
Tb = max(T+ , T )
9
(53)
To lessen transients during the solution startup, the user can ramp the mass inow, m,
from
zero up to the specied amount by using the iteration parameter flow mflux ramp as
iteration
m
ramp = min 1,
(54)
mset
flow mflux ramp
The continuity equation determines the mean velocity at the boundary, and the density is
updated from the updated static temperature as
U =
ramp
Tb m
p
A
(55)
i
n
q R = U
i Tb /
2.9
(56)
Specify
, U , p
Extrapolate
Update
None
All
Pressure, density, and velocity ( U set ) are specied for the supersonic inow boundary condition. The velocity vector is forced to be normal to the boundary. The right-state vector
is:
set
n
q R = |Uset |
(57)
pset
3
3.1
Computational Method
FUN3D Code
FUN3D is an unstructured three-dimensional, implicit, Navier-Stokes code. Roes ux difference splitting [11] is used for the calculation of the explicit terms. Other available ux
construction methods include HLLC [12], AUFS [13], and LDFSS [14]. The default method
for calculation of the Jacobians is the ux function of van Leer [15], but the method by
Roe and the HLLC, AUFS and LDFSS methods are also available. The use of ux limiters
are mesh and ow dependent. Flux limiting options include MinMod [16] and methods by
Barth and Jespersen [17] and Venkatakrishnan [18]. Other details regarding FUN3D can
be found in Anderson and Bonhaus [6] and Anderson et al. [19], as well as in the extensive
bibliography that is accessible at the FUN3D Web site, http://fun3d.larc.nasa.gov.
3.2
Discretization of the computational volume consists of any combination of tetrahedra, hexahedra, prisms, and pyramids. The faces of the volume elements are either triangles or
quadrilaterals. Therefore, the boundaries consist only of either triangular or quadrilateral
faces or combinations of both types of face elements. An example of a boundary face that
10
Node 3
Pc
Node 2
X
Z
Pl
Pr
Pm
Node 1
W1
W2
W3
Tetrahedral
Hexahedral, prism, pyramid
6/8
1
1/8
0
1/8
0
consists of triangular face elements is shown in the perspective sketch in Figure 3. A space
of subelements is formed to calculate the uxes at the boundary. Three subelements are
formed from each of the corner nodes (1, 2, and 3) of the triangular face element. The area
and the orientation of the quadrilateral subelements are determined by using the center of
the element , Pc ; the left and right midpoints, Pl and Pr ; and the main node, Pm . The
normal vector is the cross product of the two vectors that are formed from the main and
center nodes, Pm Pc , and the left and right midpoints, Pl Pr , so that n = Pm Pc Pl Pr .
The interior, or left state, for the subelement is calculated from an area weighted average
of the interior state nodal values, q 1 , q 2 , and q 3 . The values of the area weights, W, change
with the element topology and are listed in Table 2. A detailed derivation of the boundary
node weighting for tetrahedral meshes can be found in appendix A.
q L = W1 q 1 + W2 q 2 + W3 q 3
(58)
A ux function calculates the contribution to the solution residual for the subelement from
the interior and right-side (i.e., boundary condition ) states. The inviscid ux is added to
the solution residual at each solution time step. Roes approximate Riemann solver was
used for the boundary ux contributions to the residual.
The three geometries that are described in Sections 4.1 through 4.3 are used to demonstrate
the inow and outow boundary conditions that were described in Section 2. The geometries
are representative of a typical physical situation that could be modeled with each of the
dierent boundary conditions. Static pressure and mass ow outow subsonic conditions are
applied to the outow boundary of the bell-mouth geometry, Section 4.1. Total pressuretotal temperature conditions and mass ow inow conditions are applied to the inow
boundary of the American Society Of Mechanical Engineers ( ASME ) nozzle geometry,
11
Section 4.2. Fixed primitive variable conditions that simulate a supersonic inow are applied
to the inow boundary of the diuser geometry, Section 4.3.
4.1
Generic Bell-Mouth
Y
X
X
Z
Z-symmetry
plane
Z-symmetry
plane
External
outflow plane
External
outflow plane
Bell mouth
Bell mouth
Flow
direction
Y-symmetry
plane
Y-symmetry
plane
External
outflow
plane
External
outflow
plane
Tangent point
4 rinlet
Circular arc
Tangent point
Flow
direction
Flow
direction
4 rinlet
(he, ke)
(hc, kc)
Ellipse
rinlet
Tangent point
rinlet
30 rinlet
Rc
Centerline
Inlet
face
12
Nozzle
wall
Z
X
(hn, kn)
Nozzle
wall
(hp, kp)
Flow
direction
Outflow
plane
-10.0
Y-symmetry
plane
Inflow
plane
Tangent points
Centerline
0
8.0
Inflow
plane
Outflow
plane
(y ke )
(x he )
+
= 1,
a2e
b2e
he = 0.0,
ke = 3.0,
ae = 4.5,
be = 2.0
(59)
(x hc ) + (y kc ) = R2c ,
4.2
hc = ae + Rc ,
kc = ke ,
Rc = 1.0
(60)
The ASME nozzle is a ow standard geometry that is used for calibration of full-pipe
ows in experimental facilities [21] and serves as an excellent conguration for validation of
internal ow calculations. A perspective view of the mesh is shown in Figure 6(a), and a
streamwise cross-sectional view of the nozzle is shown in Figure 6(b). The geometry consists
of two constant-area cylindrical sections joined via two elliptically contoured sections. The
upstream plenum section has a cross-sectional radius of 5 in., and the downstream nozzle
section is a constant-area pipe with a radius of 2.5 in. The plenum entrance is at station
x = 10.0, with the exit at station x = 8.0. The fairing tangent point between the two
elliptical contours is at x 0.54. All of the computations were accomplished by using
quarter-plane symmetric tetrahedral meshes. The equation that denes the nozzle wall
contour from the middle tangent point to the downstream tangent point is
2
(x hn )
(y kn )
+
= 1,
a2n
b2n
hn = 5.0,
kn = 2.5,
an = 5.0,
bn = 2.5
(61)
and the equation that denes the nozzle wall from the upstream tangent point to the middle
tangent point is
2
(x hp )
(y kp )
+
= 1,
a2p
b2p
hp = 3.0,
13
kp = 2.5,
ap = 3.99,
bp = 2.9
(62)
Z
Y
Diffuser
wall
3
Diffuser
wall
Outflow
plane
Centerline
Y-symmetry
plane
Flow
direction
10.0
Outflow
plane
Inflow
plane
Flow
direction
Inflow
plane
1.0
0.8
0.6
0.4
0.2
4.3
Bell-mouth
ASME nozzle
Diuser
tetrahedra/nodes
tetrahedra/nodes
tetrahedra/nodes
51,078 / 10,253
99,125 / 19,326
235,111 / 44,370
775,258 / 141,372
6,648,653 / 1,168,680
50,309 / 10,202
97,517 / 19,129
231,510 / 43,760
764,440 / 139,535
6,011,766 / 1,059,652
25,484 / 5,670
52,499 / 10,992
132,693 / 26,452
433,863 / 82,184
2,271,735 / 491,521
Supersonic Diuser
The third test geometry is a conical diuser with a wall divergence angle of 3 degrees.
The increasing cross-sectional area of the duct maintains the supersonic ow condition
downstream of the supersonic xed inow boundary. A perspective view of the geometry
is shown in Figure 7(a). A streamwise cross-sectional view of the geometry is shown in
Figure 7(b).
Discussion
The unstructured meshes with tetrahedral cells were generated using the software package
VGRID [22]. The number of nodes for the cases is changed through the use of the global
parameter, ifact. The ifact parameter controls the density and number of cells, N, by
increasing or decreasing the strength of the sources within the mesh generation data le.
The total number of cells (and nodes) for each case are listed in Table 3.
An equivalent mesh size can be related to the mesh density (or number of degrees of
freedom) N. The equivalent mesh size should decrease with an increase in the number of
cells. In three dimensions, the equivalent mesh size, hN , should tend to zero as N1/3 . The
equivalent mesh size can also be related to a characteristic distance dened in terms of the
14
Bell mouth
ASME nozzle
Diffuser
1
0.8
0.6
0.4
0.2
0
0
0.2
0.4
0.6
0.8
Boundary name
Geometry
Specied conditions
Pressure outow
Pressure outow
Mach number outow
Mass ow outow
Pressure subsonic inow
Mass ow inow
Supersonic inow
back pressure
subsonic outflow p0
subsonic outflow mach
massflux out
subsonic inflow pt
massflux in
fixed inflow
Bell-mouth
Bell-mouth
Bell-mouth
Bell-mouth
ASME nozzle
ASME nozzle
Diuser
p/p
p/p
M
m
pt /p , Tt /T , ,
m,
Tt /T
, U , p
local control volume size, hv = V1/3 , where the norm used in this study is the L norm.
A statement of the asymptotic order of error can only be made when consistently rened
meshes are used. Consistent mesh renement is purely geometric occurring when a linear
relationship exists between the equivalent mesh size based on degrees of freedom ,hN , and
the equivalent mesh size based on the characteristic distance, hV . See Thomas et al. [23]
for additional discussion on consistent renement. The similarity of the mesh families for
each conguration is shown in Figure 8. A consistently rened mesh is shown as a dashed
line in the Figure. All three geometries display a linear trend between the equivalent mesh
measures, hN and hV .
The free-stream Mach number, unless otherwise noted, was 0.2 and the Courant-FriedrichsLewy (CFL) number, unless otherwise noted, was ramped from 1 to 100 over 250 iterations.
Flux construction was performed by using the approximate Riemann solver by Roe and
without any ux limiting. The boundary condition test cases are listed in Table 4. The
bell-mouth was used to test the static pressure and the mass ow out boundary conditions.
The ASME nozzle was used to test boundary conditions with the total temperature and either total pressure or mass ow set at an inow boundary. The diuser geometry was used
15
Mach
0.32
0.30
0.27
0.25
0.23
0.21
0.18
0.16
0.14
0.11
0.09
0.07
0.05
0.02
0.00
to test the supersonic xed inow boundary condition. In the following sections, solution
convergence histories for each of the mesh densities are shown for each boundary condition. Also, the convergence of the error in the boundary value is shown for each boundary
condition. The error in the boundary condition is the dierence between the user-dened
boundary condition and the area-weighted average of the boundary solution condition from
the code. The area-weighted average for a variable, , is designated by an overbar and is
calculated as boundary dA/ boundary dA.
The area-weighted average values for , p, pt , and mass ow are calculated by the
summation equations, Eqs. (63). The average velocity, speed of sound, and Mach number
are calculated by Eqs. (64).
1
=
A
m
=
A,
boundary
U A,
1
p=
A
p A,
boundary
U = m/A,
1
pt =
A
c = p/,
boundary
M = U/c
1 2
p + U A (63)
2
(64)
boundary
where A is
the area of an individual element on the boundary face and A is the boundary
area, A = boundary A. The error in the boundary condition for the parameter is then
Error = set
5.1
(65)
Bell-Mouth Calculations
The bell-mouth geometry was used to test the xed subsonic Mach number, xed static
pressure, and mass ow outow boundary conditions. Surface Mach number contours on
and around the bell-mouth for an outow mass ow condition of 0.25 and a free-stream
Mach number of 0.2 are shown in Figure 9. For this set of conditions, the ow stagnation
point is slightly below the leading edge of the bell-mouth, as evidenced by the region of zero
Mach number contours. The ow accelerates externally around the bell mouth leading edge
to exit the computational domain further downstream.
16
5.1.1
Specify
Outow
10-2
hN
-4
10
-6
10
-8
1.0
0.8
0.6
0.4
0.2
10-10
-12
10
-14
10
-16
10
1000
2000
Iteration
hN
100
Boundary value error
Residual ()
10
101
3000
10
1.0
0.8
0.6
0.4
0.2
-1
10-2
10
-3
10
-4
10
-5
10
-6
10
-7
1000
2000
Iteration
3000
10-2
10-3
10
-4
10
-5
Second order
0.1
0.3
0.5 0.7 0.91.1
Equivalent mesh size, hN
17
mesh size. The second-order convergence property in the error is indicated by the slope of
the dotted line.
5.1.2
Specify
Outow
10-2
Residual ()
10
hN
-4
1.0
0.8
0.6
0.4
0.2
-6
10-8
10-10
-12
10
10-14
-16
10
1000
2000
Iteration
hN
100
Boundary value error
10
101
3000
10
1.0
0.8
0.6
0.4
0.2
-1
10-2
10-3
10-4
10-5
10
-6
10
-7
1000
2000
Iteration
3000
10-2
10-3
10-4
Second order
10
-5
0.1
0.3
0.5 0.7 0.91.1
Equivalent mesh size, hN
18
The error in the set static pressure converges as the square of the equivalent mesh size. The
second-order convergence property in the error is indicated by the slope of the dotted line.
Mach-number outow (subsonic outflow mach)
Type
Specify
Outow
10-2
hN
10-4
Residual ()
10
100
hN
1.0
0.8
0.6
0.4
0.2
-6
10-8
5.1.3
-10
10
10-12
1.0
0.8
0.6
0.4
0.2
10-1
10-2
10-3
10-14
-16
10
1000
2000
Iteration
3000
10
-4
1000
2000
Iteration
3000
10-1
10-2
10
-3
10
-4
Second order
0.1
0.3
0.5 0.7 0.91.1
Equivalent mesh size, hN
the Mach number reaches the nal value within several hundred iterations for this test case.
The error in the set Mach number converges as the square of the equivalent mesh size. The
second-order convergence property in the error is indicated by the slope of the dotted line
(Figure 12(c)). For this conguration, Mset = 0.9 is approximately equivalent to a inow
static pressure ratio of p/p = 0.61.
Mass ow outow (massflux out)
Type
Specify
Outow
m
= 0.25, M = 0.2
Residual()
10-2
10
-4
10
-6
10
-8
100
hN
1.0
0.8
0.6
0.4
0.2
10
Boundary value error
5.1.4
10-10
10-12
-16
1.0
0.8
0.6
0.4
0.2
10-2
10-3
10-4
10-5
10-14
10
hN
-1
1000
2000
Iteration
3000
10
-6
1000
2000
Iteration
3000
10-3
10-4
10
-5
10
-6
Second order
0.1
0.3
0.5 0.7 0.91.1
Equivalent mesh size, hN
20
5.2
Two inow boundary conditions are evaluated in this section using an ASME ow calibration
nozzle. Figure 14 shows Mach-number contours for choked-ow conditions in the nozzle. The
direction of ow, from left to right, is denoted by the symbol U and the vector arrow. Typical
combinations of inow and outow boundaries for an internal ow conguration includes
(a) total pressuretotal temperature inow with static pressure outow; (b) total pressure
total temperature inow with mass ow outow; or (c) mass ow inow and extrapolation
outow. Choice (c) would work for choked ows where the exit Mach number is equal to
or greater than 1. The total pressuretotal temperature inow boundary condition is the
most appropriate inow condition to use when the performance of the nozzle (e.g. discharge
coecient, thrust ratio, or thrust coecient) is to be determined. This set of conditions does
not presuppose the mass ow of the nozzle because the performance is a result of geometric
characteristics.
mach
1.00
0.94
0.88
0.82
0.76
0.71
0.65
0.59
0.53
0.47
0.41
0.35
0.29
0.24
0.18
0.12
0.06
0.00
Figure 14. Mach-number contours for the ASME nozzle test case.
5.2.1
Specify
Inow
21
10
-4
10
-6
100
hN
10-8
10-10
-12
10
-14
10
-16
10
500
1000
Iteration
hN
10-1
1.0
0.8
0.6
0.4
0.2
Residual ()
10-2
1500
1.0
0.8
0.6
0.4
0.2
10-2
10-3
10-4
10-5
10-6
10
-7
10
-8
500
1000
Iteration
1500
10-4
10-5
10
-6
10
-7
Second order
0.1
0.3
0.5 0.7 0.91.1
Equivalent mesh size, hN
Figure 15. Subsonic inow (pt ) boundary condition, subsonic inflow pt.
Iterative convergence, shown by the residual history plotted in Figure 15(a), was achieved
for all mesh levels for the set condition of pt /p = 1.6. As shown in Figure 15(b), the error
in the total pressure reaches the nal value within several hundred iterations for all grids.
The error in the set total pressure converges as the square of the equivalent mesh size. The
second-order convergence property in the error is indicated by the slope of the dotted line
(Figure 15(c)). The average values for the Mach number and the mass ow ratio at the
boundary for this total pressure/total temperature setting are approximately 0.14 and 4.4,
respectively.
22
Specify
Inow
Inow
m
= 1.0, Tt /T = 1.0 (unchoked)
m
= 10.0, Tt /T = 1.0 (choked)
Residual ()
10-2
10
-4
10
-6
101
hN
10-8
10-10
-12
10
10-14
-16
10
1000
2000
Iteration
3000
hN
100
1.0
0.8
0.6
0.4
0.2
5.2.2
4000
1.0
0.8
0.6
0.4
0.2
10-1
10-2
10-3
10-4
10-5
10
-6
10
-7
1000
2000
Iteration
3000
4000
10-3
10-4
10
-5
10
-6
Second order
0.1
0.3
0.5 0.7 0.91.1
Equivalent mesh size, hN
23
-4
10
-6
10
-8
1.0
0.8
0.6
0.4
0.2
10
Boundary value error
10
100
hN
-10
10
10-12
-16
10
hN
-1
1.0
0.8
0.6
0.4
0.2
10-2
10-3
10-4
10-5
10-14
500
1000
Iteration
1500
2000
10
-6
500
1000
Iteration
1500
10-3
Residual ()
10-2
10-4
10-5
Second order
10
-6
0.1
0.3
0.5 0.7 0.91.1
Equivalent mesh size, hN
24
2000
indicated by the slope of the dotted line (Figures 16(c) and 17(c)). The average values for
the total pressure ratio at the inow boundary for the unchoked and choked nozzle mass
ow conditions are approximately 1.03 and 3.5, respectively.
5.3
A solution using the supersonic xed inow boundary condition at the inow plane of the
diuser is shown in Figure 18. An extrapolation boundary condition was used at the outow
plane. The ow is from left to right, as indicated by the arrow. The ow accelerates from
approximately Mach 1.3 at the inow to Mach 2.3 at the outow.
Z
mach
2.3
2.2
2.1
2
1.9
1.8
1.7
1.6
1.5
1.4
1.3
Diffuser
wall
Outflow
plane
Y-symmetry
plane
Flow
direction
Inflow
plane
Type
Inow
Specify
The residual history and the boundary value error history for the xed supersonic inow
case are shown in Figure 19. Iterative convergence was achieved for all mesh levels for the
set conditions within a few hundred iterations. As shown in Figure 19(b), the error in the
set velocity achieves the nal value for each mesh in less than 100 iterations. The error in
the set velocity converges as the square of the equivalent mesh size for the three smallest
equivalent mesh sizes. The second-order convergence property in the error is indicated by
the slope of the dotted line (Figure 19(c)).
Summary
Boundary conditions that allow subsonic and supersonic ow into and out of the computational domain have been derived and implemented in the computational method FUN3D.
The boundary conditions are enforced through determination of the ux contribution to
the solution residual. Roes approximate Riemann solver is used to construct the uxes at
the boundary faces. These boundary conditions were implemented in an implicit manner in
25
-4
10
-6
1.0
0.81
0.60
0.39
0.20
10-8
-10
10
10-12
10
100
hN
10-1
10-2
hN
1.0
0.81
0.60
0.39
0.20
10-3
10-14
-16
10
100
200
Iteration
300
400
10
-4
100
200
Iteration
300
10-2
Residual()
10-2
10-3
10-4
Second order
10
-5
0.1
0.3
0.5 0.7 0.91.1
Equivalent mesh size, hN
26
400
the FUN3D CFD code and were veried for three generic test geometries. Iterative residual
convergence was achieved at all mesh-density levels for all of the conditions that were used in
this study. The user-requested condition was achieved in all cases, and error in the boundary condition value decreased in a second-order manner with an increase in mesh density.
Boundary value error convergence occurs before iterative convergence and depending on the
application, boundary values were within 0.5 percent of the specied parameter value with
only a residual reduction of 5 orders of magnitude.
Acknowledegment
The author would like to thank Dr. James Thomas, Dr. Mike Park and Mr. Je White of
the Computational AeroSciences Branch at NASA Langley Research Center for their many
invaluable discussions and contributions to this work.
Nomenclature
Roman letters
A
area
c
speed of sound
cp
specic heat at constant pressure
H
enthalpy
hN
equivalent mesh size based on degrees of freedom, N1/3
hv
L1 norm of V1/3 , |L1 | = V1/3 1
i, j, k Cartesian unit vectors axis in physical space
m
M
n
n
N
p
R
R
s
T
U
U
U
u,v,w
V
x, y, z
mass ow
Mach number
normal vector
unit normal vector, n/|n|
number of nodes in mesh
static pressure
real gas constant
Riemann invariant
entropy
temperature
average velocity
T
Subscripts
b
boundary state
free-stream state
i
internal state
L
left state
27
R
set
t
outer state
normal to boundary element
right state
user-requested condition
total conditions
Conventions
F
boundary element ux vector
q
primitive variables state vector
R
solution residual vector
Symbols
References
1. Numerical Boundary Condition Procedures, Symposium on Numerical Boundary
Condition Procedures, ed. P. Kutler, NASA CP2201, October 1981.
2. Moretti, G.: A Physical Approach to the Numerical Treatment of Boundaries in Gas
Dynamics, NASA CP2201, October 1981, pp. 7395.
3. Blottner, F.: Inuence of Boundary Approximations and Conditions on Finite Dierence Solutions, NASA CP2201, October 1981, pp. 227256.
4. Pulliam, T.: Characteristic Boundary Conditions for the Euler Equations, NASA
CP2201, October 1981, pp. 165181.
5. Thompkins, W. and Bush, R.: Boundary Treatments for Implicit Solutions to Euler
and Navier-Stokes Equations, NASA CP2201, October 1981, pp. 353363.
6. Anderson, W. and Bonhaus, D. L.: An Implicit Upwind Algorithm for Computing
Turbulent Flows on Unstructed Grids, Computers & Fluids, Vol. 23, 1994, pp. 121.
7. Kim, S.; Alonso, J.; Schluter, J.; Wu, X. and Pitsch, H.: Integrated Simulations
for Multi-Component Analysis of Gas Turbines: RANS Boundary Conditions, AIAA
Paper 2004-3415, July 2004.
8. Griewank, A.: On Automatic Dierentiation, Mathematical Programming: Recent
Developments and Applications, Kluwer Academic Publishers, 1989, pp. 83108.
9. Corliss, G. F. and Griewank, A.: Operator Overloading as an Enabling Technology for
Automatic Dierentiation, Technical report, Argonne National Laboratory, 1993.
10. White, J. and Morrison, J.: A Pseudo-Temporal Multi-Grid Relaxation Scheme for
Solving the Parabolized Navier-Stokes Equations, AIAA Paper 1999-3360, June 1999.
11. Roe, P. L.: Approximate Riemann Solvers, Parameter Vectors, and Dierence
Schemes, J. Comp. Phys., Vol. 43, 1981, pp. 357372.
28
12. Batten, P.; Clarke, N.; Lambert, C. and Causon, D.: On the Choice of Wavespeeds for
the HCCL Riemann Solver, SIAM J. Sci. Comput., Vol. 18, 1997, pp. 15531570.
13. Sun, M. and Takayama, K.: Articially Upwind Flux Vector Splitting Scheme for the
Euler Equations, J. Comp. Phys., Vol. 189, 2003, pp. 305329.
14. Edwards, J.: A Low-Diusion Flux-Splitting Scheme for Navier Stokes Calculations,
AIAA Paper 1996-1704, May 1996.
15. van Leer, B.: Towards the Ultimate Conservative Dierence Schemes V. A second
Order Sequel to Godunovs Method, J. Comp. Phys., Vol. 32, 1979, pp. 101136.
16. Roe, P. L.: Characteristic-Based Schemes for the Euler Equations, Annual Review of
Fluid Mechanics, Vol. 18, 1986, pp. 337365.
17. Barth, T. and Jespersen, D.: The Design and Application of Upwind Schemes on
Unstructured Meshes, AIAA Paper 1989-0366, Jan. 1989.
18. Venkatakrishnan, V.: Convergence to Steady State Solutions of the Euler Equations
on Unstructured Grids with Limiters, J. Comp. Phys., Vol. 118, 1995, pp. 120130.
19. Anderson, W.; Rausch, R. and Bonhaus, D. L.: Implicit/Multigrid Algorithms for
Incompressible Turbulent Flows on Unstructured Grids, J. Comp. Phys, Vol. 128,
1996, pp. 391408.
20. Gilbert, G. and Hill, P.: Analysis and Testing of Two-Dimensional Slot Nozzle Ejectors
With Variable Area Mixing Sections, NASA CR2251, May 1973.
21. Measurement of Fluid Flow in Pipes Using Orice, Nozzle and Venturi, The American
Society of Mechanical Engineers, 2005.
22. Pirzadeh, S.: Three-Dimensional Unstructured Viscous Grids by the Advancing-Layers
Method, AIAA Journal, Vol. 34, No. 1, 1996, pp. 4349.
23. Thomas, J.; Diskin, B. and Rumsey, C.: Toward Verication of Unstructured-Grid
Solvers, AIAA Journal, Vol. 46, No. 12, 2008, pp. 30703079.
29
Appendix A
Node Weighting for a Boundary Tetrahedral
The tetrahedral element that is shown in Figure A1 has four nodes with an associated
area-weighted normal, n1 , n2 , n3 , and n4 , opposite each node. The average value of the
Z
Node 4
X
tetrahedral cell
n1
Node 3
n3
Node 1
Node 2
n4
q1 =
(A1)
(A2)
(A3)
(A4)
The Green-Gauss (GG) integral over the tetrahedral element is equal to one-third the summation of the product of the average value of qi with each directed face normal, ni .
GG
1
qini
3 i=1
4
qdV =
tetrahedron
(A5)
The dual of the tetrahedral element shown in Figure A2 has six faces, with the associated
normals nB , nL , and nR on the boundaries and n12 , n13 , and n14 facing the tetrahedral face
opposite node 1. The nite-volume (FV) integral around the dual volume is written as a
summation of q times the directed normal of the face. At this point, the inuence of the
nodes on the boundary faces L, R, B, a, b, and c are unknown. The goal is to make the FV
30
(A6)
The FV integral around the dual volume can be equated to one-fourth the GG integral
around the tetrahedron.
FV
1 GG
qdV =
qdV
(A7)
4 tetrahedron
dual
The following shows that the left-hand side of Eq. (A7) can be expressed in a form that
matches the right-hand side of Eq. (A6). Equation (A5) is substituted into the right-hand
side of Eq. (A7) and expanded as
11
1 GG
qdV =
(A8)
qini
4 tetrahedron
43
1
=
(q1n1 + q2n2 + q3n3 + q4n4 )
(A9)
12
Add and subtract 2q1n1 from Eq. (A9), and use the equations that relate n2 , n3 , and n4 to
n1 and the normals of the dual volume, n12 , n13 , and n14 (Eq. A10).
ni = 12n1i + n1
1
4
(A10)
1
qdV =
3q1n1 2q1n1 + q2 (12n12 + n1 )
12
tetrahedron
GG
+ q3 (12n13 + n1 ) + q4 (12n14 + n1 )
31
(A11)
(A12)
Substituting into Eq. (A12) the additional geometric relations that equate the face normals
of n1 , n12 , n13 , and n14 with nL , nR , and nB (Eqs. (A13)-(A16):
n1 = 3 (n12 + n13 + n14 ) = 3 (nL + nR + nB )
1
n12 = (2nL + nR + nB )
4
1
n13 = (nL + 2nR + nB )
4
1
n14 = (nL + nR + 2nB )
4
1
4
GG
qdV =
tetrahedron
q1 + q 3
q1 + q 4
1
q 1 + q2
n12 +
n13 +
n14 +
(3q1n1 )
2
2
2
12
1
1
+ q2 (2nL + nR + nB ) + (nL + nR + nB )
8
4
1
1
+ q3 (nL + 2nR + nB ) + (nL + nR + nB )
8
4
1
1
+ q4 (nL + nR + 2nB ) + (nL + nR + nB )
8
4
(A13)
(A14)
(A15)
(A16)
(A17)
GG
tetrahedron
qdV =
q1 + q2
q1 + q 3
q1 + q 4
n12 +
n13 +
n14
2
2
2
3
1
1
q1 + q3 + q4 nL
+
4
8
8
3
1
1
q1 + q2 + q4 nR
+
4
8
8
3
1
1
q1 + q2 + q3 nB
+
4
8
8
(A18)
A direct comparison of the terms in Eq. (A18) with those in Eq. (A6) shows that a = 3/4,
b = 1/8, and c = 1/8.
The author would like to thank Nishikawa Hiroaki for this derivation.
32
Form Approved
OMB No. 0704-0188
The public reporting burden for this collection of information is estimated to average 1 hour per response, including the time for reviewing instructions, searching existing data sources,
gathering and maintaining the data needed, and completing and reviewing the collection of information. Send comments regarding this burden estimate or any other aspect of this
collection of information, including suggestions for reducing this burden, to Department of Defense, Washington Headquarters Services, Directorate for Information Operations and
Reports (0704-0188), 1215 Jefferson Davis Highway, Suite 1204, Arlington, VA 22202-4302. Respondents should be aware that notwithstanding any other provision of law, no person
shall be subject to any penalty for failing to comply with a collection of information if it does not display a currently valid OMB control number.
PLEASE DO NOT RETURN YOUR FORM TO THE ABOVE ADDRESS.
2. REPORT TYPE
01- 10 - 2011
Technical Memorandum
01/2005-12/2008
6. AUTHOR(S)
Carlson, Jan-Renee
8. PERFORMING ORGANIZATION
REPORT NUMBER
L-20011
9. SPONSORING/MONITORING AGENCY NAME(S) AND ADDRESS(ES)
NASA
11. SPONSOR/MONITOR'S REPORT
NUMBER(S)
NASA/TM-2011-217181
12. DISTRIBUTION/AVAILABILITY STATEMENT
Unclassified Unlimited
Subject Category 64
Availability: NASA CASI (443) 757-5802
13. SUPPLEMENTARY NOTES
14. ABSTRACT
Several boundary conditions that allow subsonic and supersonic flow into and out of the computational domain are discussed.
These boundary conditions are demonstrated in the FUN3D computational fluid dynamics (CFD) code which solves the
three-dimensional Navier-Stokes equations on unstructured computational meshes. The boundary conditions are enforced
through determination of the flux contribution at the boundary to the solution residual. The boundary conditions are
implemented in an implicit form where the Jacobian contribution of the boundary condition is included and is exact. All of the
flows are governed by the calorically perfect gas thermodynamic equations. Three problems are used to assess these boundary
conditions. Solution residual convergence to machine zero precision occurred for all cases. The converged solution boundary
state is compared with the requested boundary state for several levels of mesh densities. The boundary values converged
to the requested boundary condition with approximately second-order accuracy for all of the cases.
15. SUBJECT TERMS
17. LIMITATION OF
ABSTRACT
UU
38
(443) 757-5802
Standard Form 298 (Rev. 8-98)
Prescribed by ANSI Std. Z39.18