Chombo + EB + MF  3.2
ConstantVectorFunction.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 _CONSTANTVECTORFUNCTION_H_
12 #define _CONSTANTVECTORFUNCTION_H_
13 
14 #include "VectorFunction.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 scalar function returning the given value.
25  //! \param a_value The value returned by the function.
26  explicit ConstantVectorFunction(const RealVect& a_value);
27 
28  //! Destructor.
30 
31  // Overridden methods.
32  RealVect operator()(const RealVect& a_x, Real a_t) const;
33 
34  RealVect derivative(const IntVect& a_order,
35  const RealVect& a_x,
36  Real a_t) const;
37 
38  private:
39 
41 };
42 
43 #include "NamespaceFooter.H"
44 #endif
RealVect operator()(const RealVect &a_x, Real a_t) const
~ConstantVectorFunction()
Destructor.
Definition: ConstantVectorFunction.H:20
Definition: VectorFunction.H:21
double Real
Definition: REAL.H:33
ConstantVectorFunction(const RealVect &a_value)
A Real vector in SpaceDim-dimensional space.
Definition: RealVect.H:41
An integer Vector in SpaceDim-dimensional space.
Definition: CHArray.H:42
RealVect derivative(const IntVect &a_order, const RealVect &a_x, Real a_t) const
RealVect m_value
Definition: ConstantVectorFunction.H:40