Skip to content
Snippets Groups Projects
Commit 6f220323 authored by Hussein Alihussein's avatar Hussein Alihussein
Browse files

clean Inflow BC

parent 62bc4a98
No related branches found
No related tags found
2 merge requests!332Add TPMSRow Application.,!329Develop temp
...@@ -36,6 +36,12 @@ ...@@ -36,6 +36,12 @@
#include "D3Q27System.h" #include "D3Q27System.h"
#include "DistributionArray3D.h" #include "DistributionArray3D.h"
NonReflectingInflowBCStrategy::NonReflectingInflowBCStrategy()
{
BCStrategy::type = BCStrategy::NonReflectingInflowBCStrategy;
BCStrategy::preCollision = true;
}
//////////////////////////////////////////////////////////////////////////
NonReflectingInflowBCStrategy::NonReflectingInflowBCStrategy(LBMReal velocity, LBMReal relaxationRate) NonReflectingInflowBCStrategy::NonReflectingInflowBCStrategy(LBMReal velocity, LBMReal relaxationRate)
{ {
BCStrategy::type = BCStrategy::NonReflectingInflowBCStrategy; BCStrategy::type = BCStrategy::NonReflectingInflowBCStrategy;
...@@ -102,7 +108,7 @@ void NonReflectingInflowBCStrategy::applyBC() ...@@ -102,7 +108,7 @@ void NonReflectingInflowBCStrategy::applyBC()
calcMacrosFct(f, rho, vx1, vx2, vx3); calcMacrosFct(f, rho, vx1, vx2, vx3);
//vx1 = 0.; //vx1 = 0.;
//LBMReal BCVeloWeight = c1o2; //LBMReal BCVeloWeight = c1o2;
LBMReal BCVeloWeight =this->BCVeloWeight LBMReal BCVeloWeight =this->BCVeloWeight;
// LBMReal velocity = 0.004814077025232405; // LBMReal velocity = 0.004814077025232405;
// LBMReal velocity = 0.00057735; // LBMReal velocity = 0.00057735;
//LBMReal velocity = 0.04; //LBMReal velocity = 0.04;
......
...@@ -41,6 +41,7 @@ class DistributionArray3D; ...@@ -41,6 +41,7 @@ class DistributionArray3D;
class NonReflectingInflowBCStrategy : public BCStrategy class NonReflectingInflowBCStrategy : public BCStrategy
{ {
public: public:
NonReflectingInflowBCStrategy();
NonReflectingInflowBCStrategy(LBMReal velocity, LBMReal relaxationRate); NonReflectingInflowBCStrategy(LBMReal velocity, LBMReal relaxationRate);
~NonReflectingInflowBCStrategy() override; ~NonReflectingInflowBCStrategy() override;
SPtr<BCStrategy> clone() override; SPtr<BCStrategy> clone() override;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment