changes to cellsWallLevel0 to narrow down the contact list for particle-wall

This commit is contained in:
Hamidreza Norouzi
2024-03-29 13:45:29 -07:00
parent 596ebb0262
commit 19d1ad343d
9 changed files with 83 additions and 48 deletions

View File

@ -56,12 +56,12 @@ public:
ContactSearch(
const dictionary& csDict,
const box& domain,
const box& extDomain,
const particles& prtcl,
const geometry& geom,
Timers& timers)
:
contactSearch(csDict, domain, prtcl, geom, timers)
contactSearch(csDict, extDomain, prtcl, geom, timers)
{
auto method = dict().getVal<word>("method");
@ -79,12 +79,13 @@ public:
uint32 wnTri = this->Geometry().size();
const auto& wPoints = this->Geometry().points().deviceViewAll();
const auto& wVertices = this->Geometry().vertices().deviceViewAll();
const auto& wNormals = this->Geometry().normals().deviceViewAll();
ppwContactSearch_ =
makeUnique<SearchMethodType>
(
nbDict,
this->domainBox(),
this->extendedDomainBox(),
minD,
maxD,
position,
@ -93,7 +94,8 @@ public:
wnPoints,
wnTri,
wPoints,
wVertices
wVertices,
wNormals
);
REPORT(2)<<"Contact search algorithm for particle-particle is "<<
Green_Text(ppwContactSearch_().typeName())<<END_REPORT;