4.1. Linear Acoustic Wave Equation#
mirgecom.wave
computes the rhs of the wave equation.
- mirgecom.wave.wave_operator(dcoll, c, w, *, comm_tag=None)[source]#
Compute the RHS of the wave equation.
- Parameters:
dcoll (grudge.discretization.DiscretizationCollection) – the discretization collection to use
c (float) – the (constant) wave speed
w (numpy.ndarray) – an object array of DOF arrays, representing the state vector
comm_tag (Hashable) – Tag for distributed communication
- Returns:
an object array of DOF arrays, representing the ODE RHS
- Return type: