CFD L2 Boundary-Conditions
CFD L2 Boundary-Conditions
School of Engineering
[BEng (Hons)] in Engineering
• Boundary conditions
– Where fluid enters or leaves the domain, the conditions must be set (velocity /
pressure / temperature)
– Other boundaries also need declaring, like walls (smooth/rough, heat transfer?)
– There may also be symmetry, periodic or axis boundaries.
• A fluid cell zone is a group of cells for which all active equations are
solved.
• Optional inputs
– Moving zones
– Porous region
– Source terms
– Fixed Values
• Some fluid regions are obviously porous and impossible to resolve exactly
in a mesh:
– Filter papers
– Packed
P k db beds
d
• A solid zone is a group of cells for which only the energy equation is
solved.
• Only required input is the material name (defined in the Materials panel)
panel).
• Optional inputs allow you to set
volumetric heat generation rate
(heat source).
• Need to specify rotation axis if
rotationally periodic boundaries
adjacent to solid zone.
• Can define motion for a solid zone
p
plate
plate-shadow
inlet
ANSYS, Inc. Proprietary Release 13.0
© 2010 ANSYS, Inc. All rights reserved. L4-7 December 2010
Cell Zones and Boundary Conditions
• Velocity Magnitude input can be negative, implying that you can prescribe
the exit velocity.
• Pressure inlets are suitable for both compressible and incompressible flows.
– Pressure inlet boundary is treated
as a loss-free transition from
stagnation to inlet conditions.
– FLUENT calculates static
pressure and velocity at inlet
– Mass flux through boundary varies
depending on the interior solution
and specified flow direction.
• Required inputs
– Gauge Total Pressure
– Supersonic / Initial Gauge Pressure
Incompressible:
– Inlet flow direction
– Turbulence quantities
Compressible:
((if applicable)
pp )
– Total temperature (if heat transfer
and/or compressible).
ANSYS, Inc. Proprietary Release 13.0
© 2010 ANSYS, Inc. All rights reserved. L4-10 December 2010
Cell Zones and Boundary Conditions
• Mass flow inlets are intended for compressible flows; however, they can be
used for incompressible flows.
– Total pressure adjusts to
accommodate mass flow inputs.
– More difficult to converge than
pressure inlet.
• Required information
– Mass Flow Rate or Mass Flux
– Supersonic/Initial
p Gauge
g Pressure
• Static pressure where flow is
locally supersonic; ignored if
subsonic
• Will bbe used d if flflow fifield
ld iis
initialized from this boundary.
– Total Temperature (on Thermal tab)
• Used as static temperature
p for
incompressible flow.
– Direction Specification Method
ANSYS, Inc. Proprietary Release 13.0
© 2010 ANSYS, Inc. All rights reserved. L4-11 December 2010
Cell Zones and Boundary Conditions
• Required information
– Gauge Pressure (static) – static
pressure of the environment into
which the flow exits.
– Backflow quantities – Used as inlet
conditions if/when backflow occurs
(outlet acts like an inlet).
• Thermal
Th l boundary
b d conditions
diti
– Several types of thermal BCs are available.
– Wall material and thickness can be defined for 1D or shell conduction heat
transfer calculations (details will be discussed in the Heat Transfer lecture)
lecture).
• Translational or rotational
velocity can be assigned to wall
boundaries
boundaries.
• Symmetry Boundary
– No inputs are required.
– Flow field and geometry must be symmetric:
• Zero normal velocity at symmetry plane
• Zero normal gradients of all variables at symmetry plane
• Must take care to correctly define symmetry boundary locations.
Symmetry
Planes
• Axis Boundary
– Used at the center line for axisymmetric problems.
problems
– No user inputs required.
– Must coincide with the
positive x direction!
p Axis
• Used to implement
p various p
physical
y models including:
g
– Fans
– Radiators
– Porous-jump
j p models
• Preferable over porous media for its better convergence behavior.
– Interior walls
inlet-1
inlet-1
fluid
outlet 2
outlet-2 i l t2
inlet-2
inlet-2
outlet-2
outlet-1 outlet-1
2D Flow Domain (approximation) Actual 3D Flow Domain
ANSYS, Inc. Proprietary Release 13.0
© 2010 ANSYS, Inc. All rights reserved. L4-17 December 2010
Cell Zones and Boundary Conditions
• Boundary zones are used to control the solution at external and internal
boundaries. Many
y different boundary
y types
yp exist for pprescribing
g boundary y
information.
• There are several other boundary condition types which were not
presented (see appendix for more information about these).
– Pressure Far Field
– Exhaust Fan / Outlet Vent
– Inlet Vent / Intake Fan
– Outflow
ANSYS, Inc. Proprietary Release 13.0
© 2010 ANSYS, Inc. All rights reserved. L4-18 December 2010
Appendix : Other
Boundary Types
• Flows with multiple exits can be modeled using pressure outlet or outflow
boundaries, depending on the information you know.
– Pressure outlets – requires knowledge of downstream pressures; FLUENT
calculates the fraction of total flow through each branch.
Pressure outlet
Velocity inlet (V, T0)
OR
Pressure inlet (p0, T0)
Pressure outlet
– Outflow:
• Mass flow rate fraction determined from Flow Rate Weighting (FRW) by
• Static pressure varies among exits to accommodate the prescribed flow distribution.
Outflow (FRW1)
Velocit inlet (V
Velocity (V, T0)
Outflow (FRW2)
ANSYS, Inc. Proprietary Release 13.0
© 2010 ANSYS, Inc. All rights reserved. L4-22 December 2010
Solver Settings
• However you should not assume that just because you have ‘an
an answer’
answer
that that is the ‘correct answer’.
• This lecture will look at: Enable the solution monitors of interest
Yes No
Yes
Stop
• The pressure-based solver is applicable for a wide range of flow regimes from
low speed incompressible flow to high-speed compressible flow.
– Requires less memory (storage).
– Allows flexibility in the solution procedure.
• The pressure-based coupled solver (PBCS) is applicable for most single phase
flows, and yields superior performance to the standard pressure-based solver.
– Not
N available
il bl ffor multiphase
li h (E
(Eulerian),
l i ) periodic
i di mass-flow
fl and
d NITA cases.
– Requires 1.5–2 times more memory than the segregated solver.
• The density
density-based
based coupled solver (DBCS) is applicable when there is a strong
coupling, or interdependence, between density, energy, momentum, and/or
species.
– Examples: High speed compressible flow with combustion, hypersonic flows, shock
interactions.
interactions
– The implicit option is generally preferred over explicit since it has a very strict limit on
time step size
– The explicit approach is used for cases where the characteristic time scale of the flow is
on the same order as the acoustic time scale
scale. (e
(e.g.
g propagation of high-Ma
high Ma shock
waves).
• In FLUENT, solver variables are stored at the centre of the grid cells (control
volumes).
• Field variables (stored at cell centers) must be interpolated to the faces of the
control volumes.
Value (e.g. Velocity) computed here
• The gradients of solution variables at cell centers can be determined using three
approaches:
– G
Green-Gauss
G Cell-Based
C ll B d – Least
L t computationally
t ti ll intensive.
i t i S
Solution
l ti may h
have ffalse
l
diffusion.
– Green-Gauss Node-Based – More accurate/computationally intensive; minimizes false
diffusion; recommended for unstructured meshes.
– Least-Squares Cell-Based – Default method; has the same accuracy and properties as
Node-based Gradients and is less computationally intensive.
– Standard – The default scheme; reduced accuracy for flows exhibiting large
surface-normal pressure gradients near boundaries (but should not be used
when steep pressure changes are present in the flow – PRESTO! scheme
sho ld be used
should sed instead
instead.))
– PRESTO! – Use for highly swirling flows, flows involving steep pressure
gradients (porous media, fan model, etc.), or in strongly curved domains
– Linear – Use when other options result in convergence difficulties or
unphysical behavior
– Second-Order – Use for compressible flows; not to be used with porous
media,, jump,
j p, fans,, etc. or VOF/Mixture multiphase
p models
– Body Force Weighted – Use when body forces are large, e.g., high Ra natural
convection or highly swirling flows
• Setting
S tti thi
this value
l iis called
ll d ‘I‘Initialization’
iti li ti ’
• The solver should be given sufficient iterations such that the problem is
converged
• Residual plots show when the residual values have reached the specified
tolerance.
All equations
converged.
10-3
10-6
• The net flux imbalance (shown in the GUI as Net Results) should be less
than 1% of the smallest flux through the domain boundary
• If solution monitors indicate that the solution is converged, but the solution
is still changing or has a large mass/heat imbalance, this clearly indicates
the solution is not yet converged.
– Check the mesh quality. It can only take one very skewed grid cell to prevent
the entire solution converging [This is why you should ALWAYS check the
es qua
mesh quality
y be
before
o e spe
spending
d g time
e with the
e so
solver]
e]
• The Courant number is the main control for stability when using the
coupled solvers.
• Typically you will perform this test once for your class of problem.
• Either:
– Go back to the meshing tool and modify the settings to give a finer mesh.
– Or use the ‘Adaption’ tools in FLUENT to refine the mesh you already have.
Make sure yyou save the model first
– Run on your simulation (remember you can start from your past result) and
assess whether the grid refinement has changed the result.
• Example: The location of the shock wave is not known when the mesh is
first created
• Make sure your final results are computed with the optimal numerical
schemes (the FLUENT defaults aim to give a stable solution, not
necessarily the most accurate one).
• All solvers provide tools for judging and improving convergence and
ensuring stability.