Chi-Tech
lbts_setsweepchunk.cc
Go to the documentation of this file.
1
#include "
D_DO_Transient/lbts_transient_solver.h
"
2
#include "
D_DO_Transient/SweepChunks/lbts_sweepchunk_pwl.h
"
3
4
//###################################################################
5
/**Sets up the sweek chunk for the given discretization method.*/
6
std::shared_ptr<SweepChunk>
lbs::DiscOrdTransientSolver::
7
SetTransientSweepChunk
(
LBSGroupset
& groupset)
8
{
9
double
theta;
10
if
(
method
==
chi_math::SteppingMethod::IMPLICIT_EULER
)
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
}
lbs::DiscOrdTransientSolver::dt_
double dt_
Definition:
lbts_transient_solver.h:43
lbs::DiscOrdTransientSolver::SetTransientSweepChunk
std::shared_ptr< SweepChunk > SetTransientSweepChunk(LBSGroupset &groupset)
Definition:
lbts_setsweepchunk.cc:7
lbs::DiscOrdTransientSolver::psi_prev_local_
std::vector< std::vector< double > > psi_prev_local_
Definition:
lbts_transient_solver.h:50
lbs::DiscOrdTransientSolver::method
chi_math::SteppingMethod method
Definition:
lbts_transient_solver.h:19
lbs::LBSGroupset
Definition:
lbs_groupset.h:36
lbs::LBSGroupset::id_
int id_
Definition:
lbs_groupset.h:40
lbts_sweepchunk_pwl.h
lbts_transient_solver.h
chi_math::SteppingMethod::IMPLICIT_EULER
@ IMPLICIT_EULER
modules
LinearBoltzmannSolvers
D_DO_Transient
IterativeOperations
lbts_setsweepchunk.cc
Generated by
1.9.3