SpECTRE  v2024.04.12
Burgers::Solutions::Linear Class Reference

A solution that is linear in space at all times. More...

#include <Linear.hpp>

Classes

struct  ShockTime
 

Public Types

using options = tmpl::list< ShockTime >
 

Public Member Functions

 Linear (const Linear &)=default
 
Linearoperator= (const Linear &)=default
 
 Linear (Linear &&)=default
 
Linearoperator= (Linear &&)=default
 
 Linear (double shock_time)
 
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::Uvariables (const tnsr::I< DataVector, 1 > &x, double t, tmpl::list< Tags::U >) const
 
tuples::TaggedTuple<::Tags::dt< Tags::U > > variables (const tnsr::I< DataVector, 1 > &x, double t, tmpl::list<::Tags::dt< Tags::U > >) const
 
void pup (PUP::er &p) override
 
virtual auto get_clone () const -> std::unique_ptr< InitialData >=0
 

Static Public Attributes

static constexpr Options::String help {"A spatially linear solution"}
 

Detailed Description

A solution that is linear in space at all times.

\(u(x, t) = x / (t - t_0)\) where \(t_0\) is the shock time.

Member Function Documentation

◆ get_clone()

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

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