A Gaussian plus a constant: \(f = C + A \exp\left(-\frac{(x-x_0)^2}{w^2}\right)\).
More...
|
|
| 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() (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 |
| |
|
void | operator() (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 |
| |
| 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 |
| |
|
virtual 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 =0 |
| | Returns the value of the function at the coordinate 'x'.
|
| |
|
virtual 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 =0 |
| | Returns the value of the function at the coordinate 'x'.
|
| |
template<size_t VolumeDim, typename Fr>
class ConstraintDamping::GaussianPlusConstant< VolumeDim, Fr >
A Gaussian plus a constant: \(f = C + A \exp\left(-\frac{(x-x_0)^2}{w^2}\right)\).
Details
Input file options are: Constant \(C\), Amplitude \(A\), Width \(w\), and Center \(x_0\). The function takes input coordinates of type 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.