SpECTRE
v2025.03.17
|
A Gaussian plus a constant:
#include <GaussianPlusConstant.hpp>
Classes | |
struct | Amplitude |
struct | Center |
struct | Constant |
struct | Width |
Public Types | |
using | options = implementation defined |
![]() | |
using | creatable_classes = implementation defined |
using | frame = Fr |
Public Member Functions | |
GaussianPlusConstant (double constant, double amplitude, double width, const std::array< double, VolumeDim > ¢er) | |
GaussianPlusConstant (const GaussianPlusConstant &)=default | |
GaussianPlusConstant & | operator= (const GaussianPlusConstant &)=default |
GaussianPlusConstant (GaussianPlusConstant &&)=default | |
GaussianPlusConstant & | operator= (GaussianPlusConstant &&)=default |
void | operator() (const gsl::not_null< Scalar< double > * > value_at_x, const tnsr::I< double, VolumeDim, Fr > &x, double time, const std::unordered_map< std::string, std::unique_ptr< domain::FunctionsOfTime::FunctionOfTime > > &functions_of_time) const override |
Returns the value of the function at the coordinate 'x'. More... | |
void | operator() (const gsl::not_null< Scalar< DataVector > * > value_at_x, const tnsr::I< DataVector, VolumeDim, Fr > &x, double time, const std::unordered_map< std::string, std::unique_ptr< domain::FunctionsOfTime::FunctionOfTime > > &functions_of_time) const override |
Returns the value of the function at the coordinate 'x'. More... | |
auto | get_clone () const -> std::unique_ptr< DampingFunction< VolumeDim, Fr > > override |
void | pup (PUP::er &p) override |
![]() | |
WRAPPED_PUPable_abstract (DampingFunction) | |
DampingFunction (const DampingFunction &)=default | |
DampingFunction & | operator= (const DampingFunction &)=default |
DampingFunction (DampingFunction &&)=default | |
DampingFunction & | operator= (DampingFunction &&)=default |
DampingFunction (CkMigrateMessage *msg) | |
virtual auto | get_clone () const -> std::unique_ptr< DampingFunction< VolumeDim, Fr > >=0 |
Static Public Attributes | |
static constexpr Options::String | help |
![]() | |
static constexpr size_t | volume_dim = VolumeDim |
Friends | |
bool | operator== (const GaussianPlusConstant &lhs, const GaussianPlusConstant &rhs) |
A Gaussian plus a constant:
Input file options are: Constant
Amplitude
Width
Center
tnsr::I<T, VolumeDim, Fr>
, where T
is e.g. double
or DataVector
, Fr
is a frame (e.g. Frame::Inertial
), and VolumeDim
is the dimension of the spatial volume.
|
overridevirtual |
|
overridevirtual |
Returns the value of the function at the coordinate 'x'.
Implements gh::ConstraintDamping::DampingFunction< VolumeDim, Fr >.
|
overridevirtual |
Returns the value of the function at the coordinate 'x'.
Implements gh::ConstraintDamping::DampingFunction< VolumeDim, Fr >.
|
staticconstexpr |