#include <ConstantTensorFunction.H>
Public Member Functions | |
ConstantTensorFunction (const RealTensor &a_value) | |
~ConstantTensorFunction () | |
Destructor. | |
RealTensor | operator() (const RealVect &a_x, Real a_t) const |
Private Attributes | |
RealTensor | m_value |
ConstantTensorFunction::ConstantTensorFunction | ( | const RealTensor & | a_value | ) | [explicit] |
Creates a constant function returning the given value.
a_value | The value returned by the function. |
ConstantTensorFunction::~ConstantTensorFunction | ( | ) |
Destructor.
RealTensor ConstantTensorFunction::operator() | ( | const RealVect & | a_x, | |
Real | a_t | |||
) | const [virtual] |
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 evaluated. |
Implements TensorFunction.
RealTensor ConstantTensorFunction::m_value [private] |