Chi-Tech
lbs::SweepChunkPWLTransientTheta Class Reference

#include <lbts_sweepchunk_pwl.h>

Inheritance diagram for lbs::SweepChunkPWLTransientTheta:
chi_mesh::sweep_management::SweepChunk

Data Structures

struct  Upwinder
 

Public Member Functions

 SweepChunkPWLTransientTheta (std::shared_ptr< chi_mesh::MeshContinuum > grid_ptr, chi_math::SpatialDiscretization &discretization, const std::vector< UnitCellMatrices > &unit_cell_matrices, std::vector< lbs::CellLBSView > &cell_transport_views, std::vector< double > &destination_phi, std::vector< double > &destination_psi, const std::vector< double > &psi_prev_ref, double input_theta, double time_step, const std::vector< double > &source_moments, LBSGroupset &groupset, const std::map< int, XSPtr > &xs, int num_moments, int max_num_cell_dofs)
 
void Sweep (chi_mesh::sweep_management::AngleSet *angle_set) override
 
- 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
 

Data Fields

std::vector< std::vector< double > > b_
 
- Data Fields inherited from chi_mesh::sweep_management::SweepChunk
std::vector< MomentCallbackFmoment_callbacks
 

Protected Attributes

const std::shared_ptr< chi_mesh::MeshContinuumgrid_view_
 
chi_math::SpatialDiscretizationgrid_fe_view_
 
const std::vector< UnitCellMatrices > & unit_cell_matrices_
 
std::vector< lbs::CellLBSView > & grid_transport_view_
 
const std::vector< double > & q_moments_
 
LBSGroupsetgroupset_
 
const std::map< int, XSPtr > & xs_
 
const int num_moments_
 
const size_t num_groups_
 
const int max_num_cell_dofs_
 
const bool save_angular_flux_
 
const std::vector< double > & psi_prev_
 
const double theta_
 
const double dt_
 
bool a_and_b_initialized_
 
std::vector< std::vector< double > > Amat_
 
std::vector< std::vector< double > > Atemp_
 
std::vector< double > source_
 

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
 
- 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
 

Detailed Description

Sweep chunk for cartesian PWLD discretization Theta-scheme timestepping.

Definition at line 18 of file lbts_sweepchunk_pwl.h.

Constructor & Destructor Documentation

◆ SweepChunkPWLTransientTheta()

lbs::SweepChunkPWLTransientTheta::SweepChunkPWLTransientTheta ( std::shared_ptr< chi_mesh::MeshContinuum grid_ptr,
chi_math::SpatialDiscretization discretization,
const std::vector< UnitCellMatrices > &  unit_cell_matrices,
std::vector< lbs::CellLBSView > &  cell_transport_views,
std::vector< double > &  destination_phi,
std::vector< double > &  destination_psi,
const std::vector< double > &  psi_prev_ref,
double  input_theta,
double  time_step,
const std::vector< double > &  source_moments,
LBSGroupset groupset,
const std::map< int, XSPtr > &  xs,
int  num_moments,
int  max_num_cell_dofs 
)

Constructor.

Definition at line 10 of file lbts_sweepchunk_pwl.cc.

Member Function Documentation

◆ Sweep()

void lbs::SweepChunkPWLTransientTheta::Sweep ( chi_mesh::sweep_management::AngleSet angle_set)
override

Actual sweep function

Definition at line 86 of file lbts_sweepchunk_pwl.cc.

Field Documentation

◆ a_and_b_initialized_

bool lbs::SweepChunkPWLTransientTheta::a_and_b_initialized_
protected

Definition at line 38 of file lbts_sweepchunk_pwl.h.

◆ Amat_

std::vector<std::vector<double> > lbs::SweepChunkPWLTransientTheta::Amat_
protected

Definition at line 39 of file lbts_sweepchunk_pwl.h.

◆ Atemp_

std::vector<std::vector<double> > lbs::SweepChunkPWLTransientTheta::Atemp_
protected

Definition at line 40 of file lbts_sweepchunk_pwl.h.

◆ b_

std::vector<std::vector<double> > lbs::SweepChunkPWLTransientTheta::b_

Definition at line 45 of file lbts_sweepchunk_pwl.h.

◆ dt_

const double lbs::SweepChunkPWLTransientTheta::dt_
protected

Definition at line 35 of file lbts_sweepchunk_pwl.h.

◆ grid_fe_view_

chi_math::SpatialDiscretization& lbs::SweepChunkPWLTransientTheta::grid_fe_view_
protected

Definition at line 22 of file lbts_sweepchunk_pwl.h.

◆ grid_transport_view_

std::vector<lbs::CellLBSView>& lbs::SweepChunkPWLTransientTheta::grid_transport_view_
protected

Definition at line 24 of file lbts_sweepchunk_pwl.h.

◆ grid_view_

const std::shared_ptr<chi_mesh::MeshContinuum> lbs::SweepChunkPWLTransientTheta::grid_view_
protected

Definition at line 21 of file lbts_sweepchunk_pwl.h.

◆ groupset_

LBSGroupset& lbs::SweepChunkPWLTransientTheta::groupset_
protected

Definition at line 26 of file lbts_sweepchunk_pwl.h.

◆ max_num_cell_dofs_

const int lbs::SweepChunkPWLTransientTheta::max_num_cell_dofs_
protected

Definition at line 30 of file lbts_sweepchunk_pwl.h.

◆ num_groups_

const size_t lbs::SweepChunkPWLTransientTheta::num_groups_
protected

Definition at line 29 of file lbts_sweepchunk_pwl.h.

◆ num_moments_

const int lbs::SweepChunkPWLTransientTheta::num_moments_
protected

Definition at line 28 of file lbts_sweepchunk_pwl.h.

◆ psi_prev_

const std::vector<double>& lbs::SweepChunkPWLTransientTheta::psi_prev_
protected

Definition at line 33 of file lbts_sweepchunk_pwl.h.

◆ q_moments_

const std::vector<double>& lbs::SweepChunkPWLTransientTheta::q_moments_
protected

Definition at line 25 of file lbts_sweepchunk_pwl.h.

◆ save_angular_flux_

const bool lbs::SweepChunkPWLTransientTheta::save_angular_flux_
protected

Definition at line 31 of file lbts_sweepchunk_pwl.h.

◆ source_

std::vector<double> lbs::SweepChunkPWLTransientTheta::source_
protected

Definition at line 41 of file lbts_sweepchunk_pwl.h.

◆ theta_

const double lbs::SweepChunkPWLTransientTheta::theta_
protected

Definition at line 34 of file lbts_sweepchunk_pwl.h.

◆ unit_cell_matrices_

const std::vector<UnitCellMatrices>& lbs::SweepChunkPWLTransientTheta::unit_cell_matrices_
protected

Definition at line 23 of file lbts_sweepchunk_pwl.h.

◆ xs_

const std::map<int, XSPtr>& lbs::SweepChunkPWLTransientTheta::xs_
protected

Definition at line 27 of file lbts_sweepchunk_pwl.h.


The documentation for this class was generated from the following files: