ArticleslgStudy

mathematics

Total variation diminishing

Total variation diminishing is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Total variation diminishing rather than just read about it. In short: 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.

Total variation diminishing — main illustration
Total variation diminishing — illustration

Key takeaways

  • Total variation diminishing belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Total variation diminishing to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Total variation diminishing from memory before moving on to harder problems.

Reference excerpt

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,

∂u∂t+a∂u∂x=0, the total variation (TV) is given by

TV(u(⋅,t))=∫|∂u∂x|dx, and the total variation for the discrete case is,

TV(un)=TV(u(⋅,tn))=∑j|uj+1n−ujn|. where ujn=u(xj,tn). A numerical method is said to be total variation diminishing (TVD) if,

TV(un+1)≤TV(un).

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

If un is monotonically increasing (or decreasing) in space, then so is un+1. Harten 1983 proved the following properties for a numerical scheme,

A monotone scheme is TVD, and A TVD scheme is monotonicity preserving.

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 “ϕ” is discontinuous. To capture the variation fine grids (Δx 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,

∇⋅(ρ𝐮ϕ)=∇⋅(Γ∇ϕ)+Sϕ, where ρ is the density, 𝐮 is the velocity vector, ϕ is the property being transported, Γ is the coefficient of diffusion and Sϕ is the source term responsible for generation of the property ϕ. Making the flux balance of this property about a control volume we get,

∫A𝐧⋅(ρ𝐮ϕ)dA=∫A𝐧⋅(Γ∇ϕ)dA+∫CVSϕdV Here 𝐧 is the normal to the surface of control volume. Ignoring the source term, the equation further reduces to:

(ρ𝐮ϕA)r−(ρ𝐮ϕA)l=(ΓA∂ϕ∂x)r−(ΓA∂ϕ∂x)l

Assuming

∂ϕ∂x=δϕδx and Ar=Al, The equation reduces to

(ρ𝐮ϕ)r−(ρ𝐮ϕ)l=(Γδxδϕ)r−(Γδxδϕ)l. Say,

Fr=(ρ𝐮)r;Fl=(ρ𝐮)l; Dl=(Γδx)l;Dr=(Γδx)r; From the figure:

δϕr=ϕR−ϕP;δxr=xPR; δϕl=ϕP−ϕL;δxl=xLP; The equation becomes:Frϕr−Flϕl=Dr(ϕR−ϕP)−Dl(ϕP−ϕL); The continuity equation also has to be satisfied in one of its equivalent forms for this problem:

(ρ𝐮)r−(ρ𝐮)l=0 ⟺ Fr−Fl=0 ⟺ Fr=Fl=F. Assuming diffusivity is a homogeneous property and equal grid spacing we can say

Γl=Γr;δxLP=δxPR=δx, we getDl=Dr=D.The equation further reduces to(ϕr−ϕl)⋅F=D⋅(ϕR−2ϕP+ϕL).The equation above can be written as(ϕr−ϕl)⋅P=(ϕR−2ϕP+ϕL)where P is the Péclet number

P=FD=ρ𝐮δxΓ.

TVD scheme Total variation diminishing scheme makes an assumption for the values of ϕr and ϕl to be substituted in the discretized equation as follows:

ϕr⋅P=12(P+|P|)[fr+ϕR+(1−fr+)ϕL]+12(P−|P|)[fr−ϕP+(1−fr−)ϕRR] ϕl⋅P=12(P+|P|)[fl+ϕP+(1−fl+)ϕLL]+12(P−|P|)[fl−ϕL+(1−fl−)ϕR] Where P is the Péclet number and f is the weighing function to be determined from,

f=f(ϕU−ϕUUϕD−ϕUU) 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,

fr+ is a function of (ϕP−ϕLϕR−ϕL),fr− is a function of (ϕR−ϕRRϕP−ϕRR),fl+ is a function of (ϕL−ϕLLϕP−ϕLL), andfl− is a function of (ϕP−ϕRϕL−ϕR). 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 ϕr and ϕl. 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 ϕr and ϕr. 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 Flux limiters Godunov's theorem High-resolution scheme MUSCL scheme Sergei K. Godunov Total variation Advection scheme

References

Further reading Hirsch, C. (1990), Numerical Computation of Internal and External Flows, Vol 2, Wiley. Laney, C. B. (1998), Computational Gas Dynamics, Cambridge University Press. Toro, E. F. (1999), Riemann Solvers and Numerical Methods for Fluid Dynamics, Springer-Verlag. Tannehill, J. C., Anderson, D. A., and Pletcher, R. H. (1997), Computational Fluid Mechanics and Heat Transfer, 2nd Ed., Taylor & Francis. Wesseling, P. (2001), Principles of Computational Fluid Dynamics, Springer-Verlag. Anil W. Date Introduction to Computational Fluid Dynamics, Cambridge University Press.

Worked examples

Example 1 — a first encounter with Total variation diminishing

Start with the simplest possible case. Write down what Total variation diminishing claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Total variation diminishing before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Total variation diminishing ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Total variation diminishing

In research
Total variation diminishing appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Total variation diminishing in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Total variation diminishing is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computational fluid dynamics, Numerical differential equations, so understanding it makes those chapters shorter.
In everyday life
Look for Total variation diminishing outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Total variation diminishing” →

How to study Total variation diminishing in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Total variation diminishing means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Total variation diminishing out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Total variation diminishing in simple terms?

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.

Why does Total variation diminishing matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Total variation diminishing?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Total variation diminishing.

Tags

  • Computational fluid dynamics
  • Numerical differential equations

Keep exploring