Fluent12 Lecture04 Boundary Conditions PDF

Download as pdf or txt
Download as pdf or txt
You are on page 1of 24

Chapter 4

Boundary Conditions

Introductory FLUENT
Training

ANSYS, Inc. Proprietary April 28, 2009


© 2009 ANSYS, Inc. All rights reserved. 4-1 Inventory #002600
Boundary Conditions
Defining Boundary Conditions Training Manual

• To define a problem that results in a unique solution, you must


specify information on the flow variables at boundaries.
– Specify fluxes of mass, momentum, energy, etc. into the domain.

• Defining boundary conditions involves:


– Identifying the boundary locations
– Supplying information at the boundaries

• The data required at a boundary depends upon the boundary


condition type and the physical models employed.

• You must be aware of the information that is required of the


boundary condition and locate the boundaries where the information
on the flow variables are known or can be reasonably approximated
– Poorly defined boundary conditions can have a significant impact on
your solution

ANSYS, Inc. Proprietary April 28, 2009


© 2009 ANSYS, Inc. All rights reserved. 4-2 Inventory #002600
Boundary Conditions
Cell Zones – Fluid Training Manual

• A fluid cell zone is a group of cells for which all active equations are
solved.

• Fluid material selection is required.


– For multiple species or multiphase
flows, the material is not shown.
Instead, the fluid zone consists of the
mixture of the phases.

• Optional inputs
– Porous region
– Source terms
– Laminar region
– Fixed Values
– Radiation

ANSYS, Inc. Proprietary April 28, 2009


© 2009 ANSYS, Inc. All rights reserved. 4-3 Inventory #002600
Boundary Conditions
Porous Media Training Manual

• A porous zone is a special type of fluid zone.


– Enable Porous Zone option in the Fluid panel.
– Pressure loss in flow determined via user inputs
of resistance coefficients to lumped parameter
model

• Used to model flow through porous


media and other uniformly distributed
flow resistances.
– Packed beds
– Filter papers
– Perforated plates
– Flow distributors
– Tube banks

• Inputs are directional viscous and


inertial resistance coefficients.

ANSYS, Inc. Proprietary April 28, 2009


© 2009 ANSYS, Inc. All rights reserved. 4-4 Inventory #002600
Boundary Conditions
Cell Zones – Solid Training Manual

• A solid zone is a group of cells for which only heat conduction


problem solved. Flow equations are not solved.
• Only required input is the material name (defined in the Materials
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

ANSYS, Inc. Proprietary April 28, 2009


© 2009 ANSYS, Inc. All rights reserved. 4-5 Inventory #002600
Boundary Conditions
Locating Boundaries – An Example Training Manual

• Three possible approaches in locating inlet boundaries for this


example:
Air
1. Upstream of manifold
• Can use uniform profile. Combustor Wall
1
• Properly accounts for mixing.
• Non-premixed reaction models
• Requires more cells.
2. Nozzle inlet plane 2
• Non-premixed reaction 3
models.
• Requires accurate inlet
profile.
• Flow is still non-premixed.
3. 3 Nozzle outlet plane Nozzle
• Premixed reaction model. 1 Manifold box
• Requires accurate profile.
• Not generally recommended since Fuel
inlet BCs may drive the interior solution.

ANSYS, Inc. Proprietary April 28, 2009


© 2009 ANSYS, Inc. All rights reserved. 4-6 Inventory #002600
Boundary Conditions
General Guidelines Training Manual

• If possible, select boundary Upper pressure boundary


location and shape such that modified to ensure that
flow always enters
flow either goes in or out. domain.
– Not necessary, but will typically
observe better convergence.

• Should not observe large


gradients in direction normal to
boundary.
– Indicates incorrect set-up.

• Minimize mesh skewness near


the boundary.
– Otherwise it would introduce
error early in calculation.
1 2

ANSYS, Inc. Proprietary April 28, 2009


© 2009 ANSYS, Inc. All rights reserved. 4-7 Inventory #002600
Boundary Conditions
Available Boundary Condition Types Training Manual

• External Boundaries • Internal Boundaries


– General – Fan
• Pressure Inlet
– Interior
• Pressure Outlet
– Incompressible – Porous Jump
• Velocity Inlet – Radiator
• Outflow (not recommended) – Wall
– Compressible • Cell (Continuum) zones
• Mass Flow Inlet
– Fluid
• Pressure Far Field
– Other – Solid
• Wall – Porous media outlet
• Symmetry orifice
• Axis wall
• Periodic
– Special
• Inlet / Outlet Vent
• Intake / Exhaust Fan

plate
plate-shadow
inlet
ANSYS, Inc. Proprietary April 28, 2009
© 2009 ANSYS, Inc. All rights reserved. 4-8 Inventory #002600
Boundary Conditions
Changing Boundary Condition Types Training Manual

• Zones and zone types are


initially defined in the
preprocessing phase.

• To change the boundary


condition type for a zone:
– Choose the zone name in the
Zone list.
– Select the type you wish to
change it to in the Type pull-
down list.

ANSYS, Inc. Proprietary April 28, 2009


© 2009 ANSYS, Inc. All rights reserved. 4-9 Inventory #002600
Boundary Conditions
Setting Boundary Condition Data Training Manual

• Explicitly assign data in BC panels.


– To set boundary conditions for particular zone:
• Select Boundary Conditions in the project tree.
• Choose the boundary name in the Zone list.
• Click the Edit… button.
– Boundary condition data can be copied from
one zone to another.

• Boundary conditions can also be defined by


UDFs and profiles.

• Profiles can be generated by:


– Writing a profile from another CFD simulation
– Creating an appropriately formatted text file
with boundary condition data.

ANSYS, Inc. Proprietary April 28, 2009


© 2009 ANSYS, Inc. All rights reserved. 4-10 Inventory #002600
Boundary Conditions
Velocity Inlet Training Manual

• Velocity Specification Method


– Magnitude, Normal to Boundary
– Components
– Magnitude and Direction

• Applies a uniform velocity profile


at the boundary, unless UDF or
profile is used.

• Velocity inlets are intended for


use in incompressible flows and
are not recommended for compressible flows.

• Velocity Magnitude input can be negative, implying that you can


prescribe the exit velocity.

ANSYS, Inc. Proprietary April 28, 2009


© 2009 ANSYS, Inc. All rights reserved. 4-11 Inventory #002600
Boundary Conditions
Pressure Inlet Training Manual

• 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
(if applicable) Compressible:

– Total temperature (if heat transfer


and/or compressible).

ANSYS, Inc. Proprietary April 28, 2009


© 2009 ANSYS, Inc. All rights reserved. 4-12 Inventory #002600
Boundary Conditions
Mass Flow Inlet Training Manual

• 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 Gauge Pressure
• Static pressure where flow is
locally supersonic; ignored if subsonic
• Will be used if flow field is
initialized from this boundary.
– Total Temperature (on Thermal tab)
• Used as static temperature for
incompressible flow.
– Direction Specification Method
ANSYS, Inc. Proprietary April 28, 2009
© 2009 ANSYS, Inc. All rights reserved. 4-13 Inventory #002600
Boundary Conditions
Pressure Outlet Training Manual

• Suitable for compressible and incompressible flows.


– Specified pressure is ignored if flow is locally supersonic at the outlet.
– Can be used as a “free” boundary in an external or unconfined flow.

• 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).

• For ideal gas (compressible) flow,


non-reflecting outlet boundary
conditions (NRBC) are available.

ANSYS, Inc. Proprietary April 28, 2009


© 2009 ANSYS, Inc. All rights reserved. 4-14 Inventory #002600
Boundary Conditions
Wall Boundaries Training Manual

• In viscous flows, no-slip conditions are applied at walls.


– Shear stress can be applied.

• Thermal boundary conditions


– 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).

• Wall roughness can be defined


for turbulent flows.
– Wall shear stress and heat
transfer based on local flow
field.

• Translational or rotational
velocity can be assigned to wall
boundaries.

ANSYS, Inc. Proprietary April 28, 2009


© 2009 ANSYS, Inc. All rights reserved. 4-15 Inventory #002600
Boundary Conditions
Symmetry and Axis Boundaries Training Manual

• 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.
– No user inputs required.
– Must coincide with the
positive x direction! Axis

ANSYS, Inc. Proprietary April 28, 2009


© 2009 ANSYS, Inc. All rights reserved. 4-16 Inventory #002600
Boundary Conditions
Periodic Boundaries Training Manual

• Used to reduce the overall mesh size.

• Flow field and geometry must contain


either rotational or translational
periodicity.
– Rotational periodicity
• ΔP = 0 across periodic planes.
• Axis of rotation must be defined in fluid zone. Rotationally
– Translational periodicity periodic
planes
• ΔP can be finite across periodic planes.
• Models fully developed conditions.
• Specify either mean ΔP per period
or net mass flow rate.
Flow
• Periodic conditions can be defined Translationally
(if not defined in the mesh) using the periodic
FLUENT TUI: planes
/mesh/modify-zones/make-periodic
2D Tube Heat Exchanger
ANSYS, Inc. Proprietary April 28, 2009
© 2009 ANSYS, Inc. All rights reserved. 4-17 Inventory #002600
Boundary Conditions
Internal Face Boundaries Training Manual

• Defined on the cell faces only:


– Thickness of these internal faces is zero
– These internal faces provide means of introducing step changes in flow
properties.

• Used to implement various physical models including:


– Fans
– Radiators
– Porous-jump models
• Preferable over porous media for its better convergence behavior.
– Interior walls

ANSYS, Inc. Proprietary April 28, 2009


© 2009 ANSYS, Inc. All rights reserved. 4-18 Inventory #002600
Boundary Conditions
Case Setup Replication Training Manual

• To replicate a case setup:


– Use the read/write boundary conditions feature via TUI command:
/file/write-bc Creates a BC file
/file/read-bc Reads an existing BC file

– You can transfer settings from a 2D case to a 3D case!

inlet-1
inlet-1

fluid

outlet-2 inlet-2
inlet-2

outlet-2
outlet-1 outlet-1
2D Flow Domain (approximation) Actual 3D Flow Domain
ANSYS, Inc. Proprietary April 28, 2009
© 2009 ANSYS, Inc. All rights reserved. 4-19 Inventory #002600
Boundary Conditions
Summary Training Manual

• Boundary zones are used to control the solution at external and


internal boundaries. Many different boundary types exist for
prescribing boundary information.

• Cell zones (or continuum zones) are used to assign which fluid/solid
material(s) exist in a region.
– Options for porous media, laminar region, fixed value, etc.

• Computational effort can be reduced through use of symmetry and


periodic boundaries.

• 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 April 28, 2009
© 2009 ANSYS, Inc. All rights reserved. 4-20 Inventory #002600
Appendix

ANSYS, Inc. Proprietary April 28, 2009


© 2009 ANSYS, Inc. All rights reserved. 4-21 Inventory #002600
Boundary Conditions
Other Inlet / Outlet Boundary Conditions Training Manual

• Pressure Far Field


– Used to model free-stream compressible flow at infinity, with prescribed
static conditions and the free-stream Mach number.
– Available only when density is calculated using the ideal gas law.
• Target Mass Flow Rate option for pressure outlets (not available for
the multiphase models)
– Provides the ability to fix the mass flow rate on a pressure outlet (either
constant or via UDF hook)
– Options to choose iteration method in TUI
• Exhaust Fan / Outlet Vent
– Models an external exhaust fan or outlet vent with specified pressure rise
/ loss coefficient and ambient (discharge) pressure and temperature.
• Inlet Vent / Intake Fan
– Models an inlet vent / external intake fan with specified loss coefficient /
pressure rise, flow direction, and ambient (inlet) pressure and
temperature.
• Inlet boundary conditions for large-eddy / detached-eddy simulations
are covered in the Turbulence Modeling lecture.

ANSYS, Inc. Proprietary April 28, 2009


© 2009 ANSYS, Inc. All rights reserved. 4-22 Inventory #002600
Boundary Conditions
Outflow Training Manual

• No pressure or velocity information is


required.
– Data at exit plane is extrapolated from
interior.
– Mass balance correction is applied at
boundary.
• Flow exiting outflow boundary exhibits zero normal diffusive flux for
all flow variables.
– Appropriate where the exit flow is fully developed.
• The outflow boundary is intended for use with incompressible flows.
– Cannot be used with a pressure inlet boundary (must use velocity-inlet).
• Combination does not uniquely set pressure gradient over whole domain.
– Cannot be used for unsteady flows with variable density.
• Poor rate of convergence when backflow occurs during iterations.
– Cannot be used if backflow is expected in the final solution.

ANSYS, Inc. Proprietary April 28, 2009


© 2009 ANSYS, Inc. All rights reserved. 4-23 Inventory #002600
Boundary Conditions
Modeling Multiple Exits Training Manual

• 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)
Velocity inlet (V, T0)
Outflow (FRW2)
ANSYS, Inc. Proprietary April 28, 2009
© 2009 ANSYS, Inc. All rights reserved. 4-24 Inventory #002600

You might also like