mirror of
https://github.com/PhasicFlow/phasicFlow.git
synced 2025-07-08 03:07:03 +00:00
Particle insertion (domain check)
- Domain check is added to prevent points that are outside of internalDomainBox
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
@ -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_;
|
||||
|
Reference in New Issue
Block a user