FVM interpolation schemes and flux limiters calculator: FVM vs FDM, central to QUICK, and TVD
The finite volume method integrates the conservation law over each cell, so the flux that leaves one cell enters the next and the balance closes exactly. Values live at cell centres, so the convective flux needs φ at the faces: that is the interpolation scheme. Second-order schemes wiggle near steep gradients, and a flux limiter blends them with upwind so the total variation never grows (TVD).
The calculator solves Versteeg and Malalasekera's worked examples and reproduces their tables, compares FVM with FDM on the 1D heat conduction example, puts six schemes side by side, and runs eight limiters on a step. It is the "Week 9 - FVM Literature Review" of Skill-Lync's Introduction to CFD using MATLAB and OpenFOAM; Skill-Lync read 418 public reports on it, and only 11 compute anything in their text.
Versteeg & Malalasekera 2nd ed. ch. 4, 5, 7 · LeVeque FVMHP §6.11-6.12 · OpenFOAM fvSchemes · checked against a separate solution (20,219 checks at build) · Updated 23 Nov 2026
L = 2 cm, k = 0.5 W/m·K, q = 1000 kW/m³, faces at 100 °C and 200 °C, unit area. The FVM puts nodes at the 5 cell centres; the FDM puts N + 1 nodes on the cell faces, ends included.
u = 2.5 m/s on 5 cells: F = 2.5, D = 0.5, Pe = 5, so central's aE = D − F/2 = −0.75. Flow from x = 0 to x = L. Boundary treatment as in Versteeg's examples; power law and linear upwind use this page's closure (see below).
q_t + q_x = 0 on 0 ≤ x < 1, periodic, point values at cell centres. One period brings the exact profile back to where it started. Courant number links: Courant number calculator.
The diagnoses are the statements counted in the public reports; the counts and example links are below each answer.
FVM coefficients, TDMA and solution, node by node
| Node | x (m) | aW | aE | Su | SP | aP | TDMA Aj | TDMA C′j | T FVM | T exact | error |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 0.002 | 0 | 125 | 29000 | −250 | 375 | 0.3333 | 77.33 | 150 | 146 | 4 |
| 2 | 0.006 | 125 | 125 | 4000 | 0 | 250 | 0.6 | 65.6 | 218 | 214 | 4 |
| 3 | 0.01 | 125 | 125 | 4000 | 0 | 250 | 0.7143 | 69.71 | 254 | 250 | 4 |
| 4 | 0.014 | 125 | 125 | 4000 | 0 | 250 | 0.7778 | 79.11 | 258 | 254 | 4 |
| 5 | 0.018 | 125 | 0 | 54000 | −250 | 375 | 0 | 230 | 230 | 226 | 4 |
FDM on the same rod
| Vertex | x (m) | T FDM | T exact | error |
|---|---|---|---|---|
| 0 | 0 | 100 | 100 | 0 |
| 1 | 0.004 | 184 | 184 | −2.84×10⁻¹⁴ |
| 2 | 0.008 | 236 | 236 | −5.68×10⁻¹⁴ |
| 3 | 0.012 | 256 | 256 | −5.68×10⁻¹⁴ |
| 4 | 0.016 | 244 | 244 | 0 |
| 5 | 0.02 | 200 | 200 | 0 |
What is the finite volume method?
The FVM divides the domain into control volumes and integrates the governing equation over each one. For 1D steady conduction with a heat source, the divergence theorem turns the volume integral into the heat flow through the two faces:
With a linear profile between nodes, each face flux is kA(TE − TP)/δx, and the balance of every cell becomes one algebraic equation (Versteeg & Malalasekera, eqs. 4.10-4.11):
A fixed temperature at the wall sits half a cell from the first node, so its conductance is 2kA/δx, and it enters as a source pair (eq. 4.65):
For Ex 4.1 (k = 1000 W/m·K, A = 0.01 m², 5 cells of 0.1 m, 100 °C and 500 °C) that gives Versteeg's Table 4.1:
The solution is 140, 220, 300, 380, 460 °C, exactly the book's eq. 4.24 and the exact line T = 800x + 100. The system is tridiagonal, so it is solved by the TDMA (Thomas algorithm, Versteeg §7.2): one sweep forward, one back. The table under the calculator lists Aj and C′j for every node.
What are the differences between FDM and FVM?
FDM writes the differential equation at grid points and replaces each derivative by a Taylor-series difference. FVM writes a flux balance for each cell. On the same N, the FDM here uses N + 1 vertices with the walls as nodes:
- Accuracy is not the difference. On Ex 4.2 (uniform generation, 5 cells) the exact profile is a parabola. The FDM's central second difference is exact for a parabola, so its nodes are exact: 100, 184, 236, 256, 244, 200 °C. The FVM gives 150, 218, 254, 258, 230 °C against an exact 146, 214, 250, 254, 226 °C, 2.74% high at node 1 (the book's Table 4.3 prints 2.73%: it truncates, 2.7397 → 2.73). The error comes from the linear profile assumed over the half cell at each wall.
- Conservation is. Add up the FVM's face fluxes and the interior ones cancel in pairs: 12,500 W/m² leaves at x = 0, 7,500 W/m² at x = L, and together they equal the 20,000 W/m² generated, to round-off (below 10⁻¹⁵ of the heat flow). The FDM's one-sided wall fluxes add up to 16,000 W/m²: 4,000 W/m² is missing, exactly one cell's generation qAh, because the two half cells at the walls belong to no node.
- With a heat-loss term the gap persists. On the fin (Ex 4.3) the FVM is off by up to 6.27% on 5 cells (2.07% on 10) and the FDM's largest nodal error is 1.13 °C against the FVM's 4.30 °C. But the FDM's one-sided flux at the base is 247.2 against the 447.2 its own nodes lose along the fin (kA = 1 units): its energy balance is out by 81%. The FVM's balance closes to round-off (below 10⁻¹⁵ of the heat flow).
- Geometry. FVM needs only face areas and cell volumes, so it works on any polyhedral mesh; classical FDM wants a structured grid or a coordinate transformation. This is why Fluent and OpenFOAM are finite volume codes.
Pick "My own rod" and add a source or a fin term: the FVM balance stays at round-off for any N, the FDM gap does not.
Does it reproduce Versteeg's worked examples?
Yes, to the printed digits, with three explained differences. The copy read is the 2nd edition (Pearson 2007).
- Ex 4.1, 4.2, 4.3: Tables 4.1, 4.2 and 4.4 coefficient for coefficient, and the solutions 140, 220, 300, 380, 460; 150, 218, 254, 258, 230; 64.23, 36.91, 26.50, 22.60, 21.30 °C. The book truncates rather than rounds in several places: 64.2276 is printed 64.22, the analytical 68.5262 as 68.52.
- Table 4.6 (fin, 10 cells): 9 of 10 nodes agree. Node 9 is 21.42 °C here and 21.47 in the book (its difference −0.08 and error −0.37% follow from 21.47); nodes 8 and 10 are 22.06 and 21.13 in both, so 21.47 looks like a slip in the table.
- Ex 5.1 (central): Tables 5.1, 5.3 and 5.5 coefficients; φ = 0.9421, 0.8006, 0.6276, 0.4163, 0.1579 at u = 0.1 m/s (Table 5.2 has the same, truncated) and 1.0356, 0.8694, 1.2573, 0.3521, 2.4644 at u = 2.5 m/s (Table 5.4).
- Ex 5.2 (upwind) and 5.3 (hybrid): Tables 5.6, 5.7, 5.8 and 5.9: φ5 = 0.7143 for both at Pe = 5.
- Ex 5.4 (QUICK): Table 5.10 coefficients to 3 decimals and φ1 to φ4. φ5 is 0.21220 here and 0.2123 in the book; solving the book's printed 3-decimal matrix (eq. 5.60) gives 0.21232, so the book's last digit comes from its rounded coefficients. The CD column of Table 5.11 (0.9696, 0.8786, 0.7421, 0.5374, 0.2303) is 0.96967, 0.87867, 0.74218, 0.53744, 0.23033 truncated, and both error sums (0.0047 and 0.059) agree.
Why are interpolation schemes needed in FVM?
Because the unknowns sit at cell centres and the convective flux needs φ at the faces. For steady 1D convection and diffusion, Versteeg writes the face mass flux and the diffusion conductance as
Linear interpolation (central differencing) is the obvious choice:
aE turns negative when Pe > 2, and a negative neighbour coefficient breaks boundedness: φ next door goes up, φ here goes down. Ex 5.1 at u = 2.5 m/s on 5 cells has Pe = 5 and gives 1.0356, 0.8694, 1.2573, 0.3521, 2.4644, against an exact solution that never leaves [0, 1]:
The wiggles start exactly at Pe = 2. With 10 cells (δx = 0.1) and u = 1.99, 2.0 and 2.01 m/s, central gives a monotone, a monotone and a wiggling solution: the calculator's table colours the negative aE. For Ex 5.1's u = 2.5 m/s central needs N ≥ 13 cells; Versteeg's 20 cells (Pe = 1.25) give a bounded solution. Upwind, hybrid and power law are bounded at any Pe. QUICK's aE = D − 3F/8 goes negative above Pe = 8/3, so it needs N ≥ 10 here.
How do upwind, hybrid, power law and QUICK differ?
Each one is a different face value, and so a different pair of coefficients (Versteeg §5.6-5.9):
The price of boundedness is accuracy. Measured on ρ = 1, Γ = 0.1, u = 1 m/s (ρuL/Γ = 10) from 320 to 640 cells, the maximum error falls at order 0.99 for upwind, 2.00 for central, 2.00 for hybrid, 1.98 for power law, 1.93 for QUICK and 2.00 for linear upwind. Hybrid is first order only while Pe > 2; on these fine grids it is central. QUICK's face value has a third-order truncation error (Versteeg §5.9.2) and converges faster on coarse grids (order 2.68 from 10 to 20 cells), but its boundary closures and the central diffusion bring the solution back to second order. The error chart in the second tab plots all six.
Boundary treatment: central, upwind, hybrid and QUICK follow Versteeg's examples exactly (QUICK with Leonard's mirror node φ0 = 2φA − φP and the boundary conductance D* = Γ/δx). The book has no power-law or linear-upwind example; this page uses Patankar's flux with the half-cell conductance 2D at the walls for power law, and the mirror node with φ known at both wall faces for linear upwind.
What are flux limiters and why do TVD schemes need them?
Every scheme above can be written as upwind plus a correction scaled by a function of the gradient ratio r (Versteeg §5.10.1): ψ = 0 is upwind, 1 central, r linear upwind, (3 + r)/4 QUICK.
Sweby (1984) showed which ψ(r) keep a scheme total variation diminishing, and second order where the solution is smooth:
Central (ψ = 1) leaves the region for r < 0.5, linear upwind for r > 2, QUICK for r < 3/7 and r > 5. A limiter is a ψ(r) that stays inside. The common ones (Versteeg §5.10.4, LeVeque FVMHP §6.11):
- Minmod : the lower edge, most diffusive.
- Superbee : the upper edge, sharpest, squares off smooth peaks.
- Van Leer and MC : in between.
- Van Albada . Versteeg's list prints (r + r²)/(1 + r²) with no clip; taken literally it is −0.2 at r = −0.5, outside the region.
The third tab runs them on linear advection with the flux-limited Lax-Wendroff method (LeVeque §6.11) and computes the total variation after every step:
A top hat on 100 cells at ν = 0.5, one period (200 steps): Lax-Wendroff's TV grows from 2 to 3.690 and the profile overshoots by 0.223. Upwind and all eight limiters never raise the TV in any step (largest rise below 10⁻¹⁴, round-off) and stay inside [0, 1]. The L1 errors: superbee 0.0175, Sweby β = 1.5 0.0250, MC 0.0286, van Leer 0.0339, van Albada 0.0391, minmod 0.0493, upwind 0.1127. On a smooth Gaussian (200 cells, ν = 0.8) the order changes: MC 6.5×10⁻⁴ and van Leer 9.5×10⁻⁴ beat superbee 1.8×10⁻³, which flattens the peak, and Lax-Wendroff 2.3×10⁻³ is fine where nothing is steep. At ν = 1 upwind is the exact shift (L1 error below 10⁻¹³).
What are these schemes called in OpenFOAM and Fluent?
In OpenFOAM's fvSchemes, convection terms take a Gauss scheme with an interpolation: div(phi,U) Gauss linearUpwind grad(U);, Gauss limitedLinear 1;, Gauss upwind;, Gauss linear;. The OpenFOAM user guide calls linear "second order, unbounded", linearUpwind "second order, upwind-biased, unbounded (but much less so than linear)", upwind "first-order bounded", limitedLinear a linear scheme "that limits towards upwind in regions of rapidly changing gradient" (coefficient 1 is the strongest limiting), and vanLeer "another limited scheme, with less strong limiting than limitedLinear". The Ansys Fluent 12.0 theory guide (§18.3.1) offers first-order upwind, second-order upwind, power law and QUICK, plus central differencing, bounded central differencing and third-order MUSCL.
What did 418 student reports write?
Skill-Lync read the text of all 418 public FVM literature reviews on 23 Nov 2026 (103 have no images, so their text is everything; numbers and formulas inside images are not counted). Almost every report names the schemes; very few compute one:
| Scheme named in the text | Reports |
|---|---|
| Upwind | 347 |
| Central differencing (linear interpolation) | 351 |
| Hybrid | 237 |
| QUICK | 224 |
| TVD | 271 |
| MUSCL | 54 |
| Linear / second-order upwind | 37 |
| Power law | 30 |
| What the report does | Reports | Examples |
|---|---|---|
| Mentions flux limiters | 402 | — |
| Names at least one limiter (minmod 25, van Leer 16, superbee 13, Koren 13, Sweby 5, van Albada 4, UMIST 3, MC 2) | 39 | — |
| Names TVD but no limiter | 248 | — |
| Writes a limiter formula (all 4 match Versteeg or LeVeque) | 4 | 1, 2, 3 |
| States the Pe < 2 limit (14 right, 1 inverted) | 15 | 1, 2, 3 |
| Computes anything in the text: MATLAB code (10: Ex 4.2 in 5, Ex 4.1 in 2, Ex 5.1 in 1) or node values (1) | 11 | 1, 2, 3 |
- TVD expanded wrongly. 19 reports write "Total Variation Dimension(s)", "Total Variable Diminishing" or similar (1, 2, 3). It is Total Variation Diminishing.
- "Upwind for Pe > 1". 15 copy the line "used for convection dominated problems (i.e Pe>1)" (1, 2, 3). Upwind is bounded at any Pe; the threshold that matters is central's 2.
- QUICK's order. 89 call QUICK third-order (1, 2, 3), true of the face interpolation, not of the solution's convergence.
- FVM "more accurate than FDM". 4 state it as a rule (1, 2, 3); Ex 4.2 above is a counter-example. 2 list a time-step limit as an FDM trait (1, 2); it belongs to explicit time stepping in either method. 1 says central is unstable for −2 ≤ Pe ≤ 2 (1), the inverse of the truth, and 1 describes FDM as Fused Deposition Modelling (1).
- Copied lists. 24 reports list "CHARM, HCUS, HQUICK, Koren..." with no formula; 14 cite Versteeg and Malalasekera by name, though many paragraphs are his.
Counts as of 23 Nov 2026, n = 418 public reports titled as an FVM literature review (417 with text), classified from each report's own text by Skill-Lync (a starting point, not a grade).
- As printed in Versteeg's list, (r + r²)/(1 + r²) goes negative for −1 < r < 0: ψ(−0.5) = −0.2, ψ(0.5) = 0.6, ψ(1) = 1, ψ(2) = 1.2, ψ(5) = 1.154. A negative ψ is outside Sweby's TVD region (0 ≤ ψ ≤ min(2r, 2)), so it must be set to 0 for r ≤ 0, as every code does. Public reports that print it without the clip: 1 (report 1).
- Inverted: −2 ≤ Pe ≤ 2 is where central differencing is bounded. It can wiggle for |Pe| > 2. Public reports that write the inverted range: 1 (report 1).
- Half right. The QUICK face value has a third-order truncation error on a uniform grid (Versteeg §5.9.2), but the cell-centre solution with central diffusion and these boundary closures converges at second order: the calculator measures about 1.9 to 2 from N = 320 to 640. Public reports that call QUICK third-order: 89 (report 1, report 2, report 3).
- Not as a rule. On Versteeg's Ex 4.2 (uniform heat generation, 5 cells) the vertex FDM is exact at its nodes (error below 10⁻¹⁰ °C), while the FVM's half-cell boundary flux leaves 4 °C at node 1. FVM's real advantage is conservation, not accuracy. Public reports that state it as a rule: 4 (report 1, report 2, report 3).
What this calculator does not cover
- Non-uniform and 2D or 3D meshes. Everything here is a uniform 1D grid. On stretched or unstructured meshes the face weights and the r of a limiter need the cell geometry (OpenFOAM's limitedLinear uses a gradient-based r).
- Steady TVD and deferred correction. The limiters run on time-dependent advection, where TVD is defined. Versteeg §5.10.5 applies them to the steady problem by deferred correction; that iteration is not implemented.
- Pressure-velocity coupling and turbulence. u is given. SIMPLE, PISO and the momentum equations are the next chapters of the course.
Choosing a divergence scheme in fvSchemes, and knowing why a case wiggles or smears, is the daily work of a CFD engineer. The FVM literature review is part of Skill-Lync's Introduction to CFD using MATLAB and OpenFOAM, where you code these schemes yourself.
Frequently asked questions
What is the finite volume method?
The FVM splits the domain into control volumes, integrates the conservation equation over each one and turns the divergence into fluxes through the faces. A face flux leaves one cell and enters its neighbour with the same expression, so mass, momentum and energy are conserved exactly, whatever the mesh. Fluent and OpenFOAM use it.
What is the difference between FDM and FVM?
FDM replaces derivatives at grid points with Taylor-series differences. FVM balances fluxes over cells. On Versteeg's Ex 4.2, FDM is exact at its nodes but misses 4 kW/m² of the heat generated, while FVM is 2.74% off at node 1 and conserves the heat to round-off.
Why are interpolation schemes needed in FVM?
FVM stores values at cell centres, but the convective flux needs the value at each face. The interpolation scheme supplies it. Central differencing is second order but wiggles when the cell Peclet number passes 2; upwind is always bounded but first order and smears gradients.
Why does central differencing wiggle above a Peclet number of 2?
Its east coefficient is aE = D − F/2, negative once Pe = F/D exceeds 2. A negative neighbour coefficient means raising φ next door lowers φ here, so the solution alternates. In Versteeg's Ex 5.1 at Pe = 5 it reaches 2.4644 where φ must stay between 0 and 1.
What are flux limiters and why are TVD schemes needed?
A flux limiter ψ(r) blends a second-order flux with upwind according to the local gradient ratio r. Inside Sweby's region, 0 ≤ ψ ≤ min(2r, 2), and with a Courant number up to 1, the total variation cannot grow, so no new wiggles appear. On a step, Lax-Wendroff's TV rises from 2 to 3.69; every limiter here keeps it at 2.
Is QUICK third-order or second-order accurate?
Both, in different senses. QUICK's face interpolation has a third-order truncation error on a uniform grid. The cell solution with central diffusion and the boundary closures converges at second order: this calculator measures 1.93 from 320 to 640 cells, nearer 3 on coarse grids.
Related on Skill-Lync
- Courant number calculator: the stable time step of upwind, Lax-Wendroff and others
- 2D heat conduction solver: Jacobi, Gauss-Seidel and SOR on the same conduction equation in 2D
- Finite difference coefficients calculator: Taylor tables and truncation errors for any stencil
- CFD interactive book: convection-diffusion, the Péclet number, hybrid and power-law schemes and QUICK with false diffusion (chapters 13-15)
- Fundamentals of CFD, worked by hand
- Discretization methods in CFD
- CFD courses compared
- Student project: FVM literature review with MATLAB code
- All free engineering tools
Sources
- H. K. Versteeg and W. Malalasekera, An Introduction to Computational Fluid Dynamics: The Finite Volume Method, 2nd ed., Pearson 2007: §4.3 Examples 4.1-4.3 and Tables 4.1-4.6; §5.2-5.10, Examples 5.1-5.4, Tables 5.1-5.11, the Peclet limit (eq. 5.24), the power law (§5.8, after Patankar 1980), QUICK (§5.9, after Leonard 1979), TVD, Sweby's criteria and the limiter list (§5.10); §7.2 the TDMA (read in full for these sections).
- R. J. LeVeque, Finite Volume Methods for Hyperbolic Problems, Cambridge 2002: his course slides for §6.11-6.12 (flux-limiter form, Harten's theorem, TVD if 0 ≤ ϕ(θ) ≤ minmod(2, 2θ), minmod, superbee, MC and van Leer, Fig. 6.6). P. K. Sweby, SIAM J. Numer. Anal. 21(5), 1984, cited through these two.
- OpenFOAM user guide (CFD Direct, v12), fvSchemes: the divSchemes examples and descriptions quoted above. ANSYS FLUENT 12.0 Theory Guide §18.3.1, Spatial Discretization.
- Skill-Lync, 418 public FVM literature review reports, read 23 Nov 2026. scripts/verify/fvm_schemes.py solves every case another way (face-flux assembly and dense Gaussian elimination, closed-form solutions, the advection update in Harten's C form, the book's tables typed separately), 212 cases; the page checks itself against it at build time (20,219 checks).