Total variation diminishing explained

In numerical methods, total variation diminishing (TVD) is a property of certain discretization schemes used to solve hyperbolic partial differential equations. The most notable application of this method is in computational fluid dynamics. The concept of TVD was introduced by Ami Harten.

Model equation

In systems described by partial differential equations, such as the following hyperbolic advection equation,

\partialu
\partialt

+a

\partialu
\partialx

=0,

the total variation (TV) is given by

TV(u(,t))=\int\left|

\partialu
\partialx

\right|dx,

and the total variation for the discrete case is,

TV(un)=TV(u(,tn))=\sumj\left|

n
u
j+1

-

n
u
j

\right|.

where
n=u(x
u
j

,tn)

.

A numerical method is said to be total variation diminishing (TVD) if,

TV\left(un+1\right)\leqTV\left(un\right).

Characteristics

A numerical scheme is said to be monotonicity preserving if the following properties are maintained:

un

is monotonically increasing (or decreasing) in space, then so is

un+1

.

proved the following properties for a numerical scheme,

Application in CFD

In Computational Fluid Dynamics, TVD scheme is employed to capture sharper shock predictions without any misleading oscillations when variation of field variable “

\phi

” is discontinuous.To capture the variation fine grids (

\Deltax

very small) are needed and the computation becomes heavy and therefore uneconomic. The use of coarse grids with central difference scheme, upwind scheme, hybrid difference scheme, and power law scheme gives false shock predictions. TVD scheme enables sharper shock predictions on coarse grids saving computation time and as the scheme preserves monotonicity there are no spurious oscillations in the solution.

Discretisation

Consider the steady state one-dimensional convection diffusion equation,

\nabla(\rhou\phi)=\nabla(\Gamma\nabla\phi)+S\phi

,

where

\rho

is the density,

u

is the velocity vector,

\phi

is the property being transported,

\Gamma

is the coefficient of diffusion and

S\phi

is the source term responsible for generation of the property

\phi

.

Making the flux balance of this property about a control volume we get,

\intAn(\rhou\phi)dA=\intAn(\Gamma\nabla\phi)dA+\intCVS\phidV

Here

n

is the normal to the surface of control volume.

Ignoring the source term, the equation further reduces to:

(\rhou\phiA)r-(\rhou\phiA)l=\left(\GammaA

\partial\phi
\partialx

\right)r-\left(\GammaA

\partial\phi
\partialx

\right)l

Assuming

\partial\phi
\partialx

=

\delta\phi
\deltax
and

Ar=Al,

The equation reduces to

(\rhou\phi)r-(\rhou\phi)l=\left(

\Gamma
\deltax

\delta\phi\right)r-\left(

\Gamma
\deltax

\delta\phi\right)l.

Say,

Fr=(\rhou)r;    Fl=(\rhou)l;

Dl=\left(

\Gamma
\deltax

\right)l;    Dr=\left(

\Gamma
\deltax

\right)r;

From the figure:

\delta\phir=\phiR-\phiP;    \deltaxr=xPR;

\delta\phil=\phiP-\phiL;    \deltaxl=xLP;

The equation becomes:F_r \phi_r - F_l \phi_l = D_r (\phi _R -\phi _P)-D_l(\phi _P - \phi _L); The continuity equation also has to be satisfied in one of its equivalent forms for this problem:

(\rhou)r-(\rhou)l=0  \Longleftrightarrow   Fr-Fl=0  \Longleftrightarrow Fr=Fl=F.

Assuming diffusivity is a homogeneous property and equal grid spacing we can say

\Gammal=\Gammar;    \deltaxLP=\deltaxPR=\deltax,

we get D_l=D_r=D.The equation further reduces to(\phi_r-\phi_l)\cdot F=D\cdot(\phi_R-2\phi_P+\phi_L).The equation above can be written as(\phi_r-\phi_l)\cdot P=(\phi_R-2\phi_P+\phi_L) where

P

is the Péclet number

P=\frac=\frac.

TVD scheme

Total variation diminishing scheme[1] [2] makes an assumption for the values of

\phir

and

\phil

to be substituted in the discretized equation as follows:

\phirP=

1
2
+\phi
(P+|P|)[f
R+(1-f
+)\phi
L]+1
2
-\phi
(P-|P|)[f
P+(1-f
-)\phi
RR

]

\philP=

1
2
+\phi
(P+|P|)[f
P+(1-f
+)\phi
]+
LL
1
2
-\phi
(P-|P|)[f
L+(1-f
-)\phi
R]

Where

P

is the Péclet number and

f

is the weighing function to be determined from,

f=f\left(\frac\right)

where

U

refers to upstream,

UU

refers to upstream of

U

and

D

refers to downstream.

Note that

f+

is the weighing function when the flow is in positive direction (i.e., from left to right) and

f-

is the weighing function when the flow is in the negative direction from right to left. So,

\begin{align} &

+isafunctionof\left(\dfrac{\phi
f
P-\phi

L}{\phiR-\phiL}\right),\\[10pt] &

-isafunctionof\left(\dfrac{\phi
f
R-\phi

RR

}\right), \\[10pt]& f_l^+\text\left(\dfrac\right),\text \\[10pt]& f_l^-\text\left(\dfrac\right).\end

If the flow is in positive direction then, Péclet number

P

is positive and the term

(P-|P|)=0

, so the function

f-

won't play any role in the assumption of

\phir

and

\phil

. Likewise when the flow is in negative direction,

P

is negative and the term

(P+|P|)=0

, so the function

f+

won't play any role in the assumption of

\phir

and

\phir

.

It therefore takes into account the values of property depending on the direction of flow and using the weighted functions tries to achieve monotonicity in the solution thereby producing results with no spurious shocks.

Limitations

Monotone schemes are attractive for solving engineering and scientific problems because they do not produce non-physical solutions. Godunov's theorem proves that linear schemes which preserve monotonicity are, at most, only first order accurate. Higher order linear schemes, although more accurate for smooth solutions, are not TVD and tend to introduce spurious oscillations (wiggles) where discontinuities or shocks arise. To overcome these drawbacks, various high-resolution, non-linear techniques have been developed, often using flux/slope limiters.

See also

Further reading

Notes and References

  1. Book: Versteeg, H.K.. An introduction to computational fluid dynamics : the finite volume method. 2007. Prentice Hall. Harlow. 9780131274983. 2nd . Malalasekera, W. .
  2. Book: Blazek, Jiri. Computational fluid dynamics : Principles and Applications. 2001. Elsevier. London. 9780080430096. 1st.