For simplicity we first consider an convection equation for a state
vector
.
| (6) |
In the discontinuous Galerkin formulation we consider an approximation
space
which may contain discontinuous functions. The discrete
contains polynomials within each ``element'' but zero
outside the element. Here the element may be any of the elements we
have described and we denote this element by Ei. Thus, the
computational domain
and Ei, Ej overlap
only on edges. Consequently, each element is treated separately,
corresponding to the following variational statement:
| |
(7) |
where
.
Computations on each element are performed separately, and the
connection between elements is a result of the way boundary
conditions are applied. Here, boundary conditions are enforced via
the flux
that appears in
equation (7.2). Because this value is computed at the
boundary between adjacent elements, it may be computed from the value
of
given at either element. These two possible values are
denoted here as
(internal) and
(external),
and the boundary flux written
. Upwinding considerations dictate how this flux is computed. For the
case of a hyperbolic system of equations, an approximate Riemann
solver would be used to compute a value of
based on
and
.