Chombo + EB  3.0
Public Member Functions | Private Attributes | List of all members
ConstantTensorFunction Class Reference

#include <ConstantTensorFunction.H>

Inheritance diagram for ConstantTensorFunction:
Inheritance graph

Public Member Functions

 ConstantTensorFunction (const RealTensor &a_value)
 ~ConstantTensorFunction ()
 Destructor. More...
RealTensor operator() (const RealVect &a_x, Real a_t) const
- Public Member Functions inherited from TensorFunction
 TensorFunction (bool a_homogeneous, bool a_constant)
virtual ~TensorFunction ()
 Destructor. More...
RealTensor operator() (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

RealTensor m_value

Additional Inherited Members

- Protected Attributes inherited from TensorFunction
bool m_isHomogeneous
bool m_isConstant

Constructor & Destructor Documentation

◆ ConstantTensorFunction()

ConstantTensorFunction::ConstantTensorFunction ( const RealTensor a_value)

Creates a constant function returning the given value.

a_valueThe value returned by the function.

◆ ~ConstantTensorFunction()

ConstantTensorFunction::~ConstantTensorFunction ( )


Member Function Documentation

◆ operator()()

RealTensor ConstantTensorFunction::operator() ( const RealVect a_x,
Real  a_t 
) const

Override this method to evaluate this function at the given point in space and time.

a_xA point in $D$-dimensional space.
a_tThe time at which the function is evaluated.

Implements TensorFunction.

Member Data Documentation

◆ m_value

RealTensor ConstantTensorFunction::m_value

The documentation for this class was generated from the following file: