Chombo + EB + MF  3.2
ConstantTensorFunction.H
Go to the documentation of this file.
1 #ifdef CH_LANG_CC
2 /*
3  * _______ __
4  * / ___/ / ___ __ _ / / ___
5  * / /__/ _ \/ _ \/ V \/ _ \/ _ \
6  * \___/_//_/\___/_/_/_/_.__/\___/
7  * Please refer to Copyright.txt, in Chombo's root directory.
8  */
9 #endif
10 
11 #ifndef _CONSTANTTENSORFUNCTION_H_
12 #define _CONSTANTTENSORFUNCTION_H_
13 
14 #include "TensorFunction.H"
15 #include "NamespaceHeader.H"
16 
17 //! \class ConstantVectorFunction
18 //! This VectorFunction subclass represents a function that returns a
19 //! constant value everywhere in space and time.
21 {
22  public:
23 
24  //! Creates a constant function returning the given value.
25  //! \param a_value The value returned by the function.
26  explicit ConstantTensorFunction(const RealTensor& a_value);
27 
28  //! Destructor.
30 
31  // Overridden methods.
32  RealTensor operator()(const RealVect& a_x, Real a_t) const;
33 
34  private:
35 
37 };
38 
39 #include "NamespaceFooter.H"
40 #endif
Definition: TensorFunction.H:21
Definition: RealTensor.H:24
~ConstantTensorFunction()
Destructor.
RealTensor m_value
Definition: ConstantTensorFunction.H:36
double Real
Definition: REAL.H:33
RealTensor operator()(const RealVect &a_x, Real a_t) const
ConstantTensorFunction(const RealTensor &a_value)
A Real vector in SpaceDim-dimensional space.
Definition: RealVect.H:41
Definition: ConstantTensorFunction.H:20