22 #include <LbmLib/include/solver/MassSolver/MassSolverSchnakenberg.hpp>
23 #include <LbmLib/include/nodes/PhysicalNode.hpp>
24 #include <LbmLib/include/solver/CDESolver/CDEAbstractSolver.hpp>
25 #include <UtilLib/include/Log.hpp>
32 MassSolverSchnakenberg::MassSolverSchnakenberg() : BaseMassSolver()
36 const double threshold = 4.0;
37 const double massAddition = 0.0001;
41 const std::vector<std::vector<nodes::PhysicalNode*> >& fluidGrid)
45 #pragma omp parallel for schedule(dynamic)
46 for (
unsigned int it = 0; it < fluidGrid.size(); it++) {
47 for (
unsigned int i = 0; i < fluidGrid[0].size(); i++) {
48 pn = fluidGrid[it][i];
57 const std::string MassSolverSchnakenberg::name =
"MassSolverSchnakenberg";
solver::CDEAbstractSolver & getCDESolverSlow(const std::string &name) const
getCDESolverSlow Getter method for the cde Solver
void addMass(double mass)
addMass The mass which is added to this fluid solver
class representing a physical node
virtual double getC() const =0
getC Calculates the concentration on this node
const solver::FluidSolver & getFluidSolver() const
getFluidSolver Const getter method for the fluid Solver
virtual void calculateMass(const std::vector< std::vector< nodes::PhysicalNode * > > &fluidGrid)
calculates the mass on the pysical nodes