Checkerboard Family
-
class Checkerboard_SN : public ProblemBase
Public Functions
-
virtual 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
-
virtual 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
-
virtual 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
-
virtual VectorVector SetupIC() override
Setup the initial condition for the flux psi.
-
virtual VectorVector GetScatteringXS(const Vector &energies) override
-
class Checkerboard_Moment : public ProblemBase
Public Functions
-
virtual 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
-
virtual 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
-
virtual 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
-
virtual VectorVector SetupIC() override
Setup the initial condition for the flux psi.
Private Functions
-
bool isAbsorption(const Vector &pos) const
- Returns:
True if pos is in absorption region, False otherwise
-
bool isSource(const Vector &pos) const
- Returns:
True if pos is in source region, False otherwise
-
int GlobalIndex(int l, int k) const
Gets the global index for given order l of Legendre polynomials and given order k of Legendre functions. Note: This is code doubling from PNSolver::GlobalIndex.
- Parameters:
l – order of Legendre polynomial
k – order of Legendre function
- Returns:
globalIndex
-
virtual VectorVector GetScatteringXS(const Vector &energies) override
-
class Checkerboard_SN_1D : public ProblemBase
Public Functions
-
virtual 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
-
virtual 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
-
virtual 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
-
virtual VectorVector SetupIC() override
Setup the initial condition for the flux psi.
-
virtual VectorVector GetScatteringXS(const Vector &energies) override
-
class Checkerboard_Moment_1D : public ProblemBase
Public Functions
-
virtual 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
-
virtual 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
-
virtual 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
-
virtual VectorVector SetupIC() override
Setup the initial condition for the flux psi.
Private Functions
-
bool isAbsorption(const Vector &pos) const
- Returns:
True if pos is in absorption region, False otherwise
-
bool isSource(const Vector &pos) const
- Returns:
True if pos is in source region, False otherwise
-
int GlobalIndex(int l, int k) const
Gets the global index for given order l of Legendre polynomials and given order k of Legendre functions. Note: This is code doubling from PNSolver::GlobalIndex.
- Parameters:
l – order of Legendre polynomial
k – order of Legendre function
- Returns:
globalIndex
-
virtual VectorVector GetScatteringXS(const Vector &energies) override