diff --git a/src/cpu/core/BoundaryConditions/NonReflectingInflowBCStrategy.cpp b/src/cpu/core/BoundaryConditions/NonReflectingInflowBCStrategy.cpp index 19184eca2afa74c3457379564cd8b26f49053b4d..21340d08bbad1f96670b0184cd74a2efbe711938 100644 --- a/src/cpu/core/BoundaryConditions/NonReflectingInflowBCStrategy.cpp +++ b/src/cpu/core/BoundaryConditions/NonReflectingInflowBCStrategy.cpp @@ -36,6 +36,12 @@ #include "D3Q27System.h" #include "DistributionArray3D.h" +NonReflectingInflowBCStrategy::NonReflectingInflowBCStrategy() +{ + BCStrategy::type = BCStrategy::NonReflectingInflowBCStrategy; + BCStrategy::preCollision = true; +} +////////////////////////////////////////////////////////////////////////// NonReflectingInflowBCStrategy::NonReflectingInflowBCStrategy(LBMReal velocity, LBMReal relaxationRate) { BCStrategy::type = BCStrategy::NonReflectingInflowBCStrategy; @@ -102,7 +108,7 @@ void NonReflectingInflowBCStrategy::applyBC() calcMacrosFct(f, rho, vx1, vx2, vx3); //vx1 = 0.; //LBMReal BCVeloWeight = c1o2; - LBMReal BCVeloWeight =this->BCVeloWeight + LBMReal BCVeloWeight =this->BCVeloWeight; // LBMReal velocity = 0.004814077025232405; // LBMReal velocity = 0.00057735; //LBMReal velocity = 0.04; diff --git a/src/cpu/core/BoundaryConditions/NonReflectingInflowBCStrategy.h b/src/cpu/core/BoundaryConditions/NonReflectingInflowBCStrategy.h index 1395f3810cc2ea2faf84a4143d72981ee650b864..2019335b75f484451a33eda186a4b09a3fdae888 100644 --- a/src/cpu/core/BoundaryConditions/NonReflectingInflowBCStrategy.h +++ b/src/cpu/core/BoundaryConditions/NonReflectingInflowBCStrategy.h @@ -41,6 +41,7 @@ class DistributionArray3D; class NonReflectingInflowBCStrategy : public BCStrategy { public: + NonReflectingInflowBCStrategy(); NonReflectingInflowBCStrategy(LBMReal velocity, LBMReal relaxationRate); ~NonReflectingInflowBCStrategy() override; SPtr<BCStrategy> clone() override;