22 #include <LbmLib/include/solver/MassSolver/MassSolverBoxOutlet.hpp>
23 #include <LbmLib/include/nodes/PhysicalNode.hpp>
24 #include <LbmLib/include/solver/CDESolver/CDEAbstractSolver.hpp>
25 #include <LbmLib/include/GlobalSimulationParameters.hpp>
26 #include <UtilLib/include/Log.hpp>
39 MassSolverBoxOutlet::MassSolverBoxOutlet() : BaseMassSolver()
43 const std::vector<std::vector<nodes::PhysicalNode*> >& fluidGrid) {
46 #pragma omp parallel for schedule(dynamic)
47 for (
size_t ity = 0; ity < fluidGrid.size(); ity++) {
48 scalingfactor = 1.0/fluidGrid[ity][0]->getFluidSolver().getRho();
49 fluidGrid[ity][0]->getFluidSolver().rescaleDistributions(scalingfactor);
52 for (
auto cdes = fluidGrid[ity][0]->getCDESolvers().begin();
53 cdes != fluidGrid[ity][0]->getCDESolvers().end();
55 (*cdes)->rescaleDistributions(scalingfactor);
60 #pragma omp parallel for schedule(dynamic)
61 for (
size_t itx = 0; itx <fluidGrid[0].size(); itx++) {
62 scalingfactor = 1.0/fluidGrid[0][itx]->getFluidSolver().getRho();
63 fluidGrid[0][itx]->getFluidSolver().rescaleDistributions(scalingfactor);
66 for (
auto cdes = fluidGrid[0][itx]->getCDESolvers().begin();
67 cdes != fluidGrid[0][itx]->getCDESolvers().end();
69 (*cdes)->rescaleDistributions(scalingfactor);
74 const std::string MassSolverBoxOutlet::name =
"MassSolverBoxOutlet";
virtual void calculateMass(const std::vector< std::vector< nodes::PhysicalNode * > > &fluidGrid)
The isopressure outflow boundary condition for the domain.