Chi-Tech
lbsDO_sweepdata_00d_setswpchunk.cc
Go to the documentation of this file.
2
5
7
9
10// ###################################################################
11/**Sets up the sweek chunk for the given discretization method.*/
12std::shared_ptr<SweepChunk>
14{
15 if (sweep_type_ == "AAH")
16 {
17 auto sweep_chunk = std::make_shared<AAH_SweepChunk>(
18 *grid_ptr_, // Spatial grid of cells
19 *discretization_, // Spatial discretization
20 unit_cell_matrices_, // Unit cell matrices
21 cell_transport_views_, // Cell transport views
22 phi_new_local_, // Destination phi
23 psi_new_local_[groupset.id_], // Destination psi
24 q_moments_local_, // Source moments
25 groupset, // Reference groupset
26 matid_to_xs_map_, // Material cross-sections
29
30 return sweep_chunk;
31 }
32 else if (sweep_type_ == "CBC")
33 {
34 auto sweep_chunk = std::make_shared<CBC_SweepChunk>(
36 *grid_ptr_,
41 groupset,
45
46 return sweep_chunk;
47 }
48 else
49 ChiLogicalError("Unsupported sweep_type_ \"" + sweep_type_ + "\"");
50}
#define ChiLogicalError(message)
virtual std::shared_ptr< SweepChunk > SetSweepChunk(LBSGroupset &groupset)
std::vector< std::vector< double > > psi_new_local_
Definition: lbs_solver.h:96
chi_mesh::MeshContinuumPtr grid_ptr_
Definition: lbs_solver.h:75
std::shared_ptr< chi_math::SpatialDiscretization > discretization_
Definition: lbs_solver.h:74
std::vector< lbs::CellLBSView > cell_transport_views_
Definition: lbs_solver.h:83
std::vector< UnitCellMatrices > unit_cell_matrices_
Definition: lbs_solver.h:81
std::vector< double > phi_new_local_
Definition: lbs_solver.h:95
size_t max_cell_dof_count_
Definition: lbs_solver.h:90
std::vector< double > q_moments_local_
Definition: lbs_solver.h:94
std::map< int, XSPtr > matid_to_xs_map_
Definition: lbs_solver.h:71
size_t num_moments_
Definition: lbs_solver.h:62
chi_mesh::sweep_management::SweepChunk SweepChunk