|
SpECTRE
v2026.09.05
|
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<Tags::Pi, Tags::Phi<1>, Tags::Psi> |
| using | options = tmpl::list<Harmonic, Amplitudes> |
Public Member Functions | |
| SemidiscretizedDg (int harmonic, const std::array< double, 4 > &litudes) | |
| auto | get_clone () const -> std::unique_ptr< evolution::initial_data::InitialData > override |
| template<typename... Tags> | |
| tuples::TaggedTuple< Tags... > | variables (const tnsr::I< DataVector, 1 > &x, double t, tmpl::list< Tags... >) const |
| Retrieve the evolution variables at time t and spatial coordinates x | |
| void | pup (PUP::er &p) override |
| Public Member Functions inherited from evolution::initial_data::InitialData | |
| virtual const InitialData & | unwrap () const |
| Unwrap wrapper types (e.g. WithNoise, which wraps analytic initial data and adds random noise) to reach the underlying analytic solution or data. | |
Static Public Attributes | |
| static constexpr Options::String | help |
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.
|
overridevirtual |
Implements evolution::initial_data::InitialData.
|
staticconstexpr |