Classes | Public Types | Public Member Functions | Static Public Attributes | List of all members
ScalarWave::Solutions::SemidiscretizedDg Class Reference

An exact solution to the semidiscretized DG ScalarWave system with an upwind flux. More...

#include <SemidiscretizedDg.hpp>

Classes

struct  Amplitudes
 
struct  Harmonic
 

Public Types

using tags = tmpl::list< ScalarWave::Pi, ScalarWave::Phi< 1 >, ScalarWave::Psi >
 
using options = tmpl::list< Harmonic, Amplitudes >
 

Public Member Functions

 SemidiscretizedDg (int harmonic, const std::array< double, 4 > &amplitudes) noexcept
 
template<typename... Tags>
tuples::TaggedTuple< Tags... > variables (const tnsr::I< DataVector, 1 > &x, double t, tmpl::list< Tags... >) const noexcept
 Retrieve the evolution variables at time t and spatial coordinates x
 
void pup (PUP::er &p) noexcept
 

Static Public Attributes

static constexpr OptionString help
 

Detailed Description

An exact solution to the semidiscretized DG ScalarWave system with an upwind flux.

This solution takes into account the spatial discretization error, and so should show convergence in time integration accuracy to roundoff at any resolution.

Warning
This is not really a pointwise function, as the solution depends on the spatial discretization. It will only work on a periodic domain of length \(2 \pi\) (or an integer multiple) with equally sized linear elements.

Member Data Documentation

◆ help

constexpr OptionString ScalarWave::Solutions::SemidiscretizedDg::help
staticconstexpr
Initial value:
=
"A solution of the semidiscretized DG system on linear elements\n"
"with spatial period 2 pi."

The documentation for this class was generated from the following files: