Misplaced Pages

Godunov's scheme

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
(Redirected from Godunov method)

In numerical analysis and computational fluid dynamics, Godunov's scheme is a conservative numerical scheme, suggested by Sergei Godunov in 1959, 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 n = 1 Δ x x i 1 / 2 x i + 1 / 2 q ( t n , x ) d x {\displaystyle Q_{i}^{n}={\frac {1}{\Delta x}}\int _{x_{i-1/2}}^{x_{i+1/2}}q(t^{n},x)\,dx} where the x i 1 / 2 = x low + ( i 1 / 2 ) Δ x {\displaystyle x_{i-1/2}=x_{\text{low}}+\left(i-1/2\right)\Delta x} and t n = n Δ t {\displaystyle t^{n}=n\Delta t} form a discrete set of points for the hyperbolic problem: q t + ( f ( q ) ) x = 0 , {\displaystyle q_{t}+(f(q))_{x}=0,} where the indices t {\displaystyle t} and x {\displaystyle x} indicate the derivatives in time and space, respectively. If we integrate the hyperbolic problem over a control volume [ x i 1 / 2 , x i + 1 / 2 ] , {\displaystyle ,} we obtain a method of lines (MOL) formulation for the spatial cell averages: t Q i ( t ) = 1 Δ x ( f ( q ( t , x i + 1 / 2 ) ) f ( q ( t , x i 1 / 2 ) ) ) , {\displaystyle {\frac {\partial }{\partial t}}Q_{i}(t)=-{\frac {1}{\Delta x}}\left(f(q(t,x_{i+1/2}))-f(q(t,x_{i-1/2}))\right),} which is a classical description of the first order, upwinded finite volume method.

Exact time integration of the above formula from time t = t n {\displaystyle t=t^{n}} to time t = t n + 1 {\displaystyle t=t^{n+1}} yields the exact update formula: Q i n + 1 = Q i n 1 Δ x t n t n + 1 ( f ( q ( t , x i + 1 / 2 ) ) f ( q ( t , x i 1 / 2 ) ) ) d t . {\displaystyle Q_{i}^{n+1}=Q_{i}^{n}-{\frac {1}{\Delta x}}\int _{t^{n}}^{t^{n+1}}\left(f(q(t,x_{i+1/2}))-f(q(t,x_{i-1/2}))\right)\,dt.}

Godunov's method replaces the time integral of each t n t n + 1 f ( q ( t , x i 1 / 2 ) ) d t {\displaystyle \int _{t^{n}}^{t^{n+1}}f(q(t,x_{i-1/2}))\,dt} with a forward Euler method which yields a fully discrete update formula for each of the unknowns Q i n {\displaystyle Q_{i}^{n}} . That is, we approximate the integrals with t n t n + 1 f ( q ( t , x i 1 / 2 ) ) d t Δ t f ( Q i 1 n , Q i n ) , {\displaystyle \int _{t^{n}}^{t^{n+1}}f(q(t,x_{i-1/2}))\,dt\approx \Delta tf^{\downarrow }\left(Q_{i-1}^{n},Q_{i}^{n}\right),} where f ( q l , q r ) {\displaystyle f^{\downarrow }\left(q_{l},q_{r}\right)} is an approximation to the exact solution of the Riemann problem. For consistency, one assumes that f ( q l , q r ) = f ( q l )  if  q l = q r , {\displaystyle f^{\downarrow }(q_{l},q_{r})=f(q_{l})\quad {\text{ if }}\quad q_{l}=q_{r},} and that f {\displaystyle f^{\downarrow }} is increasing in the first argument, and decreasing in the second argument. For scalar problems where f ( q ) > 0 {\displaystyle f'(q)>0} , one can use the simple Upwind scheme, which defines f ( q l , q r ) = f ( q l ) {\displaystyle f^{\downarrow }(q_{l},q_{r})=f(q_{l})} .

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 n + 1 = Q i n λ ( f ^ i + 1 / 2 n f ^ i 1 / 2 n ) , λ = Δ t Δ x , f ^ i 1 / 2 n = f ( Q i 1 n , Q i n ) {\displaystyle Q_{i}^{n+1}=Q_{i}^{n}-\lambda \left({\hat {f}}_{i+1/2}^{n}-{\hat {f}}_{i-1/2}^{n}\right),\quad \lambda ={\frac {\Delta t}{\Delta x}},\quad {\hat {f}}_{i-1/2}^{n}=f^{\downarrow }\left(Q_{i-1}^{n},Q_{i}^{n}\right)}

Linear problem

In the case of a linear problem, where f ( q ) = a q {\displaystyle f(q)=aq} , and without loss of generality, we'll assume that a > 0 {\displaystyle a>0} , the upwinded Godunov method yields: Q i n + 1 = Q i n ν ( Q i n Q i 1 n ) , ν = a Δ t Δ x , {\displaystyle Q_{i}^{n+1}=Q_{i}^{n}-\nu \left(Q_{i}^{n}-Q_{i-1}^{n}\right),\quad \nu =a{\frac {\Delta t}{\Delta x}},} which yields the classical first-order, upwinded Finite Volume scheme whose stability requires ν = | a Δ t Δ x | 1 {\displaystyle \nu =\left|a{\frac {\Delta t}{\Delta x}}\right|\leq 1} .

Three-step algorithm

Following Hirsch, the scheme involves three distinct steps to obtain the solution at t = ( n + 1 ) Δ t {\displaystyle t=(n+1)\Delta t\,} from the known solution at t = n Δ t {\displaystyle {t=n\Delta t}\,} , as follows:

  1. Define piecewise constant approximation of the solution at t = ( n + 1 ) Δ t {\displaystyle {t=(n+1)\Delta t}\,} . Since the piecewise constant approximation is an average of the solution over the cell of size Δ x {\displaystyle {\Delta x}\,} , the spatial error is of order Δ x {\displaystyle {\Delta x}\,} , 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.
  2. 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.
  3. Average the state variables after a time interval Δ t {\displaystyle {\Delta t}\,} . 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 Δ t {\displaystyle {\Delta t}\,} . To be consistent, the time interval Δ t {\displaystyle {\Delta t}\,} 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 | a max | Δ t < Δ x / 2 {\displaystyle |a_{\max }|\Delta t<\Delta x/2\,} where | a max | {\displaystyle |a_{\max }|\,} 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

References

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

Further reading

Numerical methods for partial differential equations
Finite difference
Parabolic
Hyperbolic
Others
Finite volume
Finite element
Meshless/Meshfree
Domain decomposition
Others
Categories: