Chombo + EB + MF
3.2
|
#include <ConstantScalarFunction.H>
Public Member Functions | |
ConstantScalarFunction (Real a_value) | |
~ConstantScalarFunction () | |
Destructor. More... | |
Real | operator() (const RealVect &a_x, Real a_t) const |
Real | derivative (const IntVect &a_order, const RealVect &a_x, Real a_t) const |
![]() | |
ScalarFunction (bool a_homogeneous, bool a_constant) | |
virtual | ~ScalarFunction () |
Destructor. More... | |
virtual bool | hasDerivative (const IntVect &a_order) const |
Real | operator() (const RealVect &a_x) const |
Real | derivative (const IntVect &a_order, const RealVect &a_x) const |
bool | isHomogeneous () const |
Returns true if this function is homogeneous, false otherwise. More... | |
bool | isConstant () const |
Returns true if this function is constant, false otherwise. More... | |
Private Attributes | |
Real | m_value |
Additional Inherited Members | |
![]() | |
bool | m_isHomogeneous |
bool | m_isConstant |
This ScalarFunction subclass represents a function that returns a constant value everywhere in space and time.
|
explicit |
Creates a constant scalar function returning the given value.
a_value | The value returned by the function. |
ConstantScalarFunction::~ConstantScalarFunction | ( | ) |
Destructor.
Override this method to evaluate this function at the given point in space and time.
a_x | A point in ![]() |
a_t | The time at which the function is to be evaluated. |
Implements ScalarFunction.
|
virtual |
Override this method to evaluate the given partial derivative of the function at the given point in space and time.
a_order | A multi-index identifying the order(s) of the partial derivative of the function to be evaluated. |
a_x | A point in ![]() |
a_t | The time at which the derivative is to be evaluated. |
Reimplemented from ScalarFunction.
|
private |