FVM - CFD
FVM - CFD
FVM - CFD
G.R.K.Gupta
N.I.T., WARANGAL
G.R.K.Gupta, NITW
Overview
1. 2. 3. 4. 5. 6.
Introduction Fluids and flows Numerical Methods Mathematical description of flows Finite volume method Turbulent flows
7.
G.R.K.Gupta, NITW
Introduction
In the past, two approaches in science: - Theoretical - Experimental Computer Numerical simulation Computational Fluid Dynamics (CFD) Expensive experiments are being replaced by numerical simulations : - cheaper and faster - simulation of phenomena that can not be experimentally reproduced (weather, ocean, ...)
G.R.K.Gupta, NITW
G.R.K.Gupta, NITW
Far from solid walls, effects of viscosity neglectable inviscid (Euler) flow in a small region at the wall boundary layer
Important parameter: Reynolds number ratio of inertial forces to friction forces creeping flow laminar flow turbulent flow
G.R.K.Gupta, NITW
Eulerian description focus on a fixed point in space and observes fluid particles as they pass
G.R.K.Gupta, NITW
Numerical Methods
Navier-Stokes equations analytically solvable only in special cases approximate the solution numerically use a discretization method to approximate the differential equations by a system of algebraic equations which can be solved on a computer Finite Differences (FD) Finite Volume Method (FVM) Finite Element Method (FEM)
G.R.K.Gupta, NITW
Structured grid
all nodes have the same number of elements around it only for simple domains
Unstructured grid
for all geometries irregular data structure
Block-structured grid
G.R.K.Gupta, NITW
Truncation error becomes zero when the mesh is refined. Method order n if the truncation error is proportional to ( x ) n or ( t ) n Stability
Discrete solution tends to the exact one as the grid spacing tends to zero. Lax equivalence theorem (for linear problems): Consistency + Stability = Convergence
For non-linear problems: repeat the calculations in successively refined grids to check if the solution converges to a grid-independent solution.
G.R.K.Gupta, NITW
10
11
Navier-Stokes equations
G.R.K.Gupta, NITW
12
Fluid element
infinitesimal fluid element 6 faces: North, South, East, West, Top, Bottom
Systematic account of changes in the mass, momentum and energy of the fluid element due to flow across the boundaries and the sources inside the element fluid flow equations
G.R.K.Gupta, NITW
13
Transport equation
General conservative form of all fluid flow equations for the variable
G.R.K.Gupta, NITW
14
G.R.K.Gupta, NITW
15
Boundary conditions
Inflow (inlet): convective flux prescribed Outflow (outlet): convective flux independent of coordinate normal to the boundary Symmetry
G.R.K.Gupta, NITW
16
G.R.K.Gupta, NITW
17
control volume CV
G.R.K.Gupta, NITW
18
G.R.K.Gupta, NITW
19
velocity field and density are assumed known is the only unknown we consider the east face
Finite Volume Method, G.R.K.Gupta, NITW
20
interpolation
21
Interpolation
we need to interpolate f the only unknown in f is Different methods to approximate and its normal derivative: Upwind Differencing Scheme (UDS) Central Differencing Scheme (CDS) Quadratic Upwind Interpolation (QUICK)
Finite Volume Method, G.R.K.Gupta, NITW
22
Interpolation (2)
Upwind Differencing Scheme (UDS) Approximation by its value the node upstream of e
G.R.K.Gupta, NITW
23
Interpolation (3)
G.R.K.Gupta, NITW
24
Interpolation (4)
Quadratic Upwind Interpolation (QUICK)
Interpolation through a parabola: three points necessary P, E and point in upstream side
G.R.K.Gupta, NITW
25
matrix A sparse
G.R.K.Gupta, NITW
26
G.R.K.Gupta, NITW
27
Jacobi method Gauss-Seidel method Successive Over-Relaxation (SOR) Conjugate Gradient Method (CG) Multigrid methods
- repeated application of a simple algorithm
- not possible to guarantee convergence - only non-zero coefficients need to be stored
G.R.K.Gupta, NITW
28
Time discretization
f discretized using finite volume method time integration like in ordinary differential equations
G.R.K.Gupta, NITW
30
G.R.K.Gupta, NITW
32
Non-linear convective terms Three equations are coupled No equation for the pressure Problems in incompressible flow: coupling between pressure and velocity introduces a constraint Location of variables on the grid: Colocated grid Staggered grid
Finite Volume Method, G.R.K.Gupta, NITW
33
Colocated grid Node for pressure and velocity at CV center Same CV for all variables Possible oscillations of pressure
G.R.K.Gupta, NITW
34
G.R.K.Gupta, NITW
35
Summary FVM
FVM uses integral form of conservation (transport) equation Domain subdivided in control volumes (CV) Surface and volume integrals approximated by numerical quadrature Interpolation used to express variable values at CV faces in terms of nodal values It results in an algebraic equation per CV Suitable for any type of grid Conservative by construction Commercial codes: CFX, Fluent, Phoenics, Flow3D
Finite Volume Method, G.R.K.Gupta, NITW 36
Turbulent flows
Most flows in practice are turbulent With increasing Re, smaller eddies Very fine grid necessary to describe all length scales Even the largest supercomputer does not have (yet) enough speed and memory to simulate turbulent flows of high Re.
Computational methods for turbulent flows: Direct Numerical Simulation (DNS) Large Eddy Simulation (LES) Reynolds-Averaged Navier-Stokes (RANS)
G.R.K.Gupta, NITW
37
Discretize Navier-Stokes eq on a sufficiently fine grid for resolving all motions occurring in turbulent flow No uses any models Equivalent to laboratory experiment
Relationship between length of smallest eddies and the length L of largest eddies,
G.R.K.Gupta, NITW
38
nelem 10 13
39
G.R.K.Gupta, NITW
Large Eddy Simulation (LES) Only large eddies are computed Small eddies are modelled, subgrid-scale (SGS) models
Reynolds-Averaged Navier-Stokes (RANS) Variables decomposed in a mean part and a fluctuating part, u u u Navier-Stokes equations averaged over time Turbulence models are necessary
Finite Volume Method, G.R.K.Gupta, NITW
40
Example CFX
G.R.K.Gupta, NITW
41
G.R.K.Gupta, NITW
42
G.R.K.Gupta, NITW
43
G.R.K.Gupta, NITW
44