Class CellFace

Class Documentation

class CellFace

In this paradigm a face is an object which largely is considered to be planar (meaning all the vertices lay in the same plane).

Public Functions

bool IsNeighborLocal(const MeshContinuum *grid) const

Determines the neighbor’s partition and whether it’s local or not.

int GetNeighborPartitionID(const MeshContinuum *grid) const

Determines the neighbor’s partition.

uint64_t GetNeighborLocalID(const MeshContinuum *grid) const

Determines the neighbor’s local id.

int GetNeighborAdjacentFaceIndex(const MeshContinuum *grid) const

Determines the neighbor’s associated face.

void ComputeGeometricInfo(const MeshContinuum *grid, const Cell &cell)

Computes the geometric info on the face.

ByteArray Serialize() const

Serializes a face into a vector of bytes.

std::string ToString() const

Provides string information of the face.

void ComputeGeometricInfo(const MeshContinuum *grid, const Cell &cell, unsigned int f)

Public Members

bool has_neighbor = false

Flag indicating whether face has a neighbor.

uint64_t neighbor_id = 0

If face has neighbor, contains the global_id, otherwise, contains boundary_id.

Vector3 normal

The average/geometric normal.

Vector3 centroid

The face centroid.

double area = 0.0

The area of the face.

std::vector<uint64_t> vertex_ids

A list of the vertices.

Public Static Functions

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

Deserializes a face from a set of raw data.