mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
use checkPeriodicCells flag from particleCloud
This commit is contained in:
@ -67,12 +67,8 @@ engineSearchIB::engineSearchIB
|
|||||||
engineSearch(dict.subDict(typeName + "Props"),sm),
|
engineSearch(dict.subDict(typeName + "Props"),sm),
|
||||||
propsDict_(dict.subDict(typeName + "Props")),
|
propsDict_(dict.subDict(typeName + "Props")),
|
||||||
zSplit_(readLabel(propsDict_.lookup("zSplit"))),
|
zSplit_(readLabel(propsDict_.lookup("zSplit"))),
|
||||||
xySplit_(readLabel(propsDict_.lookup("xySplit"))),
|
xySplit_(readLabel(propsDict_.lookup("xySplit")))
|
||||||
checkPeriodicCells_(false)
|
|
||||||
{
|
{
|
||||||
|
|
||||||
if(propsDict_.found("checkPeriodicCells")) checkPeriodicCells_=true;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -93,6 +89,7 @@ label engineSearchIB::findCell
|
|||||||
int size
|
int size
|
||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
|
bool checkPeriodicCells(particleCloud_.checkPeriodicCells());
|
||||||
const boundBox& globalBb = particleCloud_.mesh().bounds();
|
const boundBox& globalBb = particleCloud_.mesh().bounds();
|
||||||
|
|
||||||
vector position;
|
vector position;
|
||||||
@ -145,7 +142,7 @@ label engineSearchIB::findCell
|
|||||||
|
|
||||||
altStartPos=findSingleCell(pos,oldID); //particleCloud_.mesh().findCell(pos);//
|
altStartPos=findSingleCell(pos,oldID); //particleCloud_.mesh().findCell(pos);//
|
||||||
//check for periodic domains
|
//check for periodic domains
|
||||||
if(checkPeriodicCells_)
|
if(checkPeriodicCells)
|
||||||
{
|
{
|
||||||
for(int iDir=0;iDir<3;iDir++)
|
for(int iDir=0;iDir<3;iDir++)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -63,7 +63,6 @@ private:
|
|||||||
|
|
||||||
const label xySplit_;
|
const label xySplit_;
|
||||||
|
|
||||||
bool checkPeriodicCells_;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user