From 6f220323238198f5808881fd16f6fe2b4cb426f2 Mon Sep 17 00:00:00 2001 From: Hussein Alihussein <h.alihussein@tu-braunschweig.de> Date: Mon, 20 Nov 2023 08:29:14 +0100 Subject: [PATCH] clean Inflow BC --- .../BoundaryConditions/NonReflectingInflowBCStrategy.cpp | 8 +++++++- .../BoundaryConditions/NonReflectingInflowBCStrategy.h | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/cpu/core/BoundaryConditions/NonReflectingInflowBCStrategy.cpp b/src/cpu/core/BoundaryConditions/NonReflectingInflowBCStrategy.cpp index 19184eca2..21340d08b 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 1395f3810..2019335b7 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; -- GitLab