chombo-discharge
Enumerations | Functions
Location Namespace Reference

Namespace for encapsulating various data centerings. More...

Enumerations

enum class  Cell { Center , Centroid , Boundary }
 Enum for distinguishing between cell locations.
 
enum class  Face { Center , Centroid , Boundary }
 Enum for distinguishing between face locations.
 

Functions

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. More...
 
RealVect position (const Location::Face a_location, const FaceIndex &a_face, const EBISBox &a_ebisbox, const Real &a_dx)
 Compute the position (ignoring the "origin) of a FaceIndex. More...
 

Detailed Description

Namespace for encapsulating various data centerings.

Function Documentation

◆ position() [1/2]

RealVect Location::position ( const Location::Cell  a_location,
const VolIndex &  a_vof,
const EBISBox &  a_ebisbox,
const Real &  a_dx 
)
inline

Compute the position (ignoring the "origin) of a Vof.

Parameters
[in]a_locationPosition within the grid cell (e.g. center, centroid, boundary).
[in]a_vofVolIndex to compute the position of
[in]a_ebisboxEBISBox
[in]a_dxGrid resolution
Returns
Position of a face, ignoring the "origin" of the coordinate system since this is only used together with LeastSquares::displacement(...)

◆ position() [2/2]

RealVect Location::position ( const Location::Face  a_location,
const FaceIndex &  a_face,
const EBISBox &  a_ebisbox,
const Real &  a_dx 
)
inline

Compute the position (ignoring the "origin) of a FaceIndex.

Parameters
[in]a_locationPosition within the grid cell (e.g. face center, face centroid)
[in]a_faceFace
[in]a_ebisboxEBISBox
[in]a_dxGrid resolution
Returns
Position of a face, ignoring the "origin" of the coordinate system since this is only used together with LeastSquares::displacement(...)