Professional Documents
Culture Documents
Incompressible PDF
Incompressible PDF
ME469B/3/GI 1
Background (from ME469A or similar)
Multigrid methods
ME469B/3/GI 2
NS equations
Conservation laws:
=0
ME469B/3/GI 3
NS equations
Differential form:
ME469B/3/GI 4
NS equations
Compressible flows:
Incompressible flows:
Density variation are not linked to the pressure. The mass conservation is a
constraint on the velocity field; this equation (combined with the momentum) can
be used to derive an equation for the pressure
ME469B/3/GI 5
Finite Volume Method
Discretize the equations in conservation (integral) form
ME469B/3/GI 6
Pressure-based solution of the NS equation
ME469B/3/GI 7
Explicit scheme for NS equations
ME469B/3/GI 8
Explicit pressure-based scheme for NS equations
Compute Hn
ME469B/3/GI 9
Implicit scheme for NS equations
ME469B/3/GI 10
Navier-Stokes Equations
Conservation of mass
Conservation of momentum
Conservation of energy
Newtonian fluid
Conservation of momentum
Difficulties:
Non-linearity, coupling, role of the pressure
ME469B/3/GI 12
A Solution Approach
The momentum equation can be interpreted as a advection/diffusion
equation for the velocity vector
ME469B/3/GI 13
The Projection Method
Implicit, coupled and non-linear
ME469B/3/GI 14
Alternative View of Projection
Reorganize the NS equations (Uzawa)
LU decomposition
Exact splitting
Momentum eqs.
Pressure Poisson eq.
Velocity correction
ME469B/3/GI 15
Alternative View of Projection
Exact projection requires the inversion of the LHS of the momentum eq.
thus is costly.
Momentum eqs.
Pressure Poisson eq.
Velocity correction
ME469B/3/GI 16
What about steady state?
Solution of the steady-state NS equations is of primary importance
Mom. Equations
Reference Quantities
ME469B/3/GI 18
Implicit scheme for steady NS equations
So we can update
ME469B/3/GI 19
Implicit pressure-based scheme for NS equations (SIMPLE)
SIM PLE: Semi-Implicit M ethod for Pressure-Linked Equations
ME469B/3/GI 20
Implicit pressure-based scheme for NS equations (SIMPLEC)
SIM PLE: SIM PLE Corrected/Consistent
ME469B/3/GI 21
Implicit pressure-based scheme for NS equations (PISO)
PISO: Pressure Implicit with Splitting Operators
ME469B/3/GI 22
SIMPLE, SIMPLEC & PISO - Comments
un+1 = u* + αu u’ p = pn + αp p’
ME469B/3/GI 23
Under-relaxation
Variable under-relaxation
ME469B/3/GI 24
Segregated (pressure based) solver in FLUENT
f
Ω
The quantities at the cell faces can be computed using several different schemes
ME469B/3/GI 25
Discretization of the equations
ME469B/3/GI 26
Discretization of the convective terms
φP φe
1st Order Upwind
φE
Depending on the flow direction ONLY
P e E
Very stable but dissipative
Flow direction
ME469B/3/GI 27
Discretization of the convective terms
φP
Central differencing (2nd order) φe
φE
Symmetric. Not depending on the flow direction
P e E
Not dissipative but dispersive (odd derivatives)
Flow direction
ME469B/3/GI 28
Discretization of the convective terms
ME469B/3/GI 29
Discretization of the convective terms
Flow direction
ME469B/3/GI 30
Evaluation of gradients
Gauss Gradient
Least Square
Gradient
LS system
ME469B/3/GI 31
Solution of the equation
φ is one of the velocity component and the convective terms must be linearized:
ME469B/3/GI 32
Grids
Polyhedral - non-Gambit
ME469B/3/GI 36
Set-up of problems with FLUENT
Read/Import the grid Graphics Window
Define the flow solver option
Define the fluid properties
Define the discretization scheme
Define the boundary condition
Define initial conditions Command Menus
Define convergence monitors
Run the simulation
Analyze the results
Text Window
ME469B/3/GI 37
Solver set-up
Define → Materials
ME469B/3/GI 39
Initial and boundary conditions
ME469B/3/GI 40
Initial conditions using patching
ME469B/3/GI 41
Convergence monitors
Convergence history of the equation residuals are stored together with the solution
User-defined monitors are NOT stored by default
ME469B/3/GI 42
Postprocessing
Cell-centered
data are
Computed
This switch
interpolates the
results on the
cell-vertices
ME469B/3/GI 43
Detailed post-processing
Define additional quantities
ME469B/3/GI 44
Fluent GUI - Summary
File: I/O
Grid: Modify (translate/scale/etc.), Check
Define: Models (solver type/multiphase/etc.), Material (fluid properties),
Boundary conditions
Solve: Discretization, Initial Condition, Convergence Monitors
Adapt: Grid adaptation, Patch marking
Surface: Create zones (postprocessing/monitors)
Display: Postprocessing (View/Countors/Streamlines)
Plot: XY Plots, Residuals
Report: Summary, Integral
Parallel: Load Balancing, Monitors Typical simulation
ME469B/3/GI 45
Example – Driven cavity
Classical test-case for Problem set-up Solver Set-Up
incompressible flow solvers
Material Properties:
ρ = 1kg/m3 Segregated Solver
µ = 0.001kg/ms
Discretization:
2nd order upwind
Reynolds number:
SIMPLE
H = 1m, Vslip= 1m/s
Vslip=1 Re = ρVslipH/µ = 1,000
Multigrid
V-Cycle
Boundary Conditions:
Slip wall (u = Vslip) on top
No-slip walls the others
H Initial Conditions:
u=v=p=0
Convergence Monitors:
Averaged pressure and
friction on the no-slip walls
ME469B/3/GI 46
Example – Driven cavity
ME469B/3/GI 48
Example – Driven cavity
ME469B/3/GI 49
Example – Driven cavity
The effect of the meshing scheme
x-velocity component in the middle of the cavity
Vorticity Contours
ME469B/3/GI 51
Example – Driven cavity
Grid Sensitivity – Quad Mapping Scheme
x-velocity component in the middle of the cavity
Symbols corresponds to
1600 cells 6400 cells 25600 cells
Ghia et al., 1982
ME469B/3/GI 52
How to verify the accuracy?
ME469B/3/GI 53
Generation of successively refined grid
1) Modify grid dimensions in GAMBIT and regenerate the grid
2) Split all the cells in FLUENT
Note that the triangular grid has more than twice as many grid cells
ME469B/3/GI 55
Driven Cavity – Accuracy evaluation Nominal 2nd
Nominal 1st
order accuracy
order accuracy
(N)-1/2
Quad-Mapping Tri-Paving Quad-Paving
ME469B/3/GI 56
Driven Cavity – Fluent vs. other CFD codes
Quad Mapping Scheme (1600 cells)
x-velocity component in the middle of the cavity
Symbols corresponds to
FLUENT StarCD NASA INS2D
Ghia et al., 1982
ME469B/3/GI 57
Techniques for the incompressible NS equations
Vorticity-streamfunction formulation
Density-based approach
ME469B/3/GI 58
Techniques for the incompressible NS equations
Vorticity-streamfunction approach
It is effectively a change-of-variables; introducing the streamfunction and the vorticity
vector the continuity is automatically satisfied and the pressure disappears (if needed the
solution of a Poisson-like equation is still required). It is advantageous in 2D because it
requires the solution of only two PDEs but the treatment of BCs is difficult. In addition
in 3D the PDEs to be solved are six
ME469B/3/GI 59
Density-based solvers for the NS equations
The equation are written in compressible form and, for low Mach numbers,
the flow is effectively incompressible
ME469B/3/GI 60
Density-based solvers for the NS equations
Stiffness occurs because of the disparity between fluid velocity and speed
of sound (infinite in zero-Mach limit)
The equations are solved in terms of the primitive variables
where
ME469B/3/GI 61
Density-based solvers for the NS equations
The time derivative is modified (preconditioned) to force all the eigenvalues
to be of the same order (similar to the artificial compressibility approach)
where
The eigenvalues of Γ are
ME469B/3/GI 62
Density-based solvers for the NS equations
Limiting cases
Compressible flows
(ideal gas):
ME469B/3/GI 63
FLUENT density-based solver
Explicit Scheme
Residual Smoothing
Multigrid acceleration
ME469B/3/GI 64
FLUENT density-based solver
Implicit Scheme
Multigrid acceleration
ME469B/3/GI 65
Example – Driven cavity
Classical test-case for Problem set-up Solver Set-Up
incompressible flow solvers
Material Properties: Coupled Solver
ρ = 1kg/m3
µ = 0.001kg/ms Discretization:
2nd order upwind
Reynolds number: Implicit
H = 1m, Vslip= 1m/s
Vslip=1 Re = ρVslipH/µ = 1,000 Multigrid
V-Cycle
Boundary Conditions:
Slip wall (u = Vslip) on top
No-slip walls the others
H Initial Conditions:
u=v=p=0
Convergence Monitors:
Averaged pressure and
friction on the no-slip walls
ME469B/3/GI 66
Example – Driven cavity
Segregated Coupled
Vorticity Contours
ME469B/3/GI 67
Example – Driven cavity
Effect of the solver - Quad mesh (1600 cells)
x-velocity component in the middle of the cavity
Symbols corresponds to
Segregated Coupled
Ghia et al., 1982
ME469B/3/GI 68
Multigrid acceleration
Basic idea: the global error (low-frequency) on a fine grid appears as a local
error (high-frequency) on coarse meshes.
ME469B/3/GI 69
Two-grid scheme
ME469B/3/GI 70
Multigrid Formalism
Correct
ME469B/3/GI 71
Restriction & Prolongation Operators
Fine Level
Coarse Level
ME469B/3/GI 72
Algebraic Multigrid
The coarse levels are generated without the use of any discretization on
coarse levels; in fact no hierarchy of meshes is needed
AMG is effectively a solver for linear systems and the restriction and
prolongation operators might be viewed as means to modify (group or split)
the coefficient matrix
Formally:
ME469B/3/GI 73
Multigrid for unstructured meshes
Aggregative Coarsening: fine grid cells are collected into a coarse grid element
Selective Coarsening: few fine grid cells are retained on the coarser grids…
ME469B/3/GI 74
Multigrid in Fluent
V-Cycle W-Cycle
ME469B/3/GI 75
Multigrid in Fluent
Flexible Cycle
Restriction Criteria:
A coarser level is invoked as soon as the residual reduction rate is below a certain %
Termination Criteria:
The corrections are transferred to a finer level as soon as a certain residual level is reached
ME469B/3/GI 76
Multigrid in Fluent
ME469B/3/GI 77
Algebraic Multigrid Performance
ME469B/3/GI 78
Algebraic Multigrid Performance
ME469B/3/GI 79
Periodic Flows
Geometrical
periodicity
ME469B/3/GI 80
Periodic Flows – Set-Up
In the segregated solver periodicity can be imposed by fixing either the
mass flow or the pressure drop
In the coupled solver periodicity is enforced by fixing the pressure drop
Navier-Stokes equations
Averaged velocity
ME469B/3/GI 82
Periodic Flow Example – 2D channel
Problem set-up Solver Set-Up
Exact solution:
Vave = 1
ME469B/3/GI 83
Periodic Flow Example – 2D channel
Cell-centered values
showed (no interpolation)
Quad-Mapping Tri-Paving
ME469B/3/GI 84
Periodic Flow Example – 2D channel
The error in this case CAN be computed with reference to the exact solution
In this case the computed averaged velocity error is plotted
Nominal 1st
order accuracy
Nominal 2nd
order accuracy
(N)-1/2
Quad-Mapping Tri-Paving
About 30 packages.
ME469B/3/GI 86