Checkerboard_SN

class Checkerboard_SN : public ProblemBase

Public Functions

VectorVector GetScatteringXS(const Vector &energies) override

GetScatteringXS gives back vector (each energy) of vectors (each grid cell) of scattering cross sections for materials defined by density and energies in vector energy.

Parameters
  • energies: is the energy the cross section is queried for

VectorVector GetTotalXS(const Vector &energies) override

GetTotalXS gives back vector of vectors of total cross sections for materials defined by density and energies in vector energy.

Parameters
  • energies: is the energy the cross section is queried for

std::vector<VectorVector> GetExternalSource(const Vector &energies) override

GetExternalSource gives back vector of vectors of source terms for each energy, cell and angle.

Parameters
  • energies: is the energy the cross section is queried for

VectorVector SetupIC() override

Setup the initial condition for the flux psi.

Private Functions

bool isAbsorption(const Vector &pos) const

Return

True if pos is in absorption region, False otherwise

bool isSource(const Vector &pos) const

Return

True if pos is in source region, False otherwise

Private Members

Vector _scatteringXS

Vector of scattering crosssections.

Vector _totalXS

Vector of total crosssections.