SpECTRE
v2025.03.17
|
A constant function:
#include <Constant.hpp>
Classes | |
struct | Value |
Public Types | |
using | options = implementation defined |
![]() | |
using | creatable_classes = implementation defined |
using | frame = Fr |
Public Member Functions | |
Constant (double value) | |
Constant (const Constant &)=default | |
Constant & | operator= (const Constant &)=default |
Constant (Constant &&)=default | |
Constant & | operator= (Constant &&)=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 = {"Returns a constant value"} |
![]() | |
static constexpr size_t | volume_dim = VolumeDim |
Friends | |
bool | operator== (const Constant &lhs, const Constant &rhs) |
A constant function:
Input file options are: Value
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 >.