chombo-discharge
Loading...
Searching...
No Matches
CD_Location.H
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2021-2026 SINTEF Energy Research
3 *
4 * SPDX-License-Identifier: GPL-3.0-or-later
5 */
6
13#ifndef CD_LOCATION_H
14#define CD_LOCATION_H
15
16// Chombo includes
17#include <EBISBox.H>
18
19// Our includes
20#include <CD_NamespaceHeader.H>
21
25namespace Location {
26
30enum class Cell
31{
32 Center,
33 Centroid,
34 Boundary
35};
36
40enum class Face
41{
42 Center,
43 Centroid,
44 Boundary
45};
46
56inline RealVect
57position(Location::Cell a_location, const VolIndex& a_vof, const EBISBox& a_ebisbox, const Real& a_dx);
58
68inline RealVect
69position(Location::Face a_location, const FaceIndex& a_face, const EBISBox& a_ebisbox, const Real& a_dx);
70} // namespace Location
71
72#include <CD_NamespaceFooter.H>
73
74#include <CD_LocationImplem.H>
75
76#endif
Implementation of CD_Location.H.
Namespace for encapsulating various data centerings.
Definition CD_Location.H:25
RealVect position(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:21
Cell
Enum for distinguishing between cell locations.
Definition CD_Location.H:31
Face
Enum for distinguishing between face locations.
Definition CD_Location.H:41