22 #ifndef CDESOLVERD2Q5_HPP
23 #define CDESOLVERD2Q5_HPP
25 #include <LbmLib/include/solver/CDESolver/CDEAbstractSolver.hpp>
81 virtual double getC()
const;
92 virtual void loadSolver(std::stringstream*
const stream);
98 virtual void writeSolver(std::ostream*
const stream);
117 std::array<double, 5> distributions_;
126 static const std::string name;
131 #endif // CDESOLVERD2Q5_HPP
virtual void loadSolver(std::stringstream *const stream)
loads the solver from the file
The Base class for all CDESolver implementations This classes uses the recursive template idiom to au...
virtual double getC() const
getC Calculates the concentration on this node
virtual ~CDESolverD2Q5()
~CDESolverD2Q5 virtual Destructor
The CDEDirectionsIteratorD2Q5 class Provides methods to handle the Directions. Use the Function Direc...
virtual void initSolver()
initSolver Use this to initalise the solver
virtual void collide()
collide The collision step of the LBM
the cde solver for the D2Q5 grid
virtual void reinitialise()
reinitialise this solver iff the corresponding physical node has switched domain
virtual void writeSolver(std::ostream *const stream)
writes the solver to the file
virtual double calculateEquilibrium(const Direction &dir)
calculateEquilibrium calculates the equilibirum for direction dir
virtual void rescaleDistributions(const double factor)
Rescales all distributions by a factor.
virtual void advect()
advect The advect step of the LBM
virtual double & accessDistribution(const Direction &dir)
accessDistribution Access to the distribution