Using About Auxiliary Equation-Based Nodes it is possible to solve one or several first-order wave equations; that is, PDEs of the form
where u is the unknown,
da the mass coefficient,
f the source, and
Γ the flux vector, which generally depends on
u.
In order to derive the weak form underlying the DG method, let {Ωe} denote a mesh of the domain
{Ω}, with
Ωe denoting a single element. On this mesh, let
V be the broken space
with Ps denoting the space of all polynomials of degree at most
s on
Ωe.
A basis for V is given by the nodal discontinuous Lagrange shape functions
shhwdisc (see
Discontinuous Lagrange (shdisc) and Nodal Discontinuous Lagrange Elements (shhwdisc) in the
COMSOL Multiphysics Programming Reference Manual. This basis is tailor made for this type of discontinuous Galerkin method and has nearly optimal interpolation properties.
The next step is to integrate by parts. Some care must be taken, since the integrands v and
u are discontinuous functions across element boundaries and only continuous in the interior of each element. Therefore, the integrals are first written as a sum over the elements and then integration by parts is done on each element, which gives
where n is the outward unit normal on the element. Further,
Γ∗ is the so-called numerical flux, which defines the flux vector on each element boundary. The flux vector is usually discontinuous because it depends on
u.
The numerical flux defines how adjacent elements are connected and how continuous u is. Different definitions of the numerical flux lead to different variants of discontinuous Galerkin methods.
where the angles 〈?〉 and brackets
[?] are the average and jump operators, respectively. Thus, on each element boundary, this flux is simply the average of the flux on the two adjacent elements sharing the face, plus a penalty on any jumps of the solution. The penalty is needed for stability and is proportional to the parameter
τ, which is assumed to be constant over the whole domain
Ω. The normal vector
n is a, from the element, outward pointing normal vector. The jumps are defined as
where u_ is the inside values and
u+ is the outside value. So it is the element’s value minus the other element’s value. The multiplication is an outer product in the case of a vector quantity
u.
where p is the order of the shape functions and
C a generic constant, typically 0.25.
As implemented in COMSOL Multiphysics, the nodal discontinuous Lagrange shape functions are the only set of shape functions defined for this interface. The associated element order can be chosen from the
Element order list. The highest available order is four, and the default order is two.