Translated from the author's Korean original. Read the original (한국어)
FDM vs FEM vs FVM: The Essential Differences Between Three Discretization Techniques
What you discretize — the derivative, the function space, or the face flux — decides whether conservation comes free.
One PDE, Three Paths#
Put a PDE on a computer and the first cut is where the unknown sits. Same equation. Point value, basis coefficient, or cell average — three different methods.
One 1D advection-diffusion equation is enough to see the split.
The dropdown switches FDM, FEM, and FVM, and the degrees of freedom move among nodes, basis coefficients, and cell centers.
같은 격자 위에 세 방법이 어떤 자유도(노드/셀/요소)를 가지는지 비교 — 보존성과 정확도 차이의 출발점.
FDM lines the points up, while FVM parks one value in the middle of each cell. FEM keeps the coefficient on the node and lets the basis run across the element.
1. Finite Difference Method (FDM)#
Core Idea#
Approximate derivatives directly as differences.
This is the most intuitive approach. It approximates derivatives by performing a Taylor expansion of the function values at grid points (nodes).
Mathematical Origin: Taylor Expansion#
Taylor expansion at point :
From this, difference approximations are derived:
Forward Difference:
Central Difference:
Second Derivative:
Application to Advection-Diffusion#
Using central differences:
This results in a system of coupled ODEs for the unknowns at the grid points.
Pros and Cons#
Pros:
- Simple concept and easy implementation
- Highly efficient on structured grids
- Easy to achieve high-order accuracy (compact schemes, spectral-like schemes)
- Clean matrix structure on orthogonal grids (band matrix)
Cons:
- Difficult to apply to unstructured grids - this is a critical limitation
- Grid generation for complex geometries is challenging
- Does not automatically satisfy conservation laws
Typical Application Areas#
- DNS/LES (Turbulence simulations based on orthogonal grids)
- Weather/Ocean models (Structured grids)
- Seismic wave propagation simulation
- High-precision calculations based on compact schemes
2. Finite Element Method (FEM)#
Core Idea#
Approximate the solution as a linear combination of basis functions and minimize the weighted residual.
FEM does not solve the differential equation directly. Instead, it transforms it into an integral form called the weak formulation.
Mathematical Origin: Weak Form#
Multiply the original PDE (strong form) by a test function and integrate:
Applying integration by parts to the diffusion term:
This is the weak form. Note the key changes:
- The original second derivative was required, but after integration by parts, only the first derivative is needed.
- Requirements for solution continuity are relaxed ().
- Boundary conditions are naturally included (Neumann BC = right-hand side).
Galerkin Approximation#
Express the solution as a linear combination of basis functions :
In the Galerkin method, test functions and basis functions are chosen from the same space ():
In matrix form:
- : Mass matrix
- : Stiffness matrix
- : Boundary/source vector
Choice of Basis Functions#
The most common choice is elements based on Lagrange polynomials:
| Element | Order | Number of Nodes (2D Triangle) | Characteristics |
|---|---|---|---|
| P1 (Linear) | 1st | 3 | Most basic, low cost |
| P2 (Quadratic) | 2nd | 6 | Can represent curved shapes |
| P3 (Cubic) | 3rd | 10 | High precision, higher cost |
Pros and Cons#
Pros:
- Natural for unstructured grids - handles complex shapes with triangular/tetrahedral meshes
- Mathematically rigorous error estimation (a priori / a posteriori) is possible
- Pairs well with adaptive mesh refinement
- Flexibility to choose between p-refinement (increasing polynomial degree) and h-refinement (grid refinement)
Cons:
- Does not satisfy conservation laws directly (Standard Galerkin)
- Unstable in advection-dominated problems (oscillation) - requires stabilization like SUPG or GLS
- Requires mass matrix inversion (or mass lumping)
- Higher implementation complexity compared to FDM/FVM
Typical Application Areas#
- Solid mechanics / Structural analysis (FEM's original home)
- Electromagnetic field analysis
- Heat transfer
- Biomechanics
- Geomechanics
3. Finite Volume Method (FVM)#
Core Idea#
Integrate conservation laws over control volumes and balance the fluxes passing through volume boundaries.
FVM reflects physical conservation laws most directly.
Mathematical Origin: Integral Conservation Law#
Write the advection-diffusion equation in integral form:
For a control volume :
Where is the cell-averaged value and is the numerical flux at the cell boundary.
Determining Numerical Fluxes#
The core of FVM is how to calculate cell boundary fluxes:
Advection term - based on Riemann solvers or upwind schemes:
Diffusion term - central difference:
Reconstruction#
Cell averages alone provide only first-order accuracy. For higher-order accuracy, the distribution inside the cell must be reconstructed:
MUSCL (2nd order):
Where is a slope limiter and is the ratio of successive gradients.
WENO (5th order):
Achieves 5th-order accuracy by nonlinearly weighted averaging of three 2nd-order polynomial candidates:
Weights are determined based on smoothness indicators , automatically giving higher weight to smooth stencils near discontinuities.
Face diffusion in the note above is , an orthogonal spacing. That difference is the normal derivative only when the normal lies on the grid line. A skewed face does not get its direction from the neighbor averages alone. The non-orthogonal diffusion correction is what closes the gap. Drop it and a conservative update can still push diffusion off-axis.
The forward difference carried . Central and the second-derivative stencil carried . Forward keeps the Taylor term . Central subtracts and and cancels it. Halve the spacing and the forward error drops by about half. The pieces drop by about a quarter. Cell averages alone, with no reconstruction, stay first order. The extra order is bought on the way up to the face.
The in MUSCL is the factor that lifts a cell average linearly to the face. keeps the whole slope. sends the face value back to , and the flux is first order again. WENO adds only three candidates, . Each is a quadratic. cuts weight where is large. "Fifth order on a smooth interval" is the order of that weighted sum. When falls to 0 the fifth-order formula is still on the page, but that face has dropped to first order. A P1 triangle has 3 nodes, P2 has 6, P3 has 10. Raising the degree from 1 to 3 pushes the unknowns per element from 3 past 10. In the weak form, holds and packs with . Positive leaves the diffusion block nearly symmetric. The advective speed leaves the antisymmetric piece.
Pros and Cons#
Pros:
- Conservation laws are exactly satisfied at the discrete level - a decisive advantage in CFD
- Strong at capturing shock waves and discontinuities
- Applicable to unstructured grids
- Flux-based thinking directly aligns with physical intuition
Cons:
- Achieving high-order accuracy is more difficult than in FEM (reconstruction becomes complex)
- Can be less efficient than FEM for pure diffusion equations
- Implementation of high-order reconstruction on unstructured grids is tricky
Typical Application Areas#
- Across CFD (OpenFOAM, ANSYS Fluent, SU2)
- Compressible/Incompressible flow
- Multiphase flow, combustion, reacting flows
- Parts of dynamical cores in weather/climate models
Key Comparison#
Mathematical Starting Points#
| Technique | Starting Point | Core Tool |
|---|---|---|
| FDM | Strong form PDE | Taylor expansion |
| FEM | Weak form | Basis functions + Weighted residuals |
| FVM | Integral conservation law | Control volumes + Numerical fluxes |
"What" is Discretized?#
This is the most fundamental difference:
- FDM: Discretizes the differential operator ()
- FEM: Discretizes the solution space
- FVM: Discretizes the flux in integral equations
Location of Unknowns#
- FDM: Point values at grid points (nodes)
- FEM: Point values at nodes (coefficients of basis functions)
- FVM: Cell-averaged values
Comprehensive Comparison#
| Item | FDM | FEM | FVM |
|---|---|---|---|
| Implementation Difficulty | Low | High | Medium |
| Unstructured Grids | Difficult | Natural | Possible |
| Conservation | X | X (Standard) | O |
| Complex Geometries | Difficult | Excellent | Possible |
| High-Order Accuracy | Easy | Easy (p-ref) | Possible (WENO) |
| Shock Capturing | Possible | Difficult | Excellent |
| Mathematical Theory | Moderate | Excellent | Moderate |
| Advection-Dominated | Moderate | Needs stabilization | Excellent |
Modern Techniques: Blurring the Boundaries#
Recently, hybrid methods combining the advantages of all three techniques have been actively researched:
Discontinuous Galerkin (DG)#
Combines FEM's basis functions with FVM's flux concept. It approximates the solution with polynomials within each cell (FEM) and calculates fluxes at cell boundaries using Riemann solvers (FVM).
It satisfies conservation + high-order accuracy + unstructured grid capabilities. However, computational costs are high, and limiters are required near shocks.
Spectral Difference / Flux Reconstruction#
Similar to DG but solves in differential form without integration to increase efficiency. It pairs very well with GPU acceleration and is gaining attention for next-generation CFD solvers.
Meshless Methods (SPH, etc.)#
An approach that eliminates the grid entirely, approximating based on particles. Strong for free-surface flows and large deformation problems, but accuracy/consistency issues exist.
If the integral has to survive, drop the pure difference stencil#
A box-domain DNS on an orthogonal mesh can live on the central stencil. Three nodes build the second derivative, and the matrix stays banded. Bend the geometry onto an unstructured mesh and that stencil no longer has a neighbor to name. The weak form then swallows the shape. Standard Galerkin's and still do not promise that face fluxes cancel cell by cell.
When a shock passes and the integral has to come back as the same number, the update is FVM. The face flux is a loss for the left cell and a gain for the right, so interior faces vanish in the global sum. High order and conservation in one scheme means a polynomial inside the cell and a Riemann flux on the face, as in a discontinuous Galerkin discretization. Leave the limiter off and that hybrid still rings in front of a shock.
Related
Share if you found it helpful.