Struct SurfaceShard

Nested Relationships

Nested Types

Struct Documentation

struct SurfaceShard

The faces of one stored surface tag that are owned by this rank.

A face is owned by rank SurfaceFaceOwner(key, P), where key is its centroid key, so every data set read on the same communicator places a given physical face, from either side of an interior surface, on the same rank. Faces are stored in arrival order; index gives the local face index of each key in key order.

Public Functions

inline std::uint64_t GetNumFaces() const
inline std::uint64_t GetNumFaceNodes(const std::uint64_t face) const
std::optional<std::uint64_t> Find(const DiscreteOrdinatesProblemIO::FaceCentroidKey &key) const

Return the local index of the face with key, if this rank owns it.

Public Members

bool interior = false

True when the tag is one side, <name>_u or <name>_d, of an interior surface; false for a boundary, whatever its name.

Recorded by the writer and identical on all ranks.

std::vector<std::pair<DiscreteOrdinatesProblemIO::FaceCentroidKey, std::uint64_t>> index

(face key, local face index) pairs sorted by key.

std::vector<std::uint64_t> node_offset = {0}

Start offset of each face’s nodes. Its size is the number of faces plus one.

std::vector<std::uint64_t> mass_offset = {0}

Start offset of each face’s mass matrix. Its size is the number of faces plus one.

std::vector<double> coords

Face node coordinates, three per node.

std::vector<double> mass

Face mass matrices, row-major by face node, including the curvilinear measure scale.

std::vector<GroupsetValues> groupsets

Values per groupset.

struct GroupsetValues

Public Members

std::vector<double> mu

Direction cosine with the face normal, ordered by face and direction.

std::vector<double> psi

Angular flux, ordered by face, face node, direction, and group.

For an interior tag, the values of the face’s cell; for a boundary tag, the upwind values written by WriteSurfaceAngularFluxes (upwind_flux), which take the boundary condition for the directions that enter the domain.