chombo-discharge
CD_Location.H
Go to the documentation of this file.
1 /* chombo-discharge
2  * Copyright © 2021 SINTEF Energy Research.
3  * Please refer to Copyright.txt and LICENSE in the chombo-discharge root directory.
4  */
5 
12 #ifndef CD_Location_H
13 #define CD_Location_H
14 
15 // Chombo includes
16 #include <EBISBox.H>
17 
18 // Our includes
19 #include <CD_NamespaceHeader.H>
20 
24 namespace Location {
25 
29  enum class Cell
30  {
31  Center,
32  Centroid,
33  Boundary
34  };
35 
39  enum class Face
40  {
41  Center,
42  Centroid,
43  Boundary
44  };
45 
54  inline RealVect
55  position(const Location::Cell a_location, const VolIndex& a_vof, const EBISBox& a_ebisbox, const Real& a_dx);
56 
65  inline RealVect
66  position(const Location::Face a_location, const FaceIndex& a_face, const EBISBox& a_ebisbox, const Real& a_dx);
67 } // namespace Location
68 
69 #include <CD_NamespaceFooter.H>
70 
71 #include <CD_LocationImplem.H>
72 
73 #endif
Implementation of CD_Location.H.
Namespace for encapsulating various data centerings.
Definition: CD_Location.H:24
RealVect position(const Location::Cell a_location, const VolIndex &a_vof, const EBISBox &a_ebisbox, const Real &a_dx)
Compute the position (ignoring the "origin) of a Vof.
Definition: CD_LocationImplem.H:20
Cell
Enum for distinguishing between cell locations.
Definition: CD_Location.H:30
Face
Enum for distinguishing between face locations.
Definition: CD_Location.H:40