FDM vs FEM vs FVM: The Essential Differences Between Three Discretization Techniques
A comparison of the mathematical origins, pros and cons, and best application areas for the Finite Difference Method (FDM), Finite Element Method (FEM), and Finite Volume Method (FVM).
One PDE, Three Paths#
To solve partial differential equations (PDEs) on a computer, continuous space must be discretized. Even for the same equation, the resulting numerical technique becomes completely different depending on the philosophy used for discretization.
Let's use a simple 1D advection-diffusion equation as an example:
We will examine how FDM, FEM, and FVM each approach this single equation.
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.
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.
Conclusion: Which One Should You Choose?#
There is no "magic" technique. The nature of the problem dictates the choice:
- Structural analysis, heat transfer, electromagnetics: FEM
- Compressible flow, shocks, multiphase flow: FVM
- DNS, high-precision structured grid calculations: FDM
- Simultaneous high-order accuracy + conservation: DG (FEM + FVM hybrid)
The key is to understand the mathematical starting points and limitations of each technique. This allows you to choose the right tool for the problem and interpret the results correctly.
Switch between FDM/FEM/FVM in the dropdown to see how each places its degrees of freedom on the same grid.
같은 격자 위에 세 방법이 어떤 자유도(노드/셀/요소)를 가지는지 비교 — 보존성과 정확도 차이의 출발점.
Share if you found it helpful.