Chi-Tech
lbs::TransientSourceFunction Class Reference

#include <transient_source_function.h>

Inheritance diagram for lbs::TransientSourceFunction:
lbs::SourceFunction

Public Member Functions

 TransientSourceFunction (const LBSSolver &lbs_solver, double &ref_dt, chi_math::SteppingMethod &method)
 
double AddDelayedFission (const PrecursorList &precursors, const std::vector< double > &nu_delayed_sigma_f, const double *phi) const override
 
- Public Member Functions inherited from lbs::SourceFunction
 SourceFunction (const LBSSolver &lbs_solver)
 
virtual ~SourceFunction ()=default
 
virtual void operator() (LBSGroupset &groupset, std::vector< double > &destination_q, const std::vector< double > &phi, SourceFlags source_flags)
 
virtual double AddSourceMoments () const
 
virtual double AddDelayedFission (const PrecursorList &precursors, const std::vector< double > &nu_delayed_sigma_f, const double *phi) const
 
virtual void AddAdditionalSources (LBSGroupset &groupset, std::vector< double > &destination_q, const std::vector< double > &phi, SourceFlags source_flags)
 
void AddPointSources (LBSGroupset &groupset, std::vector< double > &destination_q, const std::vector< double > &phi, SourceFlags source_flags)
 

Private Attributes

double & dt_
 
chi_math::SteppingMethodmethod_
 

Additional Inherited Members

- Public Types inherited from lbs::SourceFunction
typedef std::vector< chi_physics::MultiGroupXS::PrecursorPrecursorList
 
- Protected Attributes inherited from lbs::SourceFunction
const LBSSolverlbs_solver_
 
bool apply_fixed_src_ = false
 
bool apply_wgs_scatter_src_ = false
 
bool apply_ags_scatter_src_ = false
 
bool apply_wgs_fission_src_ = false
 
bool apply_ags_fission_src_ = false
 
bool suppress_wg_scatter_src_ = false
 
size_t gs_i_ = 0
 
size_t gs_f_ = 0
 
size_t first_grp_ = 0
 
size_t last_grp_ = 0
 
double cell_volume_ = 0.0
 
size_t g_ = 0
 
const double * fixed_src_moments_ = nullptr
 
std::vector< double > default_zero_src_
 

Detailed Description

A transient source function needs to adjust the AddDelayedFission routine to properly fit with the current timestepping method and timestep.

Definition at line 13 of file transient_source_function.h.

Constructor & Destructor Documentation

◆ TransientSourceFunction()

lbs::TransientSourceFunction::TransientSourceFunction ( const LBSSolver lbs_solver,
double &  ref_dt,
chi_math::SteppingMethod method 
)

Constructor for the transient source function. The only difference as compared to a steady source function is the treatment of delayed fission.

Definition at line 6 of file transient_source_function.cc.

Member Function Documentation

◆ AddDelayedFission()

double lbs::TransientSourceFunction::AddDelayedFission ( const PrecursorList precursors,
const std::vector< double > &  nu_delayed_sigma_f,
const double *  phi 
) const
overridevirtual

Customized delayed fission source..

Reimplemented from lbs::SourceFunction.

Definition at line 16 of file transient_source_function.cc.

Field Documentation

◆ dt_

double& lbs::TransientSourceFunction::dt_
private

Definition at line 16 of file transient_source_function.h.

◆ method_

chi_math::SteppingMethod& lbs::TransientSourceFunction::method_
private

Definition at line 17 of file transient_source_function.h.


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