13#ifndef CD_CUTCELLSURFACE_H
14#define CD_CUTCELLSURFACE_H
20#include <CD_NamespaceHeader.H>
22namespace PolyhedralEB {
46 static constexpr int s_numEdges = 2 * SpaceDim * (SpaceDim - 1);
106 linearOut(
void* a_buffer) const noexcept;
113 linearIn(const
void* a_buffer) noexcept;
145#include <CD_NamespaceFooter.H>
Implementation of CD_CutCellSurface.H.
static constexpr int s_native
Role of a stored surface: the cell's body is built from the surface alone.
Definition CD_CutCellSurface.H:61
void linearIn(const void *a_buffer) noexcept
Read the surface from a linear buffer written by linearOut.
Definition CD_CutCellSurfaceImplem.H:63
static constexpr int s_overridden
Role of a stored surface: some faces of the cell's body are the cell's face overrides rather than its...
Definition CD_CutCellSurface.H:67
int linearSize() const noexcept
Number of bytes the surface occupies in a linear buffer, as Chombo's containers ask of their payload.
Definition CD_CutCellSurfaceImplem.H:46
bool hasCrossing(const int a_edge) const noexcept
Whether the edge carries a crossing.
Definition CD_CutCellSurfaceImplem.H:40
static constexpr int s_invalid
Role of a surface: the cell is covered by a finer grid. Never stored or copied; a receiver that finds...
Definition CD_CutCellSurface.H:73
int m_role
How the cell's body is built from this surface: s_native, s_overridden or s_invalid.
Definition CD_CutCellSurface.H:140
Real m_corner[s_numCorners]
Implicit function at the cell corners, ordered so that corner c has offset ((c >> d) & 1) in directio...
Definition CD_CutCellSurface.H:126
int m_fluidJoined
Which faces join their fluid corners, one bit per face whose corners alternate in sign.
Definition CD_CutCellSurface.H:135
static constexpr int s_numEdges
Number of cell edges a crossing can sit on.
Definition CD_CutCellSurface.H:46
static constexpr Real s_noCrossing
Marks an edge whose endpoints lie on the same side of the interface.
Definition CD_CutCellSurface.H:56
static constexpr int s_numCorners
Number of cell corners.
Definition CD_CutCellSurface.H:51
Real m_crossing[s_numEdges]
Position along an edge where the implicit function changes sign.
Definition CD_CutCellSurface.H:120
CutCellSurface() noexcept
Constructor. Leaves every edge without a crossing, every corner at zero, no face joining its fluid co...
Definition CD_CutCellSurfaceImplem.H:25
void linearOut(void *a_buffer) const noexcept
Write the surface into a linear buffer, as Chombo's containers ask of their payload.
Definition CD_CutCellSurfaceImplem.H:52