Chi-Tech
|
#include <SweepChunk.h>
Public Member Functions | |
SweepChunk (std::vector< double > &destination_phi, std::vector< double > &destination_psi, const chi_mesh::MeshContinuum &grid, const chi_math::SpatialDiscretization &discretization, const std::vector< UnitCellMatrices > &unit_cell_matrices, std::vector< lbs::CellLBSView > &cell_transport_views, const std::vector< double > &source_moments, const LBSGroupset &groupset, const std::map< int, XSPtr > &xs, int num_moments, int max_num_cell_dofs, std::unique_ptr< SweepDependencyInterface > sweep_dependency_interface_ptr) | |
void | KernelFEMVolumetricGradientTerm () |
void | KernelFEMUpwindSurfaceIntegrals () |
void | KernelFEMSTDMassTerms () |
void | KernelPhiUpdate () |
void | KernelPsiUpdate () |
Public Member Functions inherited from chi_mesh::sweep_management::SweepChunk | |
SweepChunk (std::vector< double > &in_destination_phi, std::vector< double > &in_destination_psi) | |
virtual void | Sweep (AngleSet &angle_set) |
virtual void | SetAngleSet (AngleSet &angle_set) |
virtual void | SetCell (chi_mesh::Cell const *cell_ptr, chi_mesh::sweep_management::AngleSet &angle_set) |
virtual void | SetCells (const std::vector< const chi_mesh::Cell * > &cell_ptrs) |
virtual | ~SweepChunk ()=default |
Protected Types | |
typedef std::function< void()> | CallbackFunction |
Protected Member Functions | |
void | RegisterKernel (const std::string &name, CallbackFunction function) |
CallbackFunction | Kernel (const std::string &name) const |
virtual void | OutgoingSurfaceOperations () |
Protected Member Functions inherited from chi_mesh::sweep_management::SweepChunk | |
void | SetDestinationPhi (std::vector< double > &in_destination_phi) |
void | ZeroDestinationPhi () |
std::vector< double > & | GetDestinationPhi () |
void | SetDestinationPsi (std::vector< double > &in_destination_psi) |
void | ZeroDestinationPsi () |
std::vector< double > & | GetDestinationPsi () |
void | SetBoundarySourceActiveFlag (bool flag_value) |
bool | IsSurfaceSourceActive () const |
Static Protected Member Functions | |
static void | ExecuteKernels (const std::vector< CallbackFunction > &kernels) |
Private Attributes | |
std::map< std::string, CallbackFunction > | kernels_ |
Additional Inherited Members | |
Public Types inherited from chi_mesh::sweep_management::SweepChunk | |
typedef std::function< void(chi_mesh::sweep_management::SweepChunk *sweeper, chi_mesh::sweep_management::AngleSet *angle_set)> | MomentCallbackF |
Data Fields inherited from chi_mesh::sweep_management::SweepChunk | |
std::vector< MomentCallbackF > | moment_callbacks |
Base class for LBS sweepers
Definition at line 66 of file SweepChunk.h.
|
protected |
Definition at line 84 of file SweepChunk.h.
lbs::SweepChunk::SweepChunk | ( | std::vector< double > & | destination_phi, |
std::vector< double > & | destination_psi, | ||
const chi_mesh::MeshContinuum & | grid, | ||
const chi_math::SpatialDiscretization & | discretization, | ||
const std::vector< UnitCellMatrices > & | unit_cell_matrices, | ||
std::vector< lbs::CellLBSView > & | cell_transport_views, | ||
const std::vector< double > & | source_moments, | ||
const LBSGroupset & | groupset, | ||
const std::map< int, XSPtr > & | xs, | ||
int | num_moments, | ||
int | max_num_cell_dofs, | ||
std::unique_ptr< SweepDependencyInterface > | sweep_dependency_interface_ptr | ||
) |
Definition at line 15 of file SweepChunk.cc.
|
staticprotected |
Executes the supplied kernels list.
Definition at line 78 of file SweepChunk.cc.
|
protected |
Returns a kernel if the given name exists.
Definition at line 69 of file SweepChunk.cc.
void lbs::SweepChunk::KernelFEMSTDMassTerms | ( | ) |
Assembles angular sources and applies the mass matrix terms.
Definition at line 160 of file SweepChunk.cc.
void lbs::SweepChunk::KernelFEMUpwindSurfaceIntegrals | ( | ) |
Performs the integral over the surface of a face.
Definition at line 132 of file SweepChunk.cc.
void lbs::SweepChunk::KernelFEMVolumetricGradientTerm | ( | ) |
Assembles the volumetric gradient term.
Definition at line 121 of file SweepChunk.cc.
void lbs::SweepChunk::KernelPhiUpdate | ( | ) |
Adds a single direction's contribution to the moment integrals.
Definition at line 196 of file SweepChunk.cc.
void lbs::SweepChunk::KernelPsiUpdate | ( | ) |
Updates angular fluxes.
Definition at line 216 of file SweepChunk.cc.
|
protectedvirtual |
Operations when outgoing fluxes are handled including passing face angular fluxes downstream and computing balance parameters (i.e. outflow)
Definition at line 89 of file SweepChunk.cc.
|
protected |
Registers a kernel as a named callback function
Definition at line 57 of file SweepChunk.cc.
|
protected |
Definition at line 107 of file SweepChunk.h.
|
protected |
Definition at line 108 of file SweepChunk.h.
|
protected |
Definition at line 110 of file SweepChunk.h.
|
protected |
Definition at line 114 of file SweepChunk.h.
|
protected |
Callbacks at phase 1 : cell data established
Definition at line 125 of file SweepChunk.h.
|
protected |
Definition at line 113 of file SweepChunk.h.
|
protected |
Definition at line 115 of file SweepChunk.h.
|
protected |
Definition at line 117 of file SweepChunk.h.
|
protected |
Definition at line 118 of file SweepChunk.h.
|
protected |
Definition at line 116 of file SweepChunk.h.
|
protected |
Callbacks at phase 2 : direction data established
Definition at line 133 of file SweepChunk.h.
|
protected |
Definition at line 128 of file SweepChunk.h.
|
protected |
Definition at line 130 of file SweepChunk.h.
|
protected |
Definition at line 127 of file SweepChunk.h.
|
protected |
Callbacks at phase 5 : flux updates
Definition at line 146 of file SweepChunk.h.
|
protected |
Definition at line 119 of file SweepChunk.h.
|
protected |
Definition at line 138 of file SweepChunk.h.
|
protected |
Definition at line 86 of file SweepChunk.h.
|
protected |
Definition at line 87 of file SweepChunk.h.
|
protected |
Definition at line 89 of file SweepChunk.h.
|
protected |
Definition at line 91 of file SweepChunk.h.
|
protected |
Definition at line 99 of file SweepChunk.h.
|
protected |
Definition at line 100 of file SweepChunk.h.
|
protected |
Definition at line 105 of file SweepChunk.h.
|
protected |
Definition at line 104 of file SweepChunk.h.
|
protected |
Definition at line 103 of file SweepChunk.h.
|
protected |
Definition at line 139 of file SweepChunk.h.
|
protected |
Definition at line 122 of file SweepChunk.h.
|
private |
Definition at line 169 of file SweepChunk.h.
|
protected |
Definition at line 120 of file SweepChunk.h.
|
protected |
Definition at line 121 of file SweepChunk.h.
|
protected |
Callbacks at phase 4 : group by group mass terms
Definition at line 143 of file SweepChunk.h.
|
protected |
Definition at line 93 of file SweepChunk.h.
|
protected |
Definition at line 129 of file SweepChunk.h.
|
protected |
Callbacks at phase 6 : Post cell-dir sweep
Definition at line 149 of file SweepChunk.h.
|
protected |
Definition at line 90 of file SweepChunk.h.
|
protected |
Definition at line 94 of file SweepChunk.h.
|
protected |
Definition at line 140 of file SweepChunk.h.
|
protected |
Definition at line 109 of file SweepChunk.h.
|
protected |
Callbacks at phase 3 : Surface integrals
Definition at line 136 of file SweepChunk.h.
|
protected |
Definition at line 97 of file SweepChunk.h.
|
protected |
Definition at line 96 of file SweepChunk.h.
|
protected |
Definition at line 88 of file SweepChunk.h.
|
protected |
Definition at line 92 of file SweepChunk.h.