SNSolver

class SNSolver : public SolverBase

Subclassed by CSDSNSolver

Public Functions

SNSolver(Config *settings)

SNSolver constructor.

Parameters
  • settings: stores all needed information

Protected Functions

void PrepareVolumeOutput() override

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

void WriteVolumeOutput(unsigned idx_pseudoTime) override

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

Parameters
  • idx_iter: current (pseudo) time iteration

void FVMUpdate(unsigned idx_energy) override

Computes the finite Volume update step for the current iteration.

Parameters
  • idx_iter: current (peudo) time iteration

void FluxUpdate() override

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

void IterPreprocessing(unsigned idx_pseudotime) override

Performs preprocessing for the current solver iteration.

Parameters
  • idx_iter: current (peudo) time iteration

void IterPostprocessing(unsigned idx_pseudotime) override

Performs postprocessing for the current solver iteration.

void ComputeRadFlux() override

Computes the flux of the solution to check conservation properties.

Protected Attributes

Matrix _scatteringKernel

scattering kernel for the quadrature

VectorVector _quadPoints

quadrature points, dim(_quadPoints) = (_nq,spatialDim)

Vector _weights

quadrature weights, dim(_weights) = (_nq)