Class SweepChunk
Defined in File sweep_chunk.h
Inheritance Relationships
Derived Types
public opensn::AAHSweepChunk
(Class AAHSweepChunk)public opensn::AAHSweepChunkRZ
(Class AAHSweepChunkRZ)public opensn::CBCSweepChunk
(Class CBCSweepChunk)
Class Documentation
-
class SweepChunk
Sweep work function.
Subclassed by opensn::AAHSweepChunk, opensn::AAHSweepChunkRZ, opensn::CBCSweepChunk
Public Types
-
using MomentCallbackFunc = std::function<void(SweepChunk *sweeper, AngleSet *angle_set)>
Convenient typdef for the moment call back function. See moment_callbacks.
Public Functions
-
inline virtual void SetCell(Cell const *cell_ptr, AngleSet &angle_set)
For cell-by-cell methods or computing the residual on a single cell.
-
virtual ~SweepChunk() = default
-
void ZeroDestinationPhi()
Zero the portion of the output flux moments vector corresponding to the groupset for this sweep chunk.
-
inline void ZeroDestinationPsi()
Sets all elements of the output angular flux vector to zero.
-
inline void SetBoundarySourceActiveFlag(bool flag_value)
Activates or deactives the surface src flag.
-
inline bool IsSurfaceSourceActive() const
Returns the surface src-active flag.
Public Members
-
std::vector<MomentCallbackFunc> moment_callbacks
Functions of type MomentCallbackFunc can be added to the moment_callbacks vector and these can be called from within functions taking a LBSGroupset instance. The intention is that this function can be used as a general interface to retrieve angular flux values
Protected Attributes
-
const std::shared_ptr<MeshContinuum> grid_
-
const SpatialDiscretization &discretization_
-
const std::vector<UnitCellMatrices> &unit_cell_matrices_
-
std::vector<CellLBSView> &cell_transport_views_
-
const std::vector<double> &densities_
-
const std::vector<double> &source_moments_
-
const LBSGroupset &groupset_
-
const std::map<int, std::shared_ptr<MultiGroupXS>> &xs_
-
const int num_moments_
-
const int max_num_cell_dofs_
-
const bool save_angular_flux_
-
const size_t groupset_angle_group_stride_
-
const size_t groupset_group_stride_
-
std::vector<double> &destination_phi_
-
std::vector<double> &destination_psi_
-
bool surface_source_active_ = false
-
using MomentCallbackFunc = std::function<void(SweepChunk *sweeper, AngleSet *angle_set)>