LineSource Family

class LineSource : public ProblemBase

Subclassed by LineSource_Moment, LineSource_SN

Public Functions

virtual double GetAnalyticalSolution(double x, double y, double t, double sigma_s) override

Exact analytical solution for the Line Source Test Case at.

Parameters:
  • x – coordinate of exact solution

  • y – coordinate of exact solution

  • t – time of the exact solution

  • sigma_s – scattering cross section of the exact solution

Returns:

exact solution at x,y,t,scatteringXS

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

Protected Attributes

Vector _sigmaS

Vector of scattering crosssections.

Vector _sigmaT

Vector of total crosssections.

Private Functions

double HelperIntRho_ptc(double R, double t)

Helper Functions to compute the analytic solution for sigma != 0 (See publication: Garret,Hauck; Momentum Closures for Linear Kinetic Transport Equations)

Parameters:
  • R – distance to origin

  • t – time

double HelperRho_ptc(double R, double t)

helper to comput analytic line source solution.

Parameters:
  • R – distance to origin

  • t – time

double HelperRho_ptc1(double R, double t)

helper to comput analytic line source solution.

Parameters:
  • R – distance to origin

  • t – time

double HelperRho_ptc2(double R, double t)

helper to comput analytic line source solution.

Parameters:
  • R – distance to origin

  • t – time

double HelperIntRho_ptc2(double t, double gamma)

helper to comput analytic line source solution

Parameters:
  • t – time

  • gamma – equals R/t

class LineSource_SN : public LineSource

Subclassed by LineSource_SN_1D

Public Functions

virtual VectorVector SetupIC() override

Setup the initial condition for the flux psi.

class LineSource_Moment : public LineSource

Subclassed by LineSource_Moment_1D

Public Functions

virtual VectorVector SetupIC() override

Setup the initial condition for the flux psi.

virtual std::vector<VectorVector> GetExternalSource(const Vector &energies) final 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

class LineSource_SN_1D : public LineSource_SN

Public Functions

virtual VectorVector SetupIC() override

Setup the initial condition for the flux psi.

class LineSource_Moment_1D : public LineSource_Moment

Public Functions

virtual VectorVector SetupIC() override

Setup the initial condition for the flux psi.