LBIBCell
|
The Base class for all Mass Solvers implementations This classes uses the recursive template idiom to automatically register child classes in the factory. To implement a solver inherit from this class and provide the same class as a template argument. Additionally, the class should provide a static member with the name which stores a unique name for the class. Preferentially, declare the constructor and the static member name private and make the BaseForceSolver a friend class of this. look at /c BaseCDESolver for an example. More...
#include <MassAbstractSolver.hpp>
Public Member Functions | |
std::string | getName () |
getName More... | |
Public Member Functions inherited from LbmLib::solver::MassAbstractSolver | |
virtual | ~MassAbstractSolver () |
~MassAbstractSolver virtual Destructor | |
virtual void | calculateMass (const std::vector< std::vector< nodes::PhysicalNode * > > &fluidGrid)=0 |
the virtual method which calculates the masses on the Geometry Nodes More... | |
Protected Member Functions | |
BaseMassSolver () | |
BaseMassSolver The Constructor which enforces that the specialisation is done. | |
virtual | ~BaseMassSolver () |
~BaseMassSolver virtual Destructor | |
Protected Member Functions inherited from LbmLib::solver::MassAbstractSolver | |
MassAbstractSolver () | |
protected Constructor only use create method for instantiation | |
Static Protected Member Functions | |
static MassAbstractSolver * | create () |
create Static constructor. A pointer to this function along with the name of the algorithm is registered with the Solver Factory. More... | |
static bool | init () |
init Registers the class in the Solver Factory More... | |
Static Protected Attributes | |
static bool | reg = BaseMassSolver<T>::init() |
reg True if registration was successful | |
The Base class for all Mass Solvers implementations This classes uses the recursive template idiom to automatically register child classes in the factory. To implement a solver inherit from this class and provide the same class as a template argument. Additionally, the class should provide a static member with the name which stores a unique name for the class. Preferentially, declare the constructor and the static member name private and make the BaseForceSolver a friend class of this. look at /c BaseCDESolver for an example.
Definition at line 77 of file MassAbstractSolver.hpp.
|
inlinestaticprotected |
create Static constructor. A pointer to this function along with the name of the algorithm is registered with the Solver Factory.
MassAbstractSolver
instance. Responsibility for allocated memory lies with the caller. Definition at line 107 of file MassAbstractSolver.hpp.
|
inlinevirtual |
getName
Implements LbmLib::solver::MassAbstractSolver.
Definition at line 83 of file MassAbstractSolver.hpp.
|
inlinestaticprotected |
init Registers the class in the Solver Factory
Definition at line 119 of file MassAbstractSolver.hpp.