Finite Volume Method Praveen. C Computational and Theoretical Fluid - - PowerPoint PPT Presentation

finite volume method
SMART_READER_LITE
LIVE PREVIEW

Finite Volume Method Praveen. C Computational and Theoretical Fluid - - PowerPoint PPT Presentation

Finite Volume Method Praveen. C Computational and Theoretical Fluid Dynamics Division National Aerospace Laboratories Bangalore 560 017 email: praveen@cfdlab.net Workshop on Advances in Computational Fluid Flow and Heat Transfer Annamalai


slide-1
SLIDE 1
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

Finite Volume Method

  • Praveen. C

Computational and Theoretical Fluid Dynamics Division National Aerospace Laboratories Bangalore 560 017 email: praveen@cfdlab.net

Workshop on Advances in Computational Fluid Flow and Heat Transfer Annamalai University October 17-18, 2005

slide-2
SLIDE 2
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

Topics to be covered

  • 1. Conservation Laws
  • 2. Finite volume method
  • 3. Types of finite volumes
  • 4. Flux functions
  • 5. Spatial discretization schemes
  • 6. Higher order schemes
  • 7. Boundary conditions
  • 8. Accuracy and stability
  • 9. Computational issues
  • 10. References

Hyperbolic equations, Compressible flow, unstructured grid schemes

slide-3
SLIDE 3
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

Conservation Laws and FVM

  • Basic laws of physics are conservation laws - mass, momentum, energy
  • Differential form

∂U ∂t + ∂f ∂x + ∂g ∂y + ∂h ∂z = 0 U - conserved variables f, g, h - flux vector

  • Compressible flows - shocks and other discontinuities
  • Classical solution may not exist
  • Integral form (using divergence theorem)

∂ ∂t

Udxdydz +

  • ∂Ω

(fnx + gny + hnz)dS = 0 Rate of change of U in Ω = - (Net flux across the boundary of Ω) ⇓ Starting point for finite volume method

slide-4
SLIDE 4
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

  • Discontinuities are a consequence of conservation laws
  • Rankine-Hugoniot jump conditions [9, 10]

(fnx + gny + hnz)R − (fnx + gny + hnz)L = s(UR − UL) n U U

L R

Shock

  • Solution satisfying integral form - weak solution
  • Definition (Weak solution)
  • 1. Satisfies the differential form in smooth regions
  • 2. Satisfies jump condition across discontinuities
  • Hyperbolic conservation laws - non-uniqueness
  • Limit of a dissipative model: Navier-Stokes → Euler
slide-5
SLIDE 5
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

  • Entropy condition - second law of thermodynamics
  • Entropy satisfying weak solution - unique (Kruzkov)
  • Conservative scheme (FVM) - correct shock location (Warnecke)
  • Useful for solving equations with discontinuous coefficients
  • FVM can be applied on arbitrary grids - structured and unstructured
slide-6
SLIDE 6
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

  • Entropy condition - second law of thermodynamics
  • Entropy satisfying weak solution - unique (Kruzkov)
  • Conservative scheme (FVM) - correct shock location (Warnecke)
  • Useful for solving equations with discontinuous coefficients
  • FVM can be applied on arbitrary grids - structured and unstructured
slide-7
SLIDE 7
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

  • Entropy condition - second law of thermodynamics
  • Entropy satisfying weak solution - unique (Kruzkov)
  • Conservative scheme (FVM) - correct shock location (Warnecke)
  • Useful for solving equations with discontinuous coefficients
  • FVM can be applied on arbitrary grids - structured and unstructured
slide-8
SLIDE 8
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

FVM in 1-D

  • Divide computational domain [a, b] into N cells

a = x1/2 < x3/2 < . . . < xN+1/2 = b Ci = [xi−1/2, xi+1/2]

Ci h i−3/2 i−1/2 i+1/2 i+3/2 i

  • Conservation law for cell Ci

∂ ∂t xi+1/2

xi−1/2

Udx + f(xi+1/2, t) − f(xi−1/2, t) = 0

  • Cell average value

Ui(t) = 1 hi xi+1/2

xi−1/2

U(x, t)dx

slide-9
SLIDE 9
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

  • Conservation law for cell Ci

hi dUi dt + f(xi+1/2, t) − f(xi−1/2, t) = 0

U U i+1/2

i i+1

  • Riemann problem at each interface
  • Numerical flux function (Godunov approach)

Fi+1/2(t) = F(Ui(t), Ui+1(t))

  • Semi-discrete update equation (ODE system)

dUi dt = − 1 hi [Fi+1/2(t) − Fi−1/2(t)]

slide-10
SLIDE 10
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

  • Method of lines approach

– Discretize in space – Integrate the ODE system in time

  • Explicit Euler scheme [ U n

i ≈ U(xi, tn) ]

Ui(tn+1) − Ui(tn) ∆t = − 1 hi [Fi+1/2(tn) − Fi−1/2(tn)] ⇓ U n+1

i

= U n

i − ∆t

hi [F n

i+1/2 − F n i−1/2]

  • Conservation: Telescopic collapse of fluxes
  • i

hi dUi dt = −

  • i

[Fi+1/2(t) − Fi−1/2(t)] = −[f(b, t) − f(a, t)]

slide-11
SLIDE 11
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

Numerical Flux Function

  • Simple averaging

Fi+1/2 = f((Ui + Ui+1)/2)

  • r

Fi+1/2 = (fi + fi+1)/2

  • Equivalent to central differencing

dUi dt + 1 hi (fi+1 − fi−1) = 0 (unstable)

  • Two approaches
  • 1. Central differencing with artificial dissipation [13]

Fi+1/2 = 1 2(fi + fi+1) − di+1/2

  • 2. Upwind flux formula [9, 10, 13, 20, 22]

FVS: Fi+1/2 = f +(Ui) + f −(Ui+1) FDS: Fi+1/2 = 1 2(fi + fi+1) − 1 2[(∆f)−

i+1/2 − (∆f)+ i+1/2]

slide-12
SLIDE 12
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

  • Example: convection-diffusion equation

∂U ∂t + ∂f ∂x = 0, f = aU − ν∂U ∂x Fi+1/2 = aUi+1/2 − ν ∂U ∂x

  • i+1/2
  • Upwind definition of interfacial state

Ui+1/2 =

  • Ui

if a ≥ 0 Ui+1 if a < 0

  • Central-difference for viscous term

∂U ∂x

  • i+1/2

= Ui+1 − Ui xi+1 − xi

  • Upwind numerical flux

Fi+1/2 = 1 2(aUi + aUi+1) − |a| 2 (Ui+1 − Ui) − νUi+1 − Ui xi+1 − xi

slide-13
SLIDE 13
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

Significance of conservative scheme

  • Inviscid Burgers equation

∂U ∂t + ∂ ∂x U 2 2

  • = 0,

f(U) = U 2 2

  • Rankine-Hugoniot condition

fR − fL = s(UR − UL) = ⇒ s = 1 2(UL + UR)

  • Non-conservative form

∂U ∂t + U ∂U ∂x = 0

  • Upwind scheme (assume U ≥ 0)

U n+1

i

− U n

i

∆t + U n

i

U n

i − U n i−1

h = 0

  • r

U n+1

i

= U n

i − ∆t

h U n

i (U n i − U n i−1)

slide-14
SLIDE 14
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

  • Initial condition

U(x, 0) =

  • 1

if x < 0 if x > 0

  • Numerical solution

U n

i = U o i =

⇒ stationary shock

  • Exact solution (shock speed = 1/2)

U(x, t) =

  • 1

if x < t/2 if x > t/2

  • Conservation form from physical considerations

U ∂U ∂t + U ∂ ∂x U 2 2

  • = 0
  • r

∂ ∂t U 2 2

  • + ∂

∂x U 3 3

  • = 0
  • Jump conditions not identical: s = 2

3

U2

L+ULUR+U2 R

UL+UR

slide-15
SLIDE 15
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

Higher order scheme in 1-D

  • Constant-in-cell representation
  • ✂✁
✁ ✄ ✄✂☎ ☎ ✆ ✆✂✝ ✝

i−3/2 i−1/2 i+1/2 i+3/2 Ci−1 Ci+1 Ci

  • First order accurate

|Ui − U(xi)| = O(h) h = max

i

hi

  • Reconstruction - evolution - projection
slide-16
SLIDE 16
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

Higher order scheme in 1-D

  • Reconstruct the variation within a cell
  • ✂✁
✁ ✄ ✄✂☎ ☎ ✆ ✆✂✝ ✝

i−3/2 i−1/2 i+1/2 i+3/2 Ci−1 Ci+1 Ci Left state Right state

  • Linear reconstruction

˜ U(x) = Ui + si(x − xi), x ∈ [xi−1/2, xi+1/2]

  • Biased interpolant

U L

i+1/2 = Ui + si(xi+1/2 − xi),

U R

i+1/2 = Ui+1 + si+1(xi+1/2 − xi+1),

slide-17
SLIDE 17
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

  • Flux for higher order scheme

Fi+1/2 = F(Ui, Ui+1)

  • Reconstruction variables
  • 1. Conserved variables - conservative
  • 2. Characteristic variables - better upwinding but costly
  • 3. Primitive variables (ρ, u, p) - computationally cheap
  • Unsteady flows - reconstruction must preserve conservation

1 hi

  • Ci

˜ U(x)dx = Ui

  • Gradients for reconstruction: backward, forward, central difference

si,b = Ui − Ui−1 xi − xi−1 , si,f = Ui+1 − Ui xi+1 − xi , si,c = Ui+1 − Ui−1 xi+1 − xi−1

slide-18
SLIDE 18
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

  • Flux for higher order scheme

Fi+1/2 = F(U L

i+1/2, UR i+1/2)

  • Reconstruction variables
  • 1. Conserved variables - conservative
  • 2. Characteristic variables - better upwinding but costly
  • 3. Primitive variables (ρ, u, p) - computationally cheap
  • Unsteady flows - reconstruction must preserve conservation

1 hi

  • Ci

˜ U(x)dx = Ui

  • Gradients for reconstruction: backward, forward, central difference

si,b = Ui − Ui−1 xi − xi−1 , si,f = Ui+1 − Ui xi+1 − xi , si,c = Ui+1 − Ui−1 xi+1 − xi−1

slide-19
SLIDE 19
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

  • Solution with discontinuity

1 1/2 i−1 i i+1

slide-20
SLIDE 20
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

  • Central-difference: Non-monotone reconstruction

1 1/2 i−1 i i+1

  • Limited gradients [9, 12]

si = Limiter(si,b, si,f, si,c)

slide-21
SLIDE 21
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

FVM in 2-D

  • Divide computational domain into disjoint polygonal cells, Ω = ∪iCi
  • Integral form for cell Ci

∂ ∂t

  • Ci

Udxdy +

  • ∂Ci

(fnx + gny)dS = 0

  • Cell average value

Ui(t) = 1 |Ci|

  • Ci

U(x, y, t)dxdy, |Ci| = area of Ci

  • Cell connectivity: N(i) = {j : Cj and Ci share a common face}

Ci Ci

slide-22
SLIDE 22
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

  • ∂Ci

(fnx + gny)dS =

  • j∈N(i)
  • Ci∩Cj

(fnx + gny)dS

  • Approximate flux integral by quadrature

C n C

i j ij

  • Ci∩Cj

(fnx + gny)dS ≈ Fij∆Sij

  • Semi-discrete update equation

|Ci|dUi dt = −

  • j∈N(i)

Fij∆Sij

slide-23
SLIDE 23
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

  • Numerical flux function

Fij = F(Ui, Uj, ˆ nij)

  • Properties of flux function
  • 1. Consistency

F(U, U, ˆ n) = f(U)nx + g(U)ny

  • 2. Conservation

F(V, U, −ˆ n) = −F(U, V, ˆ n)

  • 3. Continuity

F(UL, UR, ˆ n) − F(U, U, ˆ n) ≤ C max (UL − U, UR − U)

  • Flux functions [10, 13, 20, 22]

– FVS: Steger-Warming, Van Leer, KFVS, AUSM – FDS: Godunov, Roe, Engquist-Osher

  • Integrate in time using a Runge-Kutta scheme [5, 12]
slide-24
SLIDE 24
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

Grids and Finite Volumes

  • Elements in 2-D
  • Elements in 3-D
slide-25
SLIDE 25
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

  • Boundary layers - prism and hexahedra
  • Cell-centered and vertex-centered scheme [5, 18, 21]
  • Median (dual) cell

– join centroid to mid-point of sides – well-defined for any triangulation

Centroid Mid−point

slide-26
SLIDE 26
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

  • Voronoi cell

– join circum-center to mid-point of sides – smooth area variation – not defined for obtuse triangles

  • Containment circle tessalation
slide-27
SLIDE 27
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

Median and containment-circle tessalation

slide-28
SLIDE 28
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

  • Stretched triangles - median dual and containment-circle
  • Containment-circle finite volume
slide-29
SLIDE 29
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

  • Turbulent flow over RAE2822 airfoil: vertex-centered scheme

Mach = 0.729, α = 2.31 deg, Re = 6.5 million

slide-30
SLIDE 30
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

Higher order scheme in 2-D

  • Bi-linear reconstruction in cell Ci

˜ U(x, y) = Ui + ai(x − xi) + bi(y − yi), (x, y) ∈ Ci

  • ✂✁
✁ ✁ ✁ ✁ ✁ ✄ ✄ ✄ ✄ ✄ ✄✂☎ ☎ ☎ ☎ ☎ ☎

U UL

R

C C

i j

  • Define left/right states

U L = Ui + ai(xij − xi) + bi(yij − yi) U R = Uj + aj(xij − xj) + bj(yij − yj)

  • Flux for higher order scheme

Fij = F(U L, UR, ˆ nij)

slide-31
SLIDE 31
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

  • Gradient estimation using
  • 1. Green-Gauss theorem
  • 2. Least squares fitting
  • Green-Gauss theorem
  • Ci

∇Udxdy =

  • ∂Ci

U ˆ ndS

  • Approximate surface integral by quadrature

∇Ui ≈ 1 |Ci|

  • face
  • face

U ˆ ndS

  • Face value

Uface = 1 2(UL + UR)

  • Non-uniform cells

Uface = αUL + (1 − α)UR, α ∈ (0, 1)

  • Accuracy can degrade for non-uniform grids [4, 6, 8, 14]
slide-32
SLIDE 32
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

  • Least-squares reconstruction [3, 5]

1 2 3 4

Uo + ao(xj − xo) + bo(yj − yo) = Uj, j = 1, 2, 3, 4

  • Over-determined system of equations - solve by least-squares fit

min

  • j

[Uj − Uo − ao(xj − xo) − bo(yj − yo)]2, wrt ao, bo ao =

  • j

αj(Uj − Uo), bo =

  • j

βj(Uj − Uo)

slide-33
SLIDE 33
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

  • Limited reconstruction

– Cell-centered: Min-max [3, 5], Venkatakrishnan [5], ENO-type [1, 14] – Vertex-centered: edge-based limiter [17]

  • Min-max limiter

Umin ≤ Uo + ao(xj − xo) + bo(yj − yo) ≤ Umax, j = 1, 2, 3, 4 (ao, bo) ← − (φao, φbo), φ ∈ [0, 1] – Very dissipative - smeared shocks – Performance degrades on coarse grids – Stalled convergence - limit cycle – Useful for flows with large discontinuities

  • Venkatakrishnan limiter

– Smooth modification of min-max limiter – Better control - depends on cell size – Better convergence properties

slide-34
SLIDE 34
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

  • Vertex-centered cell: Edge-based limiter

L R i i+1 i−1 i+2

U L = Ui + 1 2Limiter

  • (Ui+1 − Ui), |PiPi+1|

|PiPi−1|(Ui − Ui−1)

  • Using vertex-gradients

U L = Ui + 1 2Limiter

  • (Ui+1 − Ui), (

Pi+1 − Pi) · ∇Ui

  • Van-albada limiter

Limiter(a, b) = (a2 + ǫ)b + (b2 + ǫ)a a2 + b2 + 2ǫ , ǫ ≪ 1

slide-35
SLIDE 35
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

Higher order flux quadrature

UL

1

UR

1

UL

2

UR

2

  • ✂✁
✁ ✁ ✁ ✁ ✁ ✄ ✄ ✄ ✄ ✄ ✄✂☎ ☎ ☎ ☎ ☎ ☎

C C

i j

  • Quadratic reconstruction in cell Ci

˜ U(x, y) = ˜ Ui + ai(x − xi) + bi(y − yi) + ci(x − xi)2 + di(x − xi)(y − yi) + ei(y − yi)2

  • 2-point Gauss quadrature for flux

Fij = ω1F(U L

1 , UR 1 , ˆ

nij) + ω2F(U L

2 , UR 2 , ˆ

nij)

slide-36
SLIDE 36
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

Discretization of viscous flux

  • Viscous terms

∇ · µ∇u

  • Finite volume discretization
  • Ci

(∇ · µ∇u)dV =

  • ∂Ci

(µ∇u · ˆ n)dS

  • Simple averaging

∇uij = 1 2(∇ui + ∇uj) – Odd-even decoupling on quadrilateral/hexahedral cells – Large stencil size

  • 1-D case: ut = uxx

un+1

i

= un

i + ∆t

2h(un

i−2 − 2un i + un i+2)

  • Correction for decoupling problem [5]
slide-37
SLIDE 37
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

  • Green-Gauss theorem for auxiliary volume

Face−centered volume i j

  • Least-squares gradients

– Quadratic reconstruction: gradients and hessian [3] – Face-centered least-squares

  • Vertex-centered scheme

– Galerkin approximation on triangles/tetrahedra – Nearest neighbour stencil

slide-38
SLIDE 38
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

Turbulence models

  • Reynolds-average Navier-Stokes equations - need turbulence models
  • Differential equation based models: k − ǫ, k − ω, Spalart-Allmaras
  • Turbulence quantities must remain positive
  • Discretize using first order upwind finite volume method

Example: Spalart-Allmaras model

  • Ci

∇ · (˜ νu)dV ≈

  • j∈N(i)

[(uij · ˆ nij)+˜ νi + (uij · ˆ nij)−˜ νj]∆Sij (·)± = (·) ± |(·)| 2 , uij = 1 2(ui + uj)

  • Coupled or de-coupled approach
  • Stiffness problem - positivity preserving implicit methods
slide-39
SLIDE 39
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

Boundary conditions

  • Cell-centered approach
  • 1. Ghost cell
  • 2. Flux boundary condition

w g Boundary Ghost cell

  • Inviscid flow (slip flow - zero normal velocity)

ρg = ρw, pg = pw, ug = uw, vg = −vw

  • Viscous flow (noslip flow - zero velocity)

ρg = ρw, pg = pw, ug = −uw, vg = −vw

slide-40
SLIDE 40
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

  • Boundary flux depends on pressure only

F(Uw, Ug, ˆ n) = function of p only

  • Flux boundary condition

( F · ˆ n)wall = p[0, nx, ny, 0]⊤

  • 1. Extrapolate pressure from interior cells
  • 2. Solve normal momentum equation [2]
  • Vertex-centered approach - flux boundary condition
  • Boundary cell in vertex-centered scheme
slide-41
SLIDE 41
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

Accuracy and Stability

  • FVM with linear reconstruction - second order accurate on uniform and

smooth grids

  • On non-uniform grids =

⇒ formally first order accurate

  • Local truncation error not a good indicator of global error [22]
  • r’th order reconstruction and ng Gaussian points for flux quadrature - accu-

racy is min(r, 2ng) [19]

  • Semi-discrete scheme

dUi dt =

  • j∈N(i)

aij(Uj − Ui), aij ≥ 0

  • Local Extremum Diminishing (LED) property - maxima do not increase and

minima do not decrease (Jameson)

slide-42
SLIDE 42
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

  • If Ui is a local maximum =

⇒ Uj − Ui ≤ 0 dUi dt =

  • j∈N(i)

aij(Uj − Ui) ≤ 0 = ⇒ Ui does not increase

  • Fully discrete scheme

U n+1

i

= (1 − ∆t

  • j

aij)U n

i +

  • j

aijU n

j ,

∆t ≤ 1

  • j aij
  • Convex linear combination

min

j∈N(i) U n j ≤ U n+1 i

≤ max

j∈N(i) U n j

  • Prevents oscillations (Gibbs phenomenon) near discontinuities
  • Stable in maximum norm

min

j

U n

j ≤ U n+1 i

≤ max

j

U n

j

  • Elliptic equations - discrete maximum principle

min

j∈∂Ω Uj ≤ Ui ≤ max j∈∂Ω Uj

slide-43
SLIDE 43
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

Data structures and Programming

  • Data structure for FVM

– Coordinates of vertices – Indices of vertices forming each cell

  • Cell-based updating
  • for cell = 1 to Ncell

FluxDiv = 0 for face = 1 to Nface(cell) cellNeighbour = CellNeighbour(cell, face) flux = NumFlux(cell, cellNeighbour) FluxDiv += flux end Unew(cell) = Uold(cell) - dt*FluxDiv end

slide-44
SLIDE 44
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

  • Face-based updating
  • FluxDiv(:) = 0

for face = 1 to Nface LeftCell = FaceCell(face,1) RightCell = FaceCell(face,2) flux = NumFlux(LeftCell, RightCell) FluxDiv(LeftCell) += flux FluxDiv(RightCell) -= flux end Unew(:) = Uold(:) - dt*FluxDiv(:)

  • Flux computations reduced by half - speed-up of two
  • Other geometric quantities - cell centroids, face areas, face normals, face

centroids

slide-45
SLIDE 45
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

References [1] Abgrall R., “On essentially non-oscillatory schemes on unstructured meshes: analysis and implementation”, J. Comp. Phys., Vol. 114, pp. 45-58, 1994. [2] Balakrishnan N. and Fernandez, G., “Wall Boundary Conditions for Inviscid Compressible Flows on Unstructured Meshes”, Int. Jl. for Num. Methods in Fluids, 28:1481-1501, 1998. [3] Barth T. J., “Aspects of unstructured grids and solvers for the Euler and NS equations”, Von Karman Institute Lecture Series, AGARD Publ. R-787, 1992. [4] Barth T. J., “Recent developments in high order k-exact reconstruction on unstructured meshes”, AIAA Paper 93-0668, 1993. [5] Blazek J., Computational Fluid Dynamics: Principles and Applications, El- sevier, 2004.

slide-46
SLIDE 46
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

[6] Delanaye M., Geuzaine Ph. and Essers J. A., “Development and application

  • f quadratic reconstruction schemes for compressible flows on unstructured

adaptive grids”, AIAA-97-2120, 1997. [7] Feistauer M., Felcman J. and Straskraba I., Mathematical and Computa- tional Methods for Compressible Flow, Clarendon Press, Oxford, 2003. [8] Frink N. T., “Upwind scheme for solving the Euler equations on unstructured tetrahedral meshes”, AIAA J. 30(1), 70, 1992. [9] Godlewski E. and Raviart P.-A., Hyperbolic Systems of Conservation Laws, Paris, Ellipses, 1991. [10] Godlewski E. and Raviart P.-A., Numerical Approximation of Hyperbolic Systems of Conservation Laws, Springer, 1996. [11] Carl Ollivier-Gooch and Michael Van Altena, “A high-order-accurate unstruc- tured mesh finite-volume scheme for the advection-diffusion equation”, JCP, 181, 729-752, 2002. [12] Hirsch Ch., Numerical Computation of Internal and External Flows, Vol. 1, Wiley, 1988.

slide-47
SLIDE 47
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

[13] Hirsch Ch., Numerical Computation of Internal and External Flows, Vol. 2, Wiley, 1989. [14] Jawahar and Kamath H., “A High-Resolution Procedure for Euler and Navier- Stokes Computations on Unstructured Grids“, Journal of Computational Physics, Vol. 164, No. 1, pp. 165-203, 2000 [15] Kallinderis Y. and Ahn H. T., “Incompressible Navier-Stokes method with general hybrid meshes”, J. Comp. Phy., Vol. 210, pp. 75-108, 2005. [16] LeVeque R. J., Finite Volume Methods for Hyperbolic Equations, Cambridge University Press, 2002. [17] Lohner R., Applied CFD Techniques: An Introduction based on FEM, Wiley. [18] Mavriplis D. J., “Unstructured grid techniques”, Ann. Rev. Fluid Mech., 29:473-514, 1997. [19] Sonar Th., “Finite volume approximations on unstructured grids”, VKI Lec- ture Notes.

slide-48
SLIDE 48
  • Praveen. C, CTFD Division, NAL, Bangalore

First Prev Next Last Go Back Full Screen Close Quit

[20] Toro E., Riemann Solvers and Numerical Methods for Fluid Dynamics, Springer. [21] Venkatakrishnan V, “Perspective on unstructured grid flow solvers”, AIAA Journal, vol. 34, no. 3, 1996. [22] Wesseling P., Principles of Computational Fluid Dynamics, Springer, 2001.

Thank You

These slides can be downloaded from http://pc.freeshell.org/pub/annamalai.pdf