corrections for coupling

This commit is contained in:
hamidrezanorouzi
2022-12-30 17:33:56 +03:30
parent 853d50e96f
commit 7e858a116f
7 changed files with 164 additions and 114 deletions

View File

@ -26,7 +26,7 @@ Licence:
#include "VectorSingles.hpp"
#include "pointStructure.hpp"
namespace pFlow::coupling
namespace pFlow
{
class domainDistribute
@ -46,20 +46,17 @@ protected:
real maxBoundingBoxSize_;
int32 lastUpdateIter_ = 0;
int32 updateInterval_ = 1;
real domainExtension_ = 1.0;
using includeMask = typename pointStructure::activePointsHost;
void clcDomains(const std::vector<box>& domains);
public:
domainDistribute(
int32 numDomains,
const Vector<box>& domains_,
real maxBoundinBox);
const Vector<box>& domains,
real maxBoundingBox);
~domainDistribute()=default;
@ -77,6 +74,18 @@ public:
return numParInDomain_[di];
}
span<const int32> particlesInDomain(int32 di)const
{
return
span<const int32>(
particlesInDomains_[di].hostVectorAll().data(),
numParInDomain_[di]
);
}
bool changeDomainsSize(const std::vector<box>& domains);
//template<typename includeMask>
bool locateParticles(
ViewType1D<realx3,HostSpace> points, includeMask mask);