Boundary Conditions Slides
Boundary Conditions Slides
Gerald Recktenwald
Portland State University
Department of Mechanical Engineering
gerry@pdx.edu
In this slide deck we focus on simple inflow and outflow boundary conditions.
Inlet Outlet
Case 1: Prescribed Velocity Standard outlet (recommended)
or Gage pressure relative to ambient
• For incompressible flow, the absolute level of pressure does not matter.
. Fluid density depends on absolute pressure
. Momentum transport is determined by pressure gradients, not pressure level
• When simulating incompressible flow with CFD, always work in gage units.
. Fluid density depends on absolute pressure and is constant.
. Working in gage units reduces roundoff and catastrophic cancellation errors
• When simulating compressible flow with STAR-CCM+, use Total Pressure boundary
conditions.
ṁ = ρV A Standard outlet
At the outlet, the velocity magnitude and pressure vary over the outlet surface. The
outlet mass flow rate matches the inlet mass flow rate for incompressible flow.
Option: The inlet velocity can be specified as three vector components. This gives the
possibility of imposing a velocity vector that is not normal to the domain boundary. The
inlet flow rate is only determined by the normal component.
Case 1b: Combination of prescribed inlet velocity and prescribed pressure at the outlet
User prescribes the normal
inlet velocity component
Outlet: Pressure pout is
ṁ = ρV A
uniform over the outlet.
where V is uniform over
the inlet face.
The velocity magnitude varies over the outlet surface. The outlet mass flow rate matches
the inlet mass flow rate for incompressible flow.
Q ρṁ
V = = Standard outlet
A A
V is applied to surfaces of
cells on inlet boundary.
STAR-CCM+ figures out the direction of V that is oriented inward. The solution gives
the pressure distribution over the inlet.
At the outlet, the velocity magnitude and pressure vary over the outlet surface. The
outlet mass flow rate matches the inlet mass flow rate for incompressible flow.
Question: For unsteady incompressible flow, does the inlet flow rate match the outlet
flow rate?
Case 3: Combination of prescribed pressure at the inlet, and prescribed pressure at the
outlet
Warning: Empirical testing shows that using and overall ∆p obtained from Case 1 or
Case 2 boundary conditions results in higher flow rates than when the Case 1
or Case 2 boundary conditions are used.
An example follows.
Case 1: V specified
−0.04 Case 2: ⋅ specified
m
Case 3: ∆p from m⋅ case
Case 3: ∆p adjusted
−0.06
−0.08
P (Pa)
−0.10
−0.12
−0.14
0 5 10 15 20
z (cm)
1.5
1.0
0.5
y (cm)
Case 1: V specified
Case 2: ⋅ specified
m
0.0
Case 3: ∆p adjusted
−0.5
−1.0
−1.5
Velocity (m/s)
1.5
1.0
0.5
y (cm)
Case 1: V specified
0.0 Case 2: ⋅ specified
m
Case 3: ∆p adjusted
−0.5
−1.0
−1.5
Velocity (m/s)
• “Pressure Outlet” and “Outlet” appear to be equivalent when either velocity or ṁ are
prescribed at the inlet