Godunov's scheme explained

In numerical analysis and computational fluid dynamics, Godunov's scheme is a conservative numerical scheme, suggested by Sergei Godunov in 1959,[1] for solving partial differential equations. One can think of this method as a conservative finite volume method which solves exact, or approximate Riemann problems at each inter-cell boundary. In its basic form, Godunov's method is first order accurate in both space and time, yet can be used as a base scheme for developing higher-order methods.

Basic scheme

Following the classical finite volume method framework, we seek to track a finite set of discrete unknowns, Q^_i = \frac \int_ ^ q(t^n, x)\, dx where the

xi-1/2=xlow+\left(i-1/2\right)\Deltax

and

tn=n\Deltat

form a discrete set of points for the hyperbolic problem: q_t + (f(q))_x = 0, where the indices

t

and

x

indicate the derivatives in time and space, respectively. If we integrate the hyperbolic problem over a control volume

[xi-1/2,xi+1/2],

we obtain a method of lines (MOL) formulation for the spatial cell averages: \frac Q_i(t) = -\frac \left(f(q(t, x_)) - f(q(t, x_)) \right), which is a classical description of the first order, upwinded finite volume method.[2]

Exact time integration of the above formula from time

t=tn

to time

t=tn+1

yields the exact update formula: Q^_i = Q^n_i - \frac \int_^ \left(f(q(t, x_)) - f(q(t, x_)) \right)\, dt.

Godunov's method replaces the time integral of each \int_^ f(q(t, x_))\, dt with a forward Euler method which yields a fully discrete update formula for each of the unknowns

n
Q
i
. That is, we approximate the integrals with \int_^ f(q(t, x_))\, dt \approx \Delta t f^\downarrow\left(Q^n_, Q^n_i \right), where

f\downarrow\left(ql,qr\right)

is an approximation to the exact solution of the Riemann problem. For consistency, one assumes that f^\downarrow(q_l, q_r) = f(q_l) \quad \text \quad q_l = q_r, and that

f\downarrow

is increasing in the first argument, and decreasing in the second argument. For scalar problems where

f'(q)>0

, one can use the simple Upwind scheme, which defines

f\downarrow(ql,qr)=f(ql)

.

The full Godunov scheme requires the definition of an approximate, or an exact Riemann solver, but in its most basic form, is given by: Q^_i = Q^n_i - \lambda \left(\hat^n_ - \hat^n_ \right), \quad \lambda = \frac, \quad \hat^n_ = f^\downarrow\left(Q^n_, Q^n_i \right)

Linear problem

In the case of a linear problem, where

f(q)=aq

, and without loss of generality, we'll assume that

a>0

, the upwinded Godunov method yields: Q^_i = Q^n_i - \nu \left(Q^_i - Q^n_ \right), \quad \nu = a \frac, which yields the classical first-order, upwinded Finite Volume scheme whose stability requires

\nu=\left|a

\Deltat
\Deltax

\right|\leq1

.

Three-step algorithm

Following Hirsch,[3] the scheme involves three distinct steps to obtain the solution at

t=(n+1)\Deltat

from the known solution at

{t=n\Deltat}

, as follows:
  1. Define piecewise constant approximation of the solution at

{t=(n+1)\Deltat}

. Since the piecewise constant approximation is an average of the solution over the cell of size

{\Deltax}

, the spatial error is of order

{\Deltax}

, and hence the resulting scheme will be first-order accurate in space. Note that this approximation corresponds to a finite volume method representation whereby the discrete values represent averages of the state variables over the cells. Exact relations for the averaged cell values can be obtained from the integral conservation laws.
  1. Obtain the solution for the local Riemann problem at the cell interfaces. This is the only physical step of the whole procedure. The discontinuities at the interfaces are resolved in a superposition of waves satisfying locally the conservation equations. The original Godunov method is based upon the exact solution of the Riemann problems. However, approximate solutions can be applied as an alternative.
  2. Average the state variables after a time interval

{\Deltat}

. The state variables obtained after Step 2 are averaged over each cell defining a new piecewise constant approximation resulting from the wave propagation during the time interval

{\Deltat}

. To be consistent, the time interval

{\Deltat}

should be limited such that the waves emanating from an interface do not interact with waves created at the adjacent interfaces. Otherwise the situation inside a cell would be influenced by interacting Riemann problems. This leads to the CFL condition

|amax|\Deltat<\Deltax/2

where

|amax|

is the maximum wave speed obtained from the cell eigenvalue(s) of the local Jacobian matrix.

The first and third steps are solely of a numerical nature and can be considered as a projection stage, independent of the second, physical step, the evolution stage. Therefore, they can be modified without influencing the physical input, for instance by replacing the piecewise constant approximation by a piecewise linear variation inside each cell, leading to the definition of second-order space-accurate schemes, such as the MUSCL scheme.

See also

Further reading

Notes and References

  1. Godunov . S. K. . 1959 . Разностный метод численного расчета разрывных решений уравнений гидродинамики . A Difference Scheme for Numerical Solution of Discontinuous Solution of Hydrodynamic Equations . . 47 . 271–306 . 119433 . 0171.46204 . Translated US Joint Publ. Res. Service, JPRS 7226, 1969.
  2. Book: Leveque, Randy J. . 2002 . Finite Volume Methods for Hyperbolic Problems . Cambridge University Press . 0-521-81087-6 .
  3. Book: Hirsch, C. . 1990 . Numerical Computation of Internal and External Flows . 2 . Wiley . 0-471-92452-0 .