Chombo + EB + MF  3.2
VectorAvgTransformation.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 _VECTORAVGTRANSFORMATION_H_
12 #define _VECTORAVGTRANSFORMATION_H_
13 
14 #include "VectorTransformation.H"
15 
16 #include "NamespaceHeader.H"
17 
18 // ---------------------------------------------------------
19 /// Class to describe transformation of SpaceDim-vectors, typically from one block to another.
21 {
22 public:
23 
24  /// null constructor leaves object in undefined state
26  { m_interpDims = 0; }
27 
28  /// null constructor leaves object in undefined state
30  const Vector<VectorTransformation>& a_tfmGrad);
31 
32  /// apply this tranformation to vector
33  RealVect transform(const RealVect& a_vec,
34  const Vector<RealVect>& a_gradVec) const;
35 
36  /// increment a vector-transformed cell-averaged FAB
37  void addTransformFab(FArrayBox& a_dstFab,
38  const FArrayBox& a_srcFab,
39  const FArrayBox& a_gradFab,
40  const Box& a_bx,
41  Real a_weight = 1.) const;
42 
43 protected:
44 
46 
48 };
49 
50 #include "NamespaceFooter.H"
51 
52 #endif // include guard
Class to describe transformation of SpaceDim-vectors, typically from one block to another...
Definition: VectorAvgTransformation.H:20
one dimensional dynamic array
Definition: Vector.H:53
Class to describe transformation of SpaceDim-vectors, typically from one block to another...
Definition: VectorTransformation.H:23
void addTransformFab(FArrayBox &a_dstFab, const FArrayBox &a_srcFab, const FArrayBox &a_gradFab, const Box &a_bx, Real a_weight=1.) const
increment a vector-transformed cell-averaged FAB
int m_interpDims
Definition: VectorAvgTransformation.H:45
Vector< Real > m_coeffsAll
Definition: VectorAvgTransformation.H:47
RealVect transform(const RealVect &a_vec, const Vector< RealVect > &a_gradVec) const
apply this tranformation to vector
double Real
Definition: REAL.H:33
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:469
A Real vector in SpaceDim-dimensional space.
Definition: RealVect.H:41
Definition: FArrayBox.H:45
VectorAvgTransformation()
null constructor leaves object in undefined state
Definition: VectorAvgTransformation.H:25