Class WGDSA

Class Documentation

class WGDSA

Public Static Functions

static void Init(DiscreteOrdinatesProblem &do_problem, LBSGroupset &groupset, bool vaccum_bcs_are_dirichlet = true)

Initializes the Within-Group DSA solver.

static void AssembleDeltaPhiVector(DiscreteOrdinatesProblem &do_problem, const LBSGroupset &groupset, const std::vector<double> &phi_in, std::vector<double> &delta_phi_local)

Assembles a delta-phi vector on the first moment.

static void DisassembleDeltaPhiVector(DiscreteOrdinatesProblem &do_problem, const LBSGroupset &groupset, const std::vector<double> &delta_phi_local, std::vector<double> &ref_phi_new)

Disassembles a delta-phi vector on the first moment.

static void CleanUp(LBSGroupset &groupset)

Cleans up memory consuming items.

static std::vector<double> WGSCopyOnlyPhi0(DiscreteOrdinatesProblem &do_problem, const LBSGroupset &groupset, const std::vector<double> &phi_in)

Creates a vector from a lbs primary stl vector where only the scalar moments are mapped to the DOFs needed by WGDSA.

static void GSProjectBackPhi0(DiscreteOrdinatesProblem &do_problem, const LBSGroupset &groupset, const std::vector<double> &input, std::vector<double> &output)

From the WGDSA DOFs, projects the scalar moments back into a primary STL vector.