Introduction To CFX: Domains and Boundary Conditions
Introduction To CFX: Domains and Boundary Conditions
Introduction To CFX: Domains and Boundary Conditions
2
r
i loss i
perm i
U K U
K dx
dp
2
r
i R i R
i
U C U C
dx
dp
2 1
Boundary Conditions
3-19
ANSYS, Inc. Proprietary
2009 ANSYS, Inc. All rights reserved.
April 28, 2009
Inventory #002598
Training Manual
Materials
Create a name for the fluid to be used
Select the material to be used in the domain
Currently loaded materials are available in the drop down list
Additional Materials are available by clicking
Boundary Conditions
3-20
ANSYS, Inc. Proprietary
2009 ANSYS, Inc. All rights reserved.
April 28, 2009
Inventory #002598
Training Manual
Materials
A Material can be created/edited by right clicking Materials
in the Outline Tree
Boundary Conditions
3-21
ANSYS, Inc. Proprietary
2009 ANSYS, Inc. All rights reserved.
April 28, 2009
Inventory #002598
Training Manual
Multicomponent/Multiphase Flow
ANSYS CFX has the capability to model fluid mixtures
(multicomponent) and multiple phases
Multicomponent (more details on next slide)
One flow field for the mixture
Variations in the mixture accounted for by variable mass
fractions
Applicable when components are mixed at the molecular
level
Multiphase
Each fluid may possess its own flow field
(not available in CFD-Flo product) or all
fluids may share a common flow field
Applicable when fluids are mixed on a
macroscopic scale, with a discernible
interface between the fluids.
Creating multiple fluids will
allow you to specify fluid
specific and fluid pair models
Boundary Conditions
3-22
ANSYS, Inc. Proprietary
2009 ANSYS, Inc. All rights reserved.
April 28, 2009
Inventory #002598
Training Manual
Multicomponent Flow
Each component fluid may have a distinct set of physical
properties
The ANSYS CFX-Solver will calculate appropriate average values
of the properties for each control volume in the flow domain, for
use in calculating the fluid flow
These average values will depend both on component property
values and on the proportion of each component present in the
control volume
In multicomponent flow, the various components of a fluid share
the same mean velocity, pressure and temperature fields, and
mass transfer takes place by convection and diffusion
Boundary Conditions
3-23
ANSYS, Inc. Proprietary
2009 ANSYS, Inc. All rights reserved.
April 28, 2009
Inventory #002598
Training Manual
Compressible Flow Modelling
Activated by selecting an Ideal Gas, Real Fluid, or a General Fluid
whose density is a function of pressure
Can solve for subsonic, supersonic and transonic flows
Supersonic/Transonic flow problems
Set the heat transfer option to Total Energy
Generally more difficult to solve than subsonic/incompressible flow problems,
especially when shocks are present
Click to load a
real gas library
3-24
ANSYS, Inc. Proprietary
2009 ANSYS, Inc. All rights reserved.
April 28, 2009
Inventory #002598
Boundary Conditions
Boundary Conditions
3-25
ANSYS, Inc. Proprietary
2009 ANSYS, Inc. All rights reserved.
April 28, 2009
Inventory #002598
Training Manual
Defining Boundary Conditions
You must specify information on the dependent (flow) variables at the
domain boundaries
Specify fluxes of mass, momentum, energy, etc. into the domain.
Defining boundary conditions involves:
Identifying the location of the boundaries (e.g., inlets, walls, symmetry)
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 types of the boundary condition available and
locate the boundaries where the flow variables have known values or
can be reasonably approximated
Poorly defined boundary conditions can have a significant impact on your
solution
Boundary Conditions
3-26
ANSYS, Inc. Proprietary
2009 ANSYS, Inc. All rights reserved.
April 28, 2009
Inventory #002598
Training Manual
Available Boundary Condition Types
Inlet
Velocity Components -Static Temperature (Heat Transfer)
Normal Speed -Total Temperature (Heat Transfer)
Mass Flow Rate -Total Enthalpy (Heat Transfer)
Total Pressure (stable) -Relative Static Pressure (Supersonic)
Static Pressure -Inlet Turbulent conditions
Outlet
Average Static Pressure -Normal Speed
Velocity Components -Mass Flow Rate
Static Pressure
Opening
Opening Pressure and Dirn -Opening Temperature (Heat Transfer)
Entrainment -Opening Static Temperature (Heat Transfer)
Static Pressure and Direction -Inflow Turbulent conditions
Velocity Components
Wall
No Slip / Free Slip -Adiabatic (Heat Transfer)
Roughness Parameters -Fixed Temperature (Heat Transfer)
Heat Flux (Heat Transfer) -Heat Transfer Coefficient (Heat Transfer)
Wall Velocity (for tangential motion only)
Symmetry
No details (only specify region which corresponds to the symmetry plane
Inlet
Opening
Outlet
Wall
Symmetry
Boundary Conditions
3-27
ANSYS, Inc. Proprietary
2009 ANSYS, Inc. All rights reserved.
April 28, 2009
Inventory #002598
Training Manual
Right-click on the domain to insert BCs
How to Create a Boundary Condition
After completing
the boundary
condition, it
appears in the
Outline tree
below its domain
Boundary Conditions
3-28
ANSYS, Inc. Proprietary
2009 ANSYS, Inc. All rights reserved.
April 28, 2009
Inventory #002598
Training Manual
Inlets and Outlets
Inlets are used predominantly for regions where inflow is expected;
however, inlets also support outflow as a result of velocity specified
boundary conditions
Velocity specified inlets are intended for incompressible flows
Using velocity inlets in compressible flows can lead to non-physical results
Pressure and mass flow inlets are suitable for compressible and
incompressible flows
The same concept applies to outlets
Velocity Specified Condition Pressure or Mass Flow Condition
Inlet
Inlet
Inflow
allowed
Inflow
allowed
Outflow
allowed
Boundary Conditions
3-29
ANSYS, Inc. Proprietary
2009 ANSYS, Inc. All rights reserved.
April 28, 2009
Inventory #002598
Training Manual
Openings
Artificial walls are not erected with the opening type boundary, as
both inflow and outflow are allowed
You are required to specify information that is used if the flow
becomes locally inflow
Do not use opening as an excuse for a poorly placed boundary
See the following slides for examples
Pressure Specified Opening
Inlet
Inflow
allowed
Outflow
allowed
Boundary Conditions
3-30
ANSYS, Inc. Proprietary
2009 ANSYS, Inc. All rights reserved.
April 28, 2009
Inventory #002598
Training Manual
Symmetry
Used to reduce computational effort in problem.
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
Can be used to model slip walls in viscous flow
symmetry
planes
Boundary Conditions
3-31
ANSYS, Inc. Proprietary
2009 ANSYS, Inc. All rights reserved.
April 28, 2009
Inventory #002598
Training Manual
Fuel
Air
Manifold box
1
Nozzle
1
2
3
Specifying Well Posed Boundary Conditions
1 Upstream of manifold
Can use uniform profiles
since natural profiles will
develop in the supply pipes
Requires more elements
2 Nozzle inlet plane
Requires accurate velocity
profile data for the air and
fuel
3 Nozzle outlet plane
Requires accurate velocity
profile data and accurate
profile data for the mixture
fractions of air and fuel
Consider the following case in which contain separate air and fuel
supply pipes
Three possible approaches
in locating inlet boundaries:
Boundary Conditions
3-32
ANSYS, Inc. Proprietary
2009 ANSYS, Inc. All rights reserved.
April 28, 2009
Inventory #002598
Training Manual
Specifying Well Posed Boundary Conditions
If possible, select boundary
location and shape such that
flow either goes in or out
Not necessary, but will typically
observe better convergence
Should not observe large
gradients in direction normal to
boundary
Indicates incorrect boundary
condition location
Upper pressure boundary modified to
ensure that flow always enters domain.
This outlet is poorly located. It should
be moved further downstream
Boundary Conditions
3-33
ANSYS, Inc. Proprietary
2009 ANSYS, Inc. All rights reserved.
April 28, 2009
Inventory #002598
Training Manual
Boundaries placed over recirculation zones
Poor Location: Apply an opening to allow inflow
Better Location: Apply an outlet with an accurate velocity/pressure profile
(difficult)
Ideal Location: Apply an outlet downstream of the recirculation zone to allow
the flow to develop. This will make it easier to specify accurate flow
conditions
Specifying Well Posed Boundary Conditions
Opening
Outlet
Outlet
Boundary Conditions
3-34
ANSYS, Inc. Proprietary
2009 ANSYS, Inc. All rights reserved.
April 28, 2009
Inventory #002598
Training Manual
Turbulence at the Inlet
Nominal turbulence intensities range from 1% to 5% but will depend
on your specific application.
The default turbulence intensity value of 0.037 (that is, 3.7%) is
sufficient for nominal turbulence through a circular inlet, and is a good
estimate in the absence of experimental data.
For situations where turbulence is generated by wall friction, consider
extending the domain upstream to allow the walls to generate
turbulence and the flow to become developed
Specifying Well Posed Boundary Conditions
Boundary Conditions
3-35
ANSYS, Inc. Proprietary
2009 ANSYS, Inc. All rights reserved.
April 28, 2009
Inventory #002598
Training Manual
External Flow
In general, if the building has height H and width W, you would want your
domain to be at least 5H high, 10W wide, with at least 2H upstream of the
building and 10 H downstream of the building.
You would want to verify that there are no significant pressure gradients
normal to any of the boundaries of the computational domain. If there are,
then it would be wise to enlarge the size of your domain.
Specifying Well Posed Boundary Conditions
w
h
5h
10H At least 2H
10w
Concentrate mesh in
regions of high
gradients
Boundary Conditions
3-36
ANSYS, Inc. Proprietary
2009 ANSYS, Inc. All rights reserved.
April 28, 2009
Inventory #002598
Training Manual
Symmetry Plane and the Coanda Effect
Symmetric geometry does not necessarily mean symmetric flow
Example: The coanda effect. A jet entering at the center of a
symmetrical duct will tend to flow along one side above a certain
Reynolds number
Specifying Well Posed Boundary Conditions
No Symmetry Plane Symmetry Plane
Coanda effect
not allowed
Boundary Conditions
3-37
ANSYS, Inc. Proprietary
2009 ANSYS, Inc. All rights reserved.
April 28, 2009
Inventory #002598
Training Manual
When there is 1 Inlet and 1 Outlet
Most Robust: Velocity/Mass Flow at an Inlet; Static Pressure at an Outlet.
The Inlet total pressure is an implicit result of the prediction.
Robust: Total Pressure at an Inlet; Velocity/Mass Flow at an Outlet. The
static pressure at the Outlet and the velocity at the Inlet are part of the
solution.
Sensitive to Initial Guess: Total Pressure at an Inlet; Static Pressure at an
Outlet. The system mass flow is part of the solution
Very Unreliable: Static Pressure at an Inlet; Static Pressure at an Outlet.
This combination is not recommended, as the inlet total pressure level and
the mass flow are both an implicit result of the prediction (the boundary
condition combination is a very weak constraint on the system).
Specifying Well Posed Boundary Conditions
Boundary Conditions
3-38
ANSYS, Inc. Proprietary
2009 ANSYS, Inc. All rights reserved.
April 28, 2009
Inventory #002598
Training Manual
Specifying Well Posed Boundary Conditions
At least one boundary should specify Pressure (either Total or Static)
Unless its a closed system
Using a combination of Velocity and Mass Flow conditions at all boundaries
over constrains the system
Total Pressure cannot be set at an Outlet
It is unconditionally unstable
Outlets that vent to the atmosphere typically use a Static Pressure = 0
boundary condition
With a domain Reference Pressure of 1 [atm]
Inlets that draw flow in from the atmosphere often use a Total
Pressure = 0 boundary condition (e.g. an open window)
With a domain Reference Pressure of 1 [atm]
Boundary Conditions
3-39
ANSYS, Inc. Proprietary
2009 ANSYS, Inc. All rights reserved.
April 28, 2009
Inventory #002598
Training Manual
Specifying Well Posed Boundary Conditions
Mass flow inlets result in a uniform velocity profile over the inlet
Fully developed flow is not achieved
You cannot specify a mass flow profile
Mass flow outlets allow a natural velocity profile to develop based on
the upstream conditions
Pressure specified boundary conditions allow a natural velocity
profile to develop