Class CellOutflowView

Class Documentation

class CellOutflowView

Non-owning view of group-wise outflow values for the faces of one local cell.

Face offsets are relative to the first outflow value assigned to the cell. A negative face offset marks a face that does not contribute outflow storage.

Public Functions

CellOutflowView() = default
inline CellOutflowView(std::size_t num_faces, unsigned int num_groups)

Construct a view for a cell with a fixed face count and energy group count.

Parameters:
  • num_faces – Number of faces on the viewed cell.

  • num_groups – Number of energy groups stored per boundary face.

inline bool IsInitialized() const

Return whether the view was initialized with at least one face or group.

inline bool HasFaceOffsets() const

Return whether boundary-face offset metadata has been allocated.

inline void InitializeFaceOffsets()

Allocate boundary-face offset metadata.

inline void Assign(double *outflow)

Assign the first outflow value for this cell.

Note

The view does not own the assigned storage.

Parameters:

outflow – Pointer to the first group-wise outflow value owned by the outflow bank.

inline void SetFaceOffset(std::size_t f, std::int64_t offset)

Set the group-wise outflow offset for a face.

Parameters:
  • fFace index local to the viewed cell.

  • offset – Offset of the face’s first group value relative to the cell outflow pointer.

inline void Zero(std::size_t f, unsigned int g)

Set one face-group outflow value to zero when storage exists.

Parameters:
  • fFace index local to the viewed cell.

  • g – Energy group index.

inline void Add(std::size_t f, unsigned int g, double intS_mu_psi)

Add a contribution to one face-group outflow value when storage exists.

Parameters:
  • fFace index local to the viewed cell.

  • g – Energy group index.

  • intS_mu_psi – Surface-integral contribution to the outflow tally.

inline double Get(std::size_t f, unsigned int g) const

Return one face-group outflow value, or zero when storage is absent.

Parameters:
  • fFace index local to the viewed cell.

  • g – Energy group index.

Returns:

Stored outflow tally for the face and group.