Chi-Tech
lbsadj_solver_01_main_initialize.cc
Go to the documentation of this file.
1
#include "
lbsadj_solver.h
"
2
3
#include "
A_LBSSolver/SourceFunctions/adjoint_src_function.h
"
4
5
#include "
chi_runtime.h
"
6
#include "
chi_log.h
"
7
8
void
lbs::DiscreteOrdinatesAdjointSolver::Initialize
()
9
{
10
LBSSolver::Initialize
();
11
12
MakeAdjointXSs
();
13
InitQOIs
();
14
15
//================================================== Initialize source func
16
auto
src_function = std::make_shared<AdjointSourceFunction>(*
this
);
17
18
using namespace
std::placeholders;
19
active_set_source_function_
=
20
std::bind(&SourceFunction::operator(), src_function, _1, _2, _3, _4);
21
22
//================================================== Initialize groupsets for
23
// sweeping
24
InitializeSweepDataStructures
();
25
for
(
auto
& groupset :
groupsets_
)
26
{
27
InitFluxDataStructures
(groupset);
28
29
InitWGDSA
(groupset);
30
InitTGDSA
(groupset);
31
}
32
33
InitializeSolverSchemes
();
//j
34
source_event_tag_
=
Chi::log
.
GetRepeatingEventTag
(
"Set Source"
);
35
}
adjoint_src_function.h
chi_log.h
chi_runtime.h
Chi::log
static chi::ChiLog & log
Definition:
chi_runtime.h:81
chi::ChiLog::GetRepeatingEventTag
size_t GetRepeatingEventTag(std::string event_name)
Definition:
chi_log.cc:176
lbs::DiscreteOrdinatesAdjointSolver::MakeAdjointXSs
void MakeAdjointXSs()
Definition:
lbsadj_solver_01a_make_adjointXS.cc:9
lbs::DiscreteOrdinatesAdjointSolver::InitQOIs
void InitQOIs()
Definition:
lbsadj_solver_01b_initQOIs.cc:12
lbs::DiscreteOrdinatesAdjointSolver::Initialize
void Initialize() override
Definition:
lbsadj_solver_01_main_initialize.cc:8
lbs::DiscreteOrdinatesSolver::InitFluxDataStructures
void InitFluxDataStructures(LBSGroupset &groupset)
Definition:
lbsDO_sweepdata_00b_initFLUDS.cc:26
lbs::DiscreteOrdinatesSolver::InitializeSweepDataStructures
void InitializeSweepDataStructures()
Definition:
lbsDO_sweepdata_00.cc:42
lbs::LBSSolver::InitWGDSA
void InitWGDSA(LBSGroupset &groupset, bool vaccum_bcs_are_dirichlet=true)
Definition:
lbs_03d_wgdsa.cc:10
lbs::LBSSolver::InitTGDSA
void InitTGDSA(LBSGroupset &groupset)
Definition:
lbs_03e_tgdsa.cc:11
lbs::LBSSolver::source_event_tag_
size_t source_event_tag_
Definition:
lbs_solver.h:58
lbs::LBSSolver::Initialize
void Initialize() override
Definition:
lbs_01_main_initialize.cc:8
lbs::LBSSolver::groupsets_
std::vector< LBSGroupset > groupsets_
Definition:
lbs_solver.h:68
lbs::LBSSolver::InitializeSolverSchemes
virtual void InitializeSolverSchemes()
Definition:
lbs_01j_init_solver_schemes.cc:9
lbs::LBSSolver::active_set_source_function_
SetSourceFunction active_set_source_function_
Definition:
lbs_solver.h:99
lbsadj_solver.h
modules
LinearBoltzmannSolvers
C_DiscreteOrdinatesAdjointSolver
lbsadj_solver_01_main_initialize.cc
Generated by
1.9.3