SpECTRE  v2026.09.05
Loading...
Searching...
No Matches
Burgers::Solutions::Bump Class Reference

A solution resembling a bump. More...

#include <Bump.hpp>

Classes

struct  Center
struct  HalfWidth
struct  Height

Public Types

using options = tmpl::list<HalfWidth, Height, Center>

Public Member Functions

 Bump (const Bump &)=default
Bump & operator= (const Bump &)=default
 Bump (Bump &&)=default
Bump & operator= (Bump &&)=default
 Bump (double half_width, double height, double center=0.)
auto get_clone () const -> std::unique_ptr< evolution::initial_data::InitialData > override
template<typename T>
Scalar< T > u (const tnsr::I< T, 1 > &x, double t) const
template<typename T>
Scalar< T > du_dt (const tnsr::I< T, 1 > &x, double t) const
tuples::TaggedTuple< Tags::U > variables (const tnsr::I< DataVector, 1 > &x, double t, tmpl::list< Tags::U >) const
tuples::TaggedTuple<::Tags::dt< Burgers::Tags::U > > variables (const tnsr::I< DataVector, 1 > &x, double t, tmpl::list<::Tags::dt< Tags::U > >) const
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 {"A bump solution"}

Detailed Description

A solution resembling a bump.

At \(t=0\), the solution is a parabola:

\begin{equation*} u(x, t) = h \left(1 - \left(\frac{x - c}{w}\right)^2\right), \end{equation*}

where \(h\) is the height, \(c\) is the center, and \(w\) is the distance from the center to the zeros. A shock propagates in from infinity and reaches one of the zeros at \(t = \frac{w}{2 h}\).

Member Function Documentation

◆ get_clone()

auto Burgers::Solutions::Bump::get_clone ( ) const -> std::unique_ptr< evolution::initial_data::InitialData >
overridevirtual

The documentation for this class was generated from the following file:
  • src/PointwiseFunctions/AnalyticSolutions/Burgers/Bump.hpp