int GetNeighborPartitionID(const chi_mesh::MeshContinuum &grid) const
Normal normal_
A list of the vertices.
bool has_neighbor_
Flag indicating whether face has a neighbor.
uint64_t neighbor_id_
Otherwise contains boundary_id.
chi_data_types::ByteArray Serialize() const
std::vector< uint64_t > vertex_ids_
void RecomputeCentroid(const chi_mesh::MeshContinuum &grid)
bool IsNeighborLocal(const chi_mesh::MeshContinuum &grid) const
double ComputeFaceArea(const chi_mesh::MeshContinuum &grid) const
Vertex centroid_
The face centroid.
static CellFace DeSerialize(const chi_data_types::ByteArray &raw, size_t &address)
uint64_t GetNeighborLocalID(const chi_mesh::MeshContinuum &grid) const
int GetNeighborAssociatedFace(const chi_mesh::MeshContinuum &grid) const
std::string ToString() const
std::vector< CellFace > faces_
static Cell DeSerialize(const chi_data_types::ByteArray &raw, size_t &address)
void RecomputeCentroidsAndNormals(const chi_mesh::MeshContinuum &grid)
Cell & operator=(const Cell &other)
Cell(CellType in_cell_type, CellType in_cell_sub_type)
const CellType cell_type_
Primary type, i.e. SLAB, POLYGON, POLYHEDRON.
std::string ToString() const
const CellType cell_sub_type_
Sub-type i.e. SLAB, QUADRILATERAL, HEXAHEDRON.
chi_data_types::ByteArray Serialize() const
std::vector< uint64_t > vertex_ids_
std::string CellTypeName(CellType type)