CSDSNSolver

Continuous slowing-down SN solver.

Source:

  • include/solvers/csdsnsolver.hpp

  • src/solvers/csdsnsolver.cpp

class CSDSNSolver : public SNSolver

Public Functions

CSDSNSolver(Config *settings)

CSDSolverTrafoFP2D constructor.

Parameters:

settings – stores all needed information

Private Functions

void GenerateEnergyGrid(bool refinement)

Output solution to VTK file (LEGACY. But not remove, to compare)

virtual void PrepareVolumeOutput() final override

Initializes the output groups and fields of this solver and names the fields.

virtual void WriteVolumeOutput(unsigned idx_pseudoTime) final override

Function that prepares VTK export and csv export of the current solver iteration.

Parameters:

idx_iter – current (pseudo) time iteration

virtual void FVMUpdate(unsigned idx_energy) final override

Computes the finite Volume update step for the current iteration.

Parameters:

idx_iter – current (peudo) time iteration

virtual void FluxUpdate() final override

Constructs the flux update for the current iteration and stores it in psiNew.

virtual void IterPreprocessing(unsigned idx_pseudotime) final override

Performs preprocessing for the current solver iteration.

Parameters:

idx_iter – current (peudo) time iteration

virtual void IterPostprocessing(unsigned idx_pseudotime) final override

Performs postprocessing for the current solver iteration.

virtual void SolverPreprocessing() final override

Performs preprocessing steps before the pseudo time iteration is started.

Private Members

std::vector<double> _dose

TODO.