Chi-Tech
prk::TransientSolver Class Reference

#include <point_reactor_kinetics.h>

Inheritance diagram for prk::TransientSolver:
chi_physics::Solver ChiObject

Public Member Functions

 TransientSolver (const chi::InputParameters &params)
 
void Initialize () override
 
void Execute () override
 
void Step () override
 
void Advance () override
 
chi::ParameterBlock GetInfo (const chi::ParameterBlock &params) const override
 
double PopulationPrev () const
 
double PopulationNew () const
 
double Period () const
 
double TimePrev () const
 
double TimeNew () const
 
std::vector< double > SolutionPrev () const
 
std::vector< double > SolutionNew () const
 
void SetProperties (const chi::ParameterBlock &params) override
 
void SetRho (double value)
 
- Public Member Functions inherited from chi_physics::Solver
 Solver (std::string in_text_name)
 
 Solver (std::string in_text_name, std::initializer_list< BasicOption > in_options)
 
 Solver (const chi::InputParameters &params)
 
virtual ~Solver ()=default
 
std::string TextName () const
 
BasicOptionsGetBasicOptions ()
 
const BasicOptionsGetBasicOptions () const
 
std::vector< std::shared_ptr< FieldFunctionGridBased > > & GetFieldFunctions ()
 
const std::vector< std::shared_ptr< FieldFunctionGridBased > > & GetFieldFunctions () const
 
TimeStepperGetTimeStepper ()
 
const TimeStepperGetTimeStepper () const
 
virtual void Initialize ()
 
virtual void Execute ()
 
virtual void Step ()
 
virtual void Advance ()
 
virtual chi::ParameterBlock GetInfo (const chi::ParameterBlock &params) const
 
virtual void SetProperties (const chi::ParameterBlock &params)
 
chi::ParameterBlock GetInfoWithPreCheck (const chi::ParameterBlock &params) const
 
- Public Member Functions inherited from ChiObject
 ChiObject ()
 
 ChiObject (const chi::InputParameters &params)
 
void SetStackID (size_t stack_id)
 
size_t StackID () const
 
virtual void PushOntoStack (std::shared_ptr< ChiObject > &new_object)
 
virtual ~ChiObject ()=default
 

Static Public Member Functions

static chi::InputParameters GetInputParameters ()
 
- Static Public Member Functions inherited from chi_physics::Solver
static chi::InputParameters GetInputParameters ()
 
- Static Public Member Functions inherited from ChiObject
static chi::InputParameters GetInputParameters ()
 

Private Attributes

std::vector< double > lambdas_
 
std::vector< double > betas_
 
double gen_time_
 
double rho_
 
double source_strength_
 
std::string time_integration_
 
size_t num_precursors_
 
chi_math::DynamicMatrix< double > A_
 
chi_math::DynamicMatrix< double > I_
 
chi_math::DynamicVector< double > x_t_
 
chi_math::DynamicVector< double > x_tp1_
 
chi_math::DynamicVector< double > q_
 
double beta_ = 1.0
 
double period_tph_ = 0.0
 

Additional Inherited Members

- Protected Attributes inherited from chi_physics::Solver
BasicOptions basic_options_
 
std::vector< std::shared_ptr< FieldFunctionGridBased > > field_functions_
 
std::shared_ptr< TimeSteppertimestepper_ = nullptr
 

Detailed Description

General transient solver for point kinetics.

Definition at line 14 of file point_reactor_kinetics.h.

Constructor & Destructor Documentation

◆ TransientSolver()

prk::TransientSolver::TransientSolver ( const chi::InputParameters params)
explicit

Constructor.

Definition at line 68 of file point_reactor_kinetics.cc.

Member Function Documentation

◆ Advance()

void prk::TransientSolver::Advance ( )
overridevirtual

Advance time values function.

Reimplemented from chi_physics::Solver.

Definition at line 208 of file point_reactor_kinetics.cc.

◆ Execute()

void prk::TransientSolver::Execute ( )
overridevirtual

Execution function.

Reimplemented from chi_physics::Solver.

Definition at line 155 of file point_reactor_kinetics.cc.

◆ GetInfo()

chi::ParameterBlock prk::TransientSolver::GetInfo ( const chi::ParameterBlock params) const
overridevirtual

Generalized query for information supporting varying returns.

Reimplemented from chi_physics::Solver.

Definition at line 215 of file point_reactor_kinetics.cc.

◆ GetInputParameters()

chi::InputParameters prk::TransientSolver::GetInputParameters ( )
static

Sets input parameters.

Definition at line 19 of file point_reactor_kinetics.cc.

◆ Initialize()

void prk::TransientSolver::Initialize ( )
overridevirtual

Initialize function.

Reimplemented from chi_physics::Solver.

Definition at line 96 of file point_reactor_kinetics.cc.

◆ Period()

double prk::TransientSolver::Period ( ) const

Returns the period computed for the last time step.

Definition at line 255 of file point_reactor_kinetics.cc.

◆ PopulationNew()

double prk::TransientSolver::PopulationNew ( ) const

Returns the population at the next time step.

Definition at line 252 of file point_reactor_kinetics.cc.

◆ PopulationPrev()

double prk::TransientSolver::PopulationPrev ( ) const

Returns the population at the previous time step.

Definition at line 250 of file point_reactor_kinetics.cc.

◆ SetProperties()

void prk::TransientSolver::SetProperties ( const chi::ParameterBlock params)
overridevirtual

PRK Transient solver settable properties:

  • rho, The current reactivity

Parents:

Base solver settable properties:

  • dt, Timestep size
  • time, Current time

Reimplemented from chi_physics::Solver.

Definition at line 294 of file point_reactor_kinetics.cc.

◆ SetRho()

void prk::TransientSolver::SetRho ( double  value)

Sets the value of rho.

Definition at line 279 of file point_reactor_kinetics.cc.

◆ SolutionNew()

std::vector< double > prk::TransientSolver::SolutionNew ( ) const

Returns the solution at the next time step.

Definition at line 272 of file point_reactor_kinetics.cc.

◆ SolutionPrev()

std::vector< double > prk::TransientSolver::SolutionPrev ( ) const

Returns the solution at the previous time step.

Definition at line 267 of file point_reactor_kinetics.cc.

◆ Step()

void prk::TransientSolver::Step ( )
overridevirtual

Step function

Reimplemented from chi_physics::Solver.

Definition at line 167 of file point_reactor_kinetics.cc.

◆ TimeNew()

double prk::TransientSolver::TimeNew ( ) const

Returns the time computed for the next time step.

Definition at line 261 of file point_reactor_kinetics.cc.

◆ TimePrev()

double prk::TransientSolver::TimePrev ( ) const

Returns the time computed for the last time step.

Definition at line 258 of file point_reactor_kinetics.cc.

Field Documentation

◆ A_

chi_math::DynamicMatrix<double> prk::TransientSolver::A_
private

Definition at line 25 of file point_reactor_kinetics.h.

◆ beta_

double prk::TransientSolver::beta_ = 1.0
private

Definition at line 27 of file point_reactor_kinetics.h.

◆ betas_

std::vector<double> prk::TransientSolver::betas_
private

Definition at line 18 of file point_reactor_kinetics.h.

◆ gen_time_

double prk::TransientSolver::gen_time_
private

Definition at line 19 of file point_reactor_kinetics.h.

◆ I_

chi_math::DynamicMatrix<double> prk::TransientSolver::I_
private

Definition at line 25 of file point_reactor_kinetics.h.

◆ lambdas_

std::vector<double> prk::TransientSolver::lambdas_
private

Definition at line 17 of file point_reactor_kinetics.h.

◆ num_precursors_

size_t prk::TransientSolver::num_precursors_
private

Definition at line 24 of file point_reactor_kinetics.h.

◆ period_tph_

double prk::TransientSolver::period_tph_ = 0.0
private

Definition at line 28 of file point_reactor_kinetics.h.

◆ q_

chi_math::DynamicVector<double> prk::TransientSolver::q_
private

Definition at line 26 of file point_reactor_kinetics.h.

◆ rho_

double prk::TransientSolver::rho_
private

Definition at line 20 of file point_reactor_kinetics.h.

◆ source_strength_

double prk::TransientSolver::source_strength_
private

Definition at line 21 of file point_reactor_kinetics.h.

◆ time_integration_

std::string prk::TransientSolver::time_integration_
private

Definition at line 22 of file point_reactor_kinetics.h.

◆ x_t_

chi_math::DynamicVector<double> prk::TransientSolver::x_t_
private

Definition at line 26 of file point_reactor_kinetics.h.

◆ x_tp1_

chi_math::DynamicVector<double> prk::TransientSolver::x_tp1_
private

Definition at line 26 of file point_reactor_kinetics.h.


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