LBIBCell
 All Classes Functions Variables Friends Pages
LbmLib::solver::CDEAbstractSolver Class Referenceabstract

The abstract base class for all CDESolvers. More...

#include <CDEAbstractSolver.hpp>

Inheritance diagram for LbmLib::solver::CDEAbstractSolver:
LbmLib::solver::AbstractSolver LbmLib::solver::BaseCDESolver< CDESolverD2Q4 > LbmLib::solver::BaseCDESolver< CDESolverD2Q5 > LbmLib::solver::BaseCDESolver< CDESolverD2Q5BMP > LbmLib::solver::BaseCDESolver< CDESolverD2Q5HH > LbmLib::solver::BaseCDESolver< DiracD2Q4 > LbmLib::solver::BaseCDESolver< DiracD2Q5 > LbmLib::solver::BaseCDESolver< SchnakenbergD2Q4u > LbmLib::solver::BaseCDESolver< SchnakenbergD2Q4v > LbmLib::solver::BaseCDESolver< SchnakenbergD2Q5u > LbmLib::solver::BaseCDESolver< SchnakenbergD2Q5v > LbmLib::solver::BaseCDESolver< tutorial_01_CDESolverD2Q5_SIGNAL > LbmLib::solver::BaseCDESolver< tutorial_02_CDESolverD2Q5_L > LbmLib::solver::BaseCDESolver< tutorial_02_CDESolverD2Q5_R > LbmLib::solver::BaseCDESolver< T >

Public Member Functions

virtual ~CDEAbstractSolver ()
 ~CDEAbstractSolver virtual Destructor
 
void initCDESolver (const nodes::PhysicalNode *physicalNode, size_t id)
 initCDESolver This connects the Solver with an physical node this should be executed before using this class More...
 
virtual double calculateEquilibrium (const Direction &dir)=0
 calculateEquilibrium calculates the equilibirum for direction dir More...
 
virtual double getC () const =0
 getC Calculates the concentration on this node More...
 
virtual void reinitialise ()=0
 reinitialise this solver iff the corresponding physical node has changed domain identifier
 
virtual std::string getName ()=0
 Get the name of the solver. More...
 
size_t getId ()
 return the id of this solver More...
 
- Public Member Functions inherited from LbmLib::solver::AbstractSolver
virtual ~AbstractSolver ()
 ~AbstractSolver Destructor
 
virtual void initSolver ()=0
 initSolver Use this to initalise the solver
 
virtual void collide ()=0
 collide The collision step of the LBM
 
virtual void advect ()=0
 advect The advect step of the LBM
 
virtual void loadSolver (std::stringstream *const stream)=0
 loads the solver from the stream More...
 
virtual void writeSolver (std::ostream *const stream)=0
 writes the solver to the stream More...
 
virtual double & accessDistribution (const Direction &dir)=0
 accessDistribution Access to the distribution More...
 
virtual void rescaleDistributions (const double factor)=0
 Rescales all distributions by a factor. More...
 
void setTau (double tau)
 setTau Setter method for the tau parameter of the solver More...
 
double getTau () const
 getTau Getter method for the tau parameter More...
 

Protected Member Functions

 CDEAbstractSolver ()
 CDEAbstractSolver protected Constructor only use create method for instantiation.
 
- Protected Member Functions inherited from LbmLib::solver::AbstractSolver
 AbstractSolver ()
 AbstractSolver Protected to disable direct instantiation.
 

Protected Attributes

const nodes::PhysicalNodephysicalNode_
 physicalNode_ The physical Node which owns this solver
 
size_t solverID_
 solverID_ The ID of the solver instance. Coincides with the index in the vector PhysicalNode::cdeSolvers_ (which stores all CDE solvers).
 

Detailed Description

The abstract base class for all CDESolvers.

Attention
Do not inherit from this class! Use class BaseCDESolver instead, as the latter class will register the class automatically

Definition at line 39 of file CDEAbstractSolver.hpp.

Member Function Documentation

size_t LbmLib::solver::CDEAbstractSolver::getId ( )

return the id of this solver

Returns
the id of this solver

Definition at line 38 of file CDEAbstractSolver.cpp.

void LbmLib::solver::CDEAbstractSolver::initCDESolver ( const nodes::PhysicalNode physicalNode,
size_t  id 
)

initCDESolver This connects the Solver with an physical node this should be executed before using this class

Parameters
physicalNodeThe node this solver is connected to.
idThe id of this solver

Definition at line 31 of file CDEAbstractSolver.cpp.


The documentation for this class was generated from the following files: