#include <ConstantScalarFunction.H>
Public Member Functions | |
ConstantScalarFunction (Real a_value) | |
~ConstantScalarFunction () | |
Destructor. | |
Real | operator() (const RealVect &a_x, Real a_t) const |
Real | derivative (const IntVect &a_order, const RealVect &a_x, Real a_t) const |
Private Attributes | |
Real | m_value |
ConstantScalarFunction::ConstantScalarFunction | ( | Real | a_value | ) | [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 -dimensional space. | |
a_t | The time at which the function is to be evaluated. |
Implements ScalarFunction.
Real ConstantScalarFunction::derivative | ( | const IntVect & | a_order, | |
const RealVect & | a_x, | |||
Real | a_t | |||
) | const [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 -dimensional space. | |
a_t | The time at which the derivative is to be evaluated. |
Reimplemented from ScalarFunction.
Real ConstantScalarFunction::m_value [private] |