Chi-Tech
lbs_01e_initgroupsets.cc
Go to the documentation of this file.
1#include "lbs_solver.h"
2
3//###################################################################
4/**Initializes common groupset items.*/
6{
7 for (auto& groupset : groupsets_)
8 {
9 //================================================== Build groupset angular
10 // flux unknown manager
11 groupset.psi_uk_man_.unknowns_.clear();
12 size_t num_angles = groupset.quadrature_->abscissae_.size();
13 size_t gs_num_groups = groupset.groups_.size();
14 auto& grpset_psi_uk_man = groupset.psi_uk_man_;
15
16 const auto VarVecN = chi_math::UnknownType::VECTOR_N;
17 for (unsigned int n=0; n<num_angles; ++n)
18 grpset_psi_uk_man.AddUnknown(VarVecN, gs_num_groups);
19
20 groupset.BuildDiscMomOperator(options_.scattering_order,
22 groupset.BuildMomDiscOperator(options_.scattering_order,
24 groupset.BuildSubsets();
25 }//for groupset
26}
lbs::Options options_
Definition: lbs_solver.h:61
std::vector< LBSGroupset > groupsets_
Definition: lbs_solver.h:68
GeometryType geometry_type
Definition: lbs_structs.h:124
unsigned int scattering_order
Definition: lbs_structs.h:126