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.
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|.
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).
A numerical scheme is said to be monotonicity preserving if the following properties are maintained:
un
un+1
proved the following properties for a numerical scheme,
In Computational Fluid Dynamics, TVD scheme is employed to capture sharper shock predictions without any misleading oscillations when variation of field variable “
\phi
\Deltax
Consider the steady state one-dimensional convection diffusion equation,
\nabla ⋅ (\rhou\phi)=\nabla ⋅ (\Gamma\nabla\phi)+S\phi
where
\rho
u
\phi
\Gamma
S\phi
\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
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 |
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: 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 getThe equation further reduces toThe equation above can be written aswhere
P
Total variation diminishing scheme[1] [2] makes an assumption for the values of
\phir
\phil
\phir ⋅ P=
1 | |
2 |
+\phi | |
(P+|P|)[f | |
R+(1-f |
+)\phi | ||||
|
-\phi | |
(P-|P|)[f | |
P+(1-f |
-)\phi | |
RR |
]
\phil ⋅ P=
1 | |
2 |
+\phi | |
(P+|P|)[f | |
P+(1-f |
+)\phi | ||
]+ | ||
LL |
1 | |
2 |
-\phi | |
(P-|P|)[f | |
L+(1-f |
-)\phi | |
R] |
Where
P
f
where
U
UU
U
D
Note that
f+
f-
\begin{align} &
+isafunctionof\left(\dfrac{\phi | |
f | |
P-\phi |
L}{\phiR-\phiL}\right),\\[10pt] &
-isafunctionof\left(\dfrac{\phi | |
f | |
R-\phi |
RR
If the flow is in positive direction then, Péclet number
P
(P-|P|)=0
f-
\phir
\phil
P
(P+|P|)=0
f+
\phir
\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.
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.