Particle insertion (domain check)

- Domain check is added to prevent points that are outside of internalDomainBox
This commit is contained in:
Hamidreza Norouzi
2024-04-13 01:41:11 -07:00
parent 9c2a9a81b0
commit 89d7e1f0ba
16 changed files with 109 additions and 27 deletions

View File

@ -39,6 +39,12 @@ pFlow::insertion::insertion(particles& prtcl)
readInsertionDict(*this);
}
const pFlow::pointStructure&
pFlow::insertion::pStruct() const
{
return particles_.pStruct();
}
bool
pFlow::insertion::read(iIstream& is, const IOPattern& iop)
{

View File

@ -27,6 +27,7 @@ namespace pFlow
// forward
class particles;
class pointStructure;
/**
* Base class for particle insertion
@ -88,6 +89,8 @@ public:
return particles_;
}
const pointStructure& pStruct()const;
inline bool readFromFile() const
{
return readFromFile_;