# Finite Volume Method (FVM)

This section describes the formulation and methodology of finite volume method to solve the governing equations on a computational domain. It also describes the cell centered and face centered approaches used for finite volume formulation.

The finite volume formulation is based on the approximate solution of the integral form of the conservation equations. The problem domain is divided into a set of non overlapping control volumes referred to as finite volumes, where the variable of interest is usually taken at the centroid of the finite volume. The finite volume is also referred to as a cell or element.

The governing equations are integrated over each finite volume and interpolation profiles are assumed in order to describe the variation of the concerned variable of interest between the cell centroids. The resulting discretization equation expresses the conservation principle for the variable inside the finite volume.

The governing differential equations discussed in this manual each have a dependent variable that obeys a generalized conservation principle. If the dependent variable (scalar or vector) is denoted by $\phi$ , the generic differential equation is: (1)
where
• $ϵ$ is the diffusion coefficient.
• The transient term $\frac{\partial \rho \phi }{\partial t}$ accounts for the rate of change of $\phi$ inside the control volume.
• The convection term $\nabla \cdot \left(\rho \stackrel{\to }{u}\phi \right)$ accounts for the transport of $\phi$ due to the velocity field $\stackrel{\to }{u}$ .
• The diffusion term $\nabla \cdot \left(ϵ\nabla \phi \right)$ accounts for the transport of $\phi$ due to its gradients.
• The source term ${S}_{\phi }$ accounts for any sources or sinks that affect the quantity $\phi$ .
When the above equation is integrated over a three dimensional control volume it yields (2)
The divergence terms (convection and diffusion) can be converted into surface integrals using Gauss divergence theorem and the above equation can be rewritten as (3)
where
• $\stackrel{^}{n}$ is the unit vector normal to the surface $dA$
• $S$ is the boundary of the control volume
• $\stackrel{^}{n}\cdot \left(\rho \stackrel{\to }{u}\phi \right)$ is the convective flux of $\phi$ across the boundary $dS$
• $\stackrel{^}{n}\cdot \left(ϵ\nabla \phi \right)$ is the diffusive flux of $\phi$ across the boundary $dS$

The integral conservation in the scalar transport equation applies to each control volume as well as the complete solution domain thus satisfying the global conservation of quantities such as mass, momentum and energy. These quantities can be evaluated as fluxes at the surfaces of each control volume.

In order to obtain an algebraic (discretised) equation for each control volume the surface and volume integrals are approximated using quadrature formulae in terms of function values at the storage location. This may require values of variable at points other than the computational nodes of the control volume. Values at these locations are obtained using interpolation schemes.

The overall finite volume approach involves the following steps.
There are two common approaches to finite volume discretization.
• Cell centered approach: The domain is defined by a suitable grid of finite volumes and the computational nodes are assigned at the centroid of the control volumes.
• Face/Node centered approach: The domain is first defined by a set of nodes and control volumes are constructed around these nodes as cell centers such that the faces of the control volume lie between these nodes.

The cell centered approach and node centered approach have nearly the same accuracy and efficiency for most of the cases which use a structured grid.

To illustrate how the conservation equations in CFD can be discretised using finite volume method an example involving the steady transport of x-momentum in a uniform 2D rectangular grid can be considered:

A cell centered approach is employed with the points P, W, E, N, S representing the cell centers and the notations n, e, s, w representing the faces of cell P. The notation N (n), E(e), S(s), W(w) represent the north, east, south and west directions, respectively.

The velocity $u$ is stored at the nodes N, E, S, W and it is represented as ${u}_{N}$ , ${u}_{E}$ , ${u}_{S}$ , , respectively. The finite volume approximation starts by integrating the x-momentum equation over the control volume P. (4)
(5)
Evaluation of Source Terms
The source terms can be approximated by evaluating them at cell centers and multiplying them by the volume of the cell.
In the example considered the pressure gradient at center of cell P can be evaluated by interpolating the pressure values from surrounding nodes. Other source terms can be evaluated similarly, interpolating where necessary to estimate the cell center values.
Evaluation of Diffusive Fluxes
The diffusive fluxes can be approximated as
${\left[\int \mu \frac{\partial u}{\partial x}dy\right]}_{w}^{e}+{\left[\int \mu \frac{\partial u}{\partial y}dx\right]}_{s}^{n}\approx {\left[\mu \frac{\partial u}{\partial x}\Delta y\right]}_{w}^{e}+{\left[\mu \frac{\partial u}{\partial y}\Delta x\right]}_{s}^{n}$
The gradients of velocity at the cell faces (e, w, n, s) can be approximated using central difference comprising of the cell center values. This results in diffusive fluxes being represented as
${\left[\int \mu \frac{\partial u}{\partial x}dy\right]}_{w}^{e}+{\left[\int \mu \frac{\partial u}{\partial y}dx\right]}_{s}^{n}\approx {\left(\mu \Delta y\right)}_{e}\frac{{u}_{E}-{u}_{P}}{\Delta x}-{\left(\mu \Delta y\right)}_{w}\frac{{u}_{P}-{u}_{W}}{\Delta x}$
$-{\left(\mu \Delta y\right)}_{n}\frac{{u}_{N}-{u}_{P}}{\Delta y}-{\left(\mu \Delta y\right)}_{s}\frac{{u}_{P}-{u}_{S}}{\Delta y}$
The discretised equation which is second-order accurate takes the form
${a}_{e}{u}_{E}+{a}_{w}{u}_{W}+{a}_{n}{u}_{N}+{a}_{s}{u}_{S}-{a}_{p}{u}_{P}$
Evaluation of Convective Fluxes
The convective fluxes can be approximated as
${\left[\int \rho {u}^{2}dy\right]}_{w}^{e}+{\left[\int \rho uvdx\right]}_{s}^{n}\approx {\left[\rho {u}^{2}\Delta y\right]}_{w}^{e}+{\left[\rho uv\Delta x\right]}_{s}^{n}$
The discretised equation takes the form
${c}_{e}{u}_{e}-{c}_{w}{u}_{w}+{c}_{n}{u}_{n}-{c}_{s}{u}_{s}$
where ${c}_{e}$ , ${c}_{w}$ and so on are mass fluxes through the east, west, north and south faces.
The values of $u$ at cell faces need to be obtained using appropriate interpolation schemes between the cell center values. A few examples of such schemes are linear interpolation (CDS), quadratic upwind interpolation (QUICK), total variation diminishing (TVD).