Chi-Tech
lbts_setsweepchunk.cc
Go to the documentation of this file.
3
4//###################################################################
5/**Sets up the sweek chunk for the given discretization method.*/
6std::shared_ptr<SweepChunk> lbs::DiscOrdTransientSolver::
8{
9 double theta;
11 theta = 1.0;
12 else
13 theta = 0.5;
14
15 //================================================== Setting up required
16 // sweep chunks
17 auto sweep_chunk = std::make_shared<SweepChunkPWLTransientTheta>(
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
25 psi_prev_local_[groupset.id_],
26 theta,
27 dt_,
28
29 q_moments_local_, //Source moments
30 groupset, //Reference groupset
31 matid_to_xs_map_, //Material cross-sections
32 num_moments_,
33 max_cell_dof_count_);
34
35 return sweep_chunk;
36}
std::shared_ptr< SweepChunk > SetTransientSweepChunk(LBSGroupset &groupset)
std::vector< std::vector< double > > psi_prev_local_
chi_math::SteppingMethod method