Okay, let's break down the Finite Volume Method (FVM).
In simple terms, the Finite Volume Method (FVM) is a numerical technique used to solve Partial Differential Equations (PDEs), especially those that describe conservation laws (like conservation of mass, momentum, energy, etc.).
It's one of the three main grid-based discretization techniques in computational physics and engineering, alongside the Finite Difference Method (FDM) and the Finite Element Method (FEM).
Here's how it works and its key characteristics:
-
Core Idea: Conservation over Volumes
- Instead of working with derivatives at points (like FDM) or using basis functions over elements (like FEM), FVM works with finite volumes, also called control volumes or cells.
- The computational domain is divided into these discrete, non-overlapping volumes that fill the entire domain.
- The PDE is integrated over each of these finite volumes.
-
Integral Form of the PDE
- The power of FVM comes from using the integral form of the PDE, which naturally represents conservation.
- Consider a simple conservation equation:
∂u/∂t + ∇ ⋅ (flux) = Source
- Integrating this over a finite volume
V:
∫_V (∂u/∂t) dV + ∫_V (∇ ⋅ (flux)) dV = ∫_V (Source) dV
-
Applying the Divergence Theorem
- The crucial step is applying the Divergence Theorem (also known as Green's Theorem) to the flux term:
∫_V (∇ ⋅ (flux)) dV = ∮_S (flux ⋅ n) dS
- This theorem states that the integral of the divergence of a vector field over a volume is equal to the flux of the field across the boundary surface
S of that volume.
- So, the integrated PDE becomes:
∫_V (∂u/∂t) dV + ∮_S (flux ⋅ n) dS = ∫_V (Source) dV
-
Discretization and Approximation
- Values: FVM typically solves for the average value of the variable
u within each control volume, often assumed to be located at the geometric center (centroid) of the cell.
- Time Derivative: The time derivative
∫_V (∂u/∂t) dV is approximated based on the change in the average value within the volume over a time step.
- Source Term: The source term
∫_V (Source) dV is also approximated, often by evaluating the source function at the cell centroid and multiplying by the volume.
- Fluxes: The surface integral
∮_S (flux ⋅ n) dS is the sum of the fluxes across each face of the control volume. This is the most critical part. The flux across a face is approximated using the values from the centroids of the two cells sharing that face. This approximation depends on the specific numerical scheme (e.g., upwinding, central differencing).
-
Forming Algebraic Equations
- For each control volume, the integrated and approximated PDE results in an algebraic equation relating the value in that volume to the values in its neighboring volumes (whose fluxes cross the faces of the current volume).
- This process generates a system of linear (or non-linear) algebraic equations, one for each control volume.
-
Solving the System
- This system of equations is then solved using iterative or direct linear algebra techniques to find the average value of
u in each control volume.
Key Characteristics and Benefits:
- Conservation: This is the main advantage. FVM is inherently conservative. The flux out of one control volume is automatically the flux into the adjacent volume. This means that the physical quantity being solved for (mass, momentum, energy, etc.) is strictly conserved at both the local (cell) and global (domain) levels. This is particularly important in fluid dynamics and other transport phenomena.
- Flexibility with Grids: FVM can handle various types of grids, including structured, unstructured, and mixed grids relatively easily. This makes it well-suited for complex geometries.
- Physical Meaning: The equations solved have a clear physical interpretation based on balances of fluxes over control volumes.
Disadvantages:
- Accuracy: Achieving higher-order accuracy (beyond second order) can be more complex than in FDM or FEM, especially on unstructured grids, as it requires more sophisticated interpolation schemes for fluxes at the faces.
- Point Values: While FVM gives cell-averaged values, obtaining accurate values at specific points within a cell (if needed, e.g., for calculating gradients like shear stress) might require additional post-processing or assumptions.
In Summary:
The Finite Volume Method is a powerful numerical technique for solving PDEs, particularly conservation laws. It discretizes the domain into control volumes, integrates the PDE over each volume, and uses the Divergence Theorem to convert flux terms into surface integrals. This leads to algebraic equations based on the balance of fluxes across cell faces, ensuring inherent conservation of the solved quantity. Its strength lies in handling conservation laws and complex geometries, making it a widely used method in fields like Computational Fluid Dynamics (CFD), heat transfer, and mass transfer.