22 #include <LbmLib/include/solver/MassSolver/MassSolverSingleLayer.hpp>
23 #include <LbmLib/include/nodes/PhysicalNode.hpp>
24 #include <LbmLib/include/solver/CDESolver/CDEAbstractSolver.hpp>
25 #include <UtilLib/include/Log.hpp>
32 MassSolverSingleLayer::MassSolverSingleLayer() : BaseMassSolver()
36 const double massAddition = 0.0001;
40 const std::vector<std::vector<nodes::PhysicalNode*> >& fluidGrid) {
41 #pragma omp parallel for schedule(dynamic)
42 for (
unsigned int it = 0; it < fluidGrid.size(); it++) {
43 for (
unsigned int i = 0; i < fluidGrid[0].size(); i++) {
44 if (fluidGrid[it][i]->getDomainIdentifier() != 0) {
45 fluidGrid[it][i]->getFluidSolver().addMass(massAddition);
51 const std::string MassSolverSingleLayer::name =
"MassSolverSingleLayer";
virtual void calculateMass(const std::vector< std::vector< nodes::PhysicalNode * > > &fluidGrid)
calculates the mass on the pysical nodes