packageIntroduction
Information
Introduction
In one dimension, the finite volume method consists in subdividing the spatial domain
into intervals, "finite volumes" (or cells), and approximate the integral of the function q over each
of these volumes at each time step.
Denote the i-th finite volume by
(if we assume that no source or sink is present in the cell). The integral form of conservation law is
depends on q(xi-1/2, t), which changes with time along the interface and for which we do not know the analytical solution. For this reason we need to find some approximation to
these fluxes in order to calculate the averages at the next time step. Let us now see some simple flux approximations. Examples of fluxes:
Advection equation
Consider the advection equation qt + uqx = 0, where u is the fluid velocity. We have seen in the previous chapters, that the flux of
the contaminant at some point x, at some time t, could be written as uq(x, t). Consider now the flux through the interface xi-1/2.
Inserting it into the average update rule, we obtain the finite volume method for the advection equation:
Diffusion equation
In the advection equation, the flux depends on q: f(q) = uq. The flux in the diffusion equation depends on the derivative of q:
that beta is constant. Now remains the question of how to approximate numerically the diffusion flux. One possibility were:
finite difference approximations to this equation or as finite volume methods. Another form of the average update rule is
Release Notes: