Chombo + EB + MF  3.2
XPointCoordSys.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 _XPOINTCOORDSYS_H_
12 #define _XPOINTCOORDSYS_H_
13 
14 #define XPOINT_BLOCK_SEPARATION 12
15 
16 #include "MultiBlockCoordSys.H"
17 #include "NamespaceHeader.H"
18 
20 {
21 public:
22 
23  /**
24  \name Constructors, destructor and defines
25  */
26  /*@{*/
27 
28  ///
29  /** Default constructor.
30  */
32 
33  XPointCoordSys(const ProblemDomain& a_levelDomain,
34  const RealVect& a_dx);
35 
36  void define(const ProblemDomain& a_levelDomain,
37  const RealVect& a_dx);
38 
39  ///
40  /** Destructor.
41  */
42  virtual ~XPointCoordSys();
43 
44  /*@}*/
45 
46  // virtual void define( Vector<MultiBlockCoordSys *>& geom_vec);
47 
48  /// block mapping conversion function
49  /** given xi_k in block k, returns which block (k_valid)
50  contains that location in its valid region and its
51  location in that block's computational coordinate space.
52  */
53  virtual void blockRemapping(RealVect& xi_valid,
54  int& n_valid,
55  const RealVect& xiSrc,
56  int nSrc) const;
57 
58  virtual void defineBoundaries();
59 
60  // virtual IntVect getDecomposition(int block) const {return m_decomp;}
61 
62 protected:
63 
64  // IntVect m_decomp;
65 
66  string m_geom_type;
67 };
68 
69 
71 {
72 public:
73 
75  {
76  }
77 
79  {
80  }
81 
82  virtual MultiBlockCoordSys* getCoordSys(const ProblemDomain& levelDomain,
83  const RealVect& a_dx) const;
84 
85 protected:
86 
87 };
88 
89 #include "NamespaceFooter.H"
90 
91 #endif
A class to facilitate interaction with physical boundary conditions.
Definition: ProblemDomain.H:141
string m_geom_type
Definition: XPointCoordSys.H:66
virtual ~XPointCoordSysFactory()
Definition: XPointCoordSys.H:78
Definition: XPointCoordSys.H:70
virtual const NewCoordSys * getCoordSys(int a_n) const
Return the mapping which corresponds to the block with the given index.
Definition: MultiBlockCoordSys.H:250
virtual interface class encapsulating multi-block mapping API
Definition: MultiBlockCoordSys.H:34
void define(const ProblemDomain &a_levelDomain, const RealVect &a_dx)
A Real vector in SpaceDim-dimensional space.
Definition: RealVect.H:41
virtual ~XPointCoordSys()
XPointCoordSysFactory()
Definition: XPointCoordSys.H:74
pure-virtual base class defining factory interface for MultiBlockCoordSys
Definition: MultiBlockCoordSys.H:409
virtual void defineBoundaries()
Definition: XPointCoordSys.H:19
virtual void blockRemapping(RealVect &xi_valid, int &n_valid, const RealVect &xiSrc, int nSrc) const
block mapping conversion function