Professional Documents
Culture Documents
• Used for incompressible flows (similar to mass-flow inlet boundary condition that is used for
compressible flows to account for variable density)
• Pressure is calculated at the inlet
• For turbulent flows, also need to specify turbulence parameters
• For heat transfer, also need to specify inlet temperature
• For non-uniform velocity profile, use boundary profile file (7.6 of User's Guide) created from
previous simulation, analytical analysis, or experimental data.
Examples: uniform flow at inlet of pipe or duct, uniform flow for external flow, fully-developed
flow at inlet of pipe or duct
• The total pressure, p0, is related to the static pressure, ps, through Bernoulli’s equation:
2
p0 = ps + 12 ρ V
Example: free boundary where there is flow in from a room at atmospheric pressure
3. INLET-VENT (7.3.6 of User's Guide): fixes ambient total pressure with inlet vent (assumed
infinitely thin) with specified loss coefficient, kL, that can be constant or a function of velocity
and is defined as
2
1
Δp = k L 2 ρV
FRW i
% of flow through boundary = N bnd
∑ FRW i
i=1
3. OUTLET-VENT (7.3.12 of User's Guide): fixes ambient discharge pressure with outlet vent
(assumed infinitely fin) with specified loss coefficient, kL, that can be constant or a function of
velocity and is defined as
2
1
Δp = k L 2 ρV
For the k-ε turbulence model there are two transport equations for k and ε that are 2nd order in
space, thus need to specify two boundary conditions (at inlet and exit) for both k and ε.
1. Specify average turbulent kinetic energy (k) or turbulence intensity (I) defined as:
3 2 u′
k= (u I ) and I = where typical range is 1% < I < 10%.
2 u
Ideally, use experimental data to measure k or I. For underdeveloped, undisturbed flow use
I = 1% (wind tunnel inlet or typical free stream air).
€ €
−1/ 8
For fully-developed duct-flow use: I = 0.16 ( ReDh )
2. Specify turbulent dissipation rate (ε), turbulent length scale ( m ), viscosity ratio (µt/µ), or
hydraulic diameter (Dh):
€
k3/2
To calculate ε from m use the following: = Cµ3 / 4
ε€ where Cµ = 0.09
m
µt ρ k2 µ
To calculate
€ µt/µ from k and ε use the following: = Cµ where 1 < t < 10
€ µ ε µ€ µ
1. WALL (7.3.14 of User's Guide): fixes boundary as solid wall that bounds fluid regions
• Used when both flow and thermal solution are symmetric about a plane to reduce
computational domain
• Use Display/Views menu and the Mirror Planes section to mirror the display
3. AXIS (7.3.17 of User's Guide): fixes boundary as axis for 2-D axisymmetric flow (use x-axis)
4. PERIODIC (7.3.16 of User's Guide): fixes boundary as periodic when the geometry and flow
solution have a periodically repeating nature and will force the flow in to match the flow out
• Can have either (1) no pressure drop or (2) prescribed pressure drop
• You must link the two boundaries together in GAMBIT or FLUENT as periodic
• Use the Define/Periodic Conditions menu to get to the Periodicity Conditions dialog box to
set mass flow rate or pressure gradient and upstream bulk temperature
• You can specify either translational or rotational periodicity in Boundary Conditions panel
Examples: flow through heat exchanger tube bundle and rotational with multiple fluid in ports
flow
symmetry
periodic
flow
periodic periodic
symmetry
ZONES:
• Examples of porous media include filters, packed beds, perforated plates, and tube banks
• Permeability and inertial losses for the porous media must be specified
• Heat transfer calculations assume thermal equilibrium between medium and fluid flow
• 1-D simplification of porous media model is POROUS JUMP (7.3.20 of User's Guide) for
thin membranes where pressure drop versus velocity must be specified
4. FAN (7.3.18 of User's Guide): lumped-parameter model used to determine the impact of a fan
with known characteristics (pressure rise and velocity profile at exit) upon a larger flow field
• The fan is assumed infinitely thin, thus is modeled as the interface between cells and the fan
zone type is an INTERFACE zone
5. RADIATOR (7.3.19 of User's Guide): lumped-parameter model used to add a heat exchange
element (for example a heat exchanger or condenser) with known characteristics (pressure drop
and heat transfer coefficient as a function of velocity) upon a larger flow field
• The radiator is assumed infinitely thin, thus is modeled as the interface between cells and the
radiator zone type is an INTERFACE zone
FLUENT Summary: Outline for Model Setup
Below is a list of steps necessary to set up a convection problem in FLUENT. It only includes
the elements of FLUENT covered in ME 554. Additional models that were not covered in this
class (such as for deforming meshes, fluid structure interaction, multiphase flow, combustion,
etc. that are available in FLUENT) are not included in these steps.
1. Start FLUENT and choose: 2-D or 3-D, single precision or double precision
2. File/Read/Mesh: Import mesh into FLUENT from GAMBIT (typically a .msh file).
3. Problem Setup
General
Mesh Check grid and verify that there are no negative volumes
Scale Change units or scale grid if necessary
Display Display mesh and visually verify mesh and boundary names
Solver
Type Select Pressure Based for pressure-correction equation derived
from conservation of mass for incompressible flow
Space For 2-D select Planar, Axisymmetric, or Axisymmetric Swirl
Time Select Steady or Transient
Units Define units for grid, properties, and calculated values
Models
Energy Turn on for conduction, convection, and compressible flow
Viscous
Model Select viscous model (inviscid, laminar, or one of the turbulence
models) based on Reynolds number for forced convection or
Rayleigh number for natural convection
k-ε Model Choose Standard for equilibrium flows; RNG or Realizable for
flows with high strain rates, swirl, rapidly changing pressures, or
separation
Near-Wall Use Standard-Wall Functions for equilibrium flows; Non-
Equilibrium Wall Functions or Enhanced Wall Functions for flows
with high strain rates, swirl, rapidly changing pressures, or
separation; make sure y+ values for wall adjacent cells are correct
Options Turn on viscous heating for high Eckert number and turbulent
compressible flows
Materials Use properties database or user defined to create new materials; for
natural convection flows set the density to Boussinesq to use this
approximation or set density to variable (typically use ideal gas for
air); change other properties to variable as well for significant
temperature changes
Cell Zone Cond.
Zone Use to set zone as fluid, solid, or porous
Operating Cond. Operating Pressure typically set to atmospheric (101,325 Pa)
Reference Location Only need to set this if there are no pressure boundaries.
Gravity Turn on if natural convection is significant (for Gr/Re2 > 1) and
set Operating Temperature to free stream flow temperature or
coldest boundary temperature for internal flow
Boundary Cond.
Zone Use to define boundary condition and type; for incompressible
flows typically use velocity inlet and pressure outlet; for
compressible flows must use mass-flow inlet and specify mass-
flow rate or mass flux or pressure inlet; for both of these the
specified temperature is the total temperature
Reference Values Set reference values for properties and parameters for calculations
of variables such as drag coefficient or surface Nusselt number
4. Solution
Solution Methods
Press.-Vel. Coup. Select SIMPLE, SIMPLEC (for faster convergence for some
cases), PISO (for unsteady problems), or coupled (for compressible
or natural convection)
Spatial Discret.
Gradient Select Green-Gauss Cell Based (for structured mesh) or Least
Squares Cell Based (for unstructured mesh)
Pressure Select 1st order (faster convergence), 2nd order (for higher
accuracy), PRESTO! (for transient problems), or Body Force
Weighted (for natural convection or swirling)
Upwinding For Momentum, Energy, and Turbulent equations select 1st order
(faster convergence), 2nd order (for higher accuracy), Power-Law,
or QUICK (for higher accuracy on structured grids); use higher
order upwinding to reduce numerical diffusion
Solution Controls
Relaxation Set for each equation; may need to decrease for convergence;
decrease relaxation for energy to 0.7-0.9 for natural convection
and compressible flows
Advanced Use to set multigrid parameters
Monitors
Residuals Set absolute criteria to desired values (10-6 recommended)
Surface Mon. Use to check additional variables (such as total mass flow in and
Volume Mon. out) for convergence or to record results for transient problems
Solution Init.
Compute From Can use inlet conditions for initial values (good for k and ε)
Initialize Sets values as initial guess or initial condition for transient
Calc. Activities
Autosave Every Use to save data at any intermediate iteration or time step
Sol. Animations For transient problems set parameters to make animation(s)
Run Calculation
Check Case Use to check model setup
Calculate Enter number of iterations for a steady solution or time step,
number of steps, and maximum number of iterations for transient
File/Write/Case & Data Save a copy of the case and data after converging to a solution
5. Results
Plots
XY Plot Use to make x-y plots such as velocity and temperature profiles at
boundaries; data can be plotted or written to a file; for turbulent
flows verify y+ values at walls are correct for near wall treatment
Reports
Fluxes Use to output mass flow rate or heat transfer rate across boundaries
Forces Use to output forces and drag coefficients for boundaries
7. Define/Custom Field Functions: Use to define new variables such as the Reynolds number as
a function of the x-coordinate location.
31. Adapt/Gradient: Use grid adaptation to refine grid and improve accuracy. Refine grid until
solution is no longer significantly dependent on grid resolution.
NOTES ON JUDGING CONVERGENCE:
Residuals are used to monitor the convergence of simulations in FLUENT. For the pressure
based solver recall that the discretized conservation equation for a general variable φ at cell P is
written as
aP φ P = ∑ anb φ nb + b
nb
where aP is the center coefficient, anb are coefficients for the neighboring cells, and b results from
the boundary conditions and source terms. After each iteration the “scaled” residual is calculated
€ by summing over all cells the imbalance in the discretized conservation equation above and then
normalizing the result using the term shown in the denominator below
∑ ∑a nb φ nb + b − aP φ P
N cells nb
Rφ =
∑ aP φ P
N cells
Residual definitions are often useful for judging convergence for many classes of problems, but
are sometimes misleading. As a result, there are no universal metrics for judging convergence.
€ Thus, it is a good idea to judge convergence not only by examining residual levels, but also by
monitoring relevant integrated quantities such as mass flux or total heat transfer.
1. If an initial guess for a solution is very good the residual values will not decrease significantly
even though a converged solution has been reached.
2. If the variable of interest is nearly zero everywhere, the residuals may not decrease
significantly. In fully-developed pipe flow, for example, the cross-sectional velocities are zero. If
these velocities have been initialized to zero, initial (and final) residuals are both close to zero.
3. If the governing equation contains non-linear source terms that are zero at the beginning of the
calculation and build up slowly during computation, the residuals may not drop significantly. In
the case of natural convection in an enclosure, for example, initial momentum residuals may be
very close to zero because the initial uniform temperature guess does not generate buoyancy. The
initial nearly-zero residual is not a good scale for the residual.
4. For some equations, such as for turbulence quantities, a poor initial guess may result in high
scale factors. In such cases, scaled residuals will start low, increase as non-linear sources build
up, and eventually decrease. It is therefore good practice to judge convergence not just from the
value of the residual itself, but from its behavior. You should ensure that the residual continues
to decrease (or remain low) for several iterations (approximately 50 or more) before concluding
that the solution has converged.