Class OutflowBank
Defined in File outflow_bank.h
Class Documentation
-
class OutflowBank
Contiguous storage manager for local boundary-face outflow tallies.
The bank owns the outflow values and builds one CellOutflowView per local cell. Each view stores offsets into the bank’s contiguous storage for the cell’s boundary faces.
Public Functions
-
OutflowBank() = default
-
OutflowBank(const MeshContinuum &grid, unsigned int num_groups)
Construct outflow storage and cell-local views for a mesh.
- Parameters:
grid – Local mesh used to discover boundary faces.
num_groups – Number of energy groups stored per boundary face.
-
inline std::vector<CellOutflowView> GetCellOutflowViews()
Transfer cell-local outflow views to the caller.
Note
After this operation, the bank no longer owns the view collection, but the returned views still refer to this bank’s outflow storage.
- Returns:
Views indexed by local cell id.
-
inline std::vector<double> &GetOutflowData()
Return read/write access to the contiguous outflow values.
-
std::uint64_t GetOffset(std::uint32_t cell_local_idx, std::uint32_t face_idx) const
Return the first group offset for a boundary face.
-
inline std::size_t GetSize() const
Return the number of contiguous outflow values.
-
OutflowBank() = default