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
[legend]

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)
explicit

Creates a constant function returning the given value.

Parameters
a_valueThe value returned by the function.

◆ ~ConstantTensorFunction()

ConstantTensorFunction::~ConstantTensorFunction ( )

Destructor.

Member Function Documentation

◆ operator()()

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.

Parameters
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
private

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