Class Cell

Class Documentation

class Cell

Generic mesh cell object.

Public Functions

Cell(const Cell &other) = default
Cell(Cell &&other) noexcept = default
explicit Cell(CellType cell_type, CellType cell_sub_type)
virtual ~Cell() = default
Cell &operator=(const Cell &other)
inline CellType GetType() const
inline CellType GetSubType() const
void ComputeGeometricInfo(const MeshContinuum *grid)

Computes the geometric info on the cell.

ByteArray Serialize() const

Serializes a cell into a vector of bytes.

std::string ToString() const

Provides string information of the cell.

Public Members

uint64_t global_id = 0
uint64_t local_id = 0
uint64_t partition_id = 0
int block_id = -1
Vector3 centroid
double volume = 0.0
std::vector<uint64_t> vertex_ids
std::vector<CellFace> faces

Public Static Functions

static Cell DeSerialize(const ByteArray &raw, size_t &address)

Deserializes a cell from a vector of bytes.