Challenge

Week 9 - FVM Literature Review

Objectives:-

To describe the need for interpolation schemes and flux limiters in Finite Volume Method (FVM).

Basics:-

In computational fluid dynamics there are 3 numerical method based solvers to solve the governing navier strokes equations these are:

  1. Finite Difference Method.
  2. Finite Element Method.
  3. Finite Volume Method.

Finite Difference Method:

The grid in linear and aligned so that all grids points lies in a straight line. Main thing is that the properties are considered to concentrated at a single point.

Finite Element Method:

The properties are valid over an elemental area. The properties assumed to be concentrated at area centre.

Finite Volume Method:

The method is applied over a volume such that the governing equation is valid over the entire volume, also the properties are assumed to be concentrated at the geometric centre of the volume concerned.

Disadvanatages of Finite Difference Method:

  1. We cannot use FDM directly to a body whose grid points are not aligned properly along the x, y directions. These may occure due to complex folds, cuts in the structure.
  2. As it is not aligned we cannot calculate the properties at the next adjacent point exactly, but we can some correction factor and approximate it, this method is called as 'Variable TransFormation Method' which basically seeks to create grid using different variable space which look very similar to cartesian grid.
  3. Variable transformation method gives an approx solution of property but it is time consuming and complex.
  4. For complex profiles, this method is less prefered.
  5. That is why Finite Volume Method is used.

Finite Volume Method:

The Finite Volume Method(FVM) is a method for representing and evaluating partial differential equations in the form of algebric equations. In the finite volume method, volume integrals in a partial differential equation that contain a divergence term are converted to surface integrals, using the divergence theorem. These terms are then evaluated as fluxes at the surfaces of each finite volume. Bacause the flux entering a given volume is identical to that leaving the adjacent volume, these methods are conservative. Another advantages of the finite volume method is that it is easily formulated to allow for unstructured meshes. The method is used in many computational fluid dynamics packages. 'Finite Volume' refers to the small volume surrounding each node points on a mesh.

In FVM instead of writing the equation in a single point, equations are written in an entire volume. It means for a considered volume no assumptions are made over the shape of the volume. Inside the particular volume the flow is conserved, flow quantities are conserved, energy is conserved, mass is conserved, momentum is conserved and so on. This is called as 'Finite Volume Representation' which begins with 'Integral form of governing equation'.

Steps:-

  1. once we have this integral form of equation.
  2. Apply Gauss divergence theorem
  3. We get descretized form which can be solved using computer ("Flux Terms").

consider a steady state heat conduction equation with heat generation:

∂/∂x(α.∂T/∂x)+S=0

S is source term

α

is thermal diffusivity term

∂T/∂x

is temperature gradient along the x direction.

Governing equation - ∂/∂x(α.(∂T/∂x))+S=0

is valid at every point in domain, which means it is also valid in entire control volume.

If small control volume (dv) is considered and it is multiplied with the governing equation and integrated it for entire volume then that should be also equal to zero i.e the 'integral form of governing equation'.

Taking the conservation equation validated at single point and if it is validated at single point then it is validated at entire volume and in this entire volume properties are conserved.

Multiplying the equation by 'dv' and integrating it -

∫(∂/∂x(α.(∂T/∂x))+S)dv=0

∫(∂/∂x(α.(∂T/∂x))dv+∫Sdv=0

∵dv=A.dx

∫∂/∂x(α.(∂T/∂x))A.dx+∫Sdv=0

[αA(∂T/∂x)]ew+Sdv=0

S

is average value of source term (S) which when multiplied by dv is going to be equal to ∫Sdv

.

αeA∂T/∂xe−αwA∂T∂/xw+Sdv=0

If we assume α

as a constant and not a function of temperature,

αA[Te−TpΔx]−αA[Tp−TwΔx]+Sdv=0

The source term which is to be added in a cell, if it is a function of temperature we have to linearize it. If α

is a function of temperature we have to linearize this also.

αA[Te−TpΔx]−αA[Tp−TwΔx]+Sdv=0

[Heatflux]out−[Heatflux]in+Sourceterm=0

The amount of heat that is removed from a particular box is conserved.

Different schemes used to solve the equation:

1. Gradient scheme

2. Interpolation scheme

1. Gradient Scheme

From the above figure when we calculate temperature gradient in the east face, we basically use temperature from neighbouring point trying to evaluate or numerically represent gradient of temperature is called as Gradient scheme.

2. Interpolation scheme

In the finite volume formulation, evaluation of surface and volume integrals sometimes requires the values of unknown variables at locations other than the computational nodes of the control volume. These values are obtained by employing certain interpolation schemes.

As an example let us consider the simple case of steady one-dimensional convection and diffusion.

d/dx(ρuϕ)=d/dx(Γdϕ/dx)

where ϕ

is our solution variable (a scalar), ρ is the density, u is the velocity and Γ

is the diffusion coefficient.

The above figure shows the three neighbouring control volumes, which we are going to use for deriving the discretization equation.

Integration of the governing differential equation over the control volume around grid point P yields:

(ρuϕ)e−(ρuϕ)w=(Γdϕ/dx)e−(Γdϕ/dx)w

Evaluation of left hand side of the above equation requires the values of ϕ

over faces eandw

. These values are estimated by employing certain interpolation schemes.

Some interpolation schemes used in CFD are as follows:

1. Upwind interpolation scheme

2. Linear interpolation scheme

3. Quadratic Upwind Interpolation for Convective Kinematics (QUICK) scheme

4. Hybrid Scheme

5. Total Variation Diminishing (TVD) scheme

Explaining the Upwind interpolation scheme for an example

The Upwind interpolation scheme takes into account the direction of fluid flow and based on it, the value of solution variable at the face is approximated by its value at the upstream computational node. For instance, if the fluid is moving from west to east (refer figure), then:

ϕe≈ϕP

And if the fluid is moving from east to west (refer figure), then:

ϕe≈ϕE

In addition to these Gradient scheme and Interpolation schemes there are Flux Limiters.

Flux Limiters

While calulating the variable gradients they tend to toggle and are not bounded to a particular value and keeps jumping , this occurs due to discontinuity due to schock occuring , having a flux limiter will help to bound the gradient value there by giving a stable solution.

Numerical approximation using higher order spatial discretization schemes results in better accuracy but exhibits spurious oscillations near discontinuities such as shocks. On the other hand, lower order spatial discretization schemes remain stable near discontinuities but dampen out the distributions because of their dissipative nature. Hence in order to capture discontinuities, high resolution schemes are desired - which are highly accurate and stable throughout the domain.

Flux limiters operate functionally as a switch and tune the numerical fluxes obtained from lower order scheme and higher order scheme such that near the discontinuity lower order (stable) scheme is employed and away from it higher order (accurate) scheme is employed.

Suppose represents flux at face e calculated using high resolution scheme, Le

represents flux at e calculated using lower order scheme and He represents flux at e calculated using higher order scheme. Then ψ(r)

represents the flux limiter function such that:

Fe=Le+ψ(r)(He−Le)

Flux limiter function depends upon the smoothness parameter r which is defined as:

rP=ϕP−ϕWϕE−ϕP

The flux limiter function is constrained to be greater than or equal to zero. It assumes a value of 0 near discontinuities and a value of 1 away from them. Hence it switches between higher order scheme and lower order scheme for numerical representation of flux, thereby keeping the scheme stable and accurate throughout.

Note that flux limiters are also referred to as slope limiters because they both have the same mathematical form, and both have the effect of limiting the solution gradient near shocks or discontinuities. In general, the term flux limiter is used when the limiter acts on system fluxes and slope limiter is used when the limiter acts on system states (like pressure, velocity etc.).

consider 1D- semi-discrete scheme

duidt+1Δxi[F(ui+12)−F(ui−12)]=0

F(ui+12)&F(ui−12)

these are edge fluxes for the ith cell

F(ui+12)=flowi+12−ϕ(ri)(flowi+12−fhighi+12)

F(ui−12)=flowi−12−ϕ(ri)(flowi−12−fhighi−12)

fhigh

- low precision , high resolution flux

flow

- high precidion , low resolution flux

ϕ(r)

- flux limiter function

ri=ui−ui−1ui+1−ui

'r' reperesents the ratio of successive gradients on the solution mesh.

ϕ(r)≥0

this is the limiter function case

if limiter function = 0 , then there will be a low resolution and sharp gradient.

if limiter function > 0 , then there will be a high resolution and +ve gradient.

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.