mirror of
https://github.com/PhasicFlow/phasicFlow.git
synced 2025-06-12 16:26:23 +00:00
pointStructure with boundaries, construction tested
This commit is contained in:
@ -76,6 +76,7 @@ pFlow::realx3Vector pFlow::positionParticles::sortByMortonCode(realx3Vector& pos
|
||||
|
||||
pFlow::positionParticles::positionParticles
|
||||
(
|
||||
systemControl& control,
|
||||
const dictionary& dict
|
||||
)
|
||||
{
|
||||
@ -95,6 +96,11 @@ pFlow::positionParticles::positionParticles
|
||||
{
|
||||
region_ = makeUnique<region<sphere>>(dict.subDict("sphere"));
|
||||
}
|
||||
else
|
||||
{
|
||||
region_ = makeUnique<region<box>>( control.domainDict().subDict("globalBox"));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -24,6 +24,7 @@ Licence:
|
||||
#include "virtualConstructor.hpp"
|
||||
#include "Vectors.hpp"
|
||||
#include "dictionary.hpp"
|
||||
#include "systemControl.hpp"
|
||||
|
||||
namespace pFlow
|
||||
{
|
||||
@ -118,7 +119,9 @@ public:
|
||||
// - type Info
|
||||
TypeInfo("positionParticles");
|
||||
|
||||
positionParticles(const dictionary& dict);
|
||||
positionParticles(
|
||||
systemControl& control,
|
||||
const dictionary& dict);
|
||||
|
||||
create_vCtor
|
||||
(
|
||||
@ -132,9 +135,9 @@ public:
|
||||
|
||||
//// - Methods
|
||||
|
||||
virtual label numPoints()const = 0;
|
||||
virtual uint64 numPoints()const = 0;
|
||||
|
||||
virtual label size()const = 0;
|
||||
virtual uint64 size()const = 0;
|
||||
|
||||
virtual real maxDiameter() const = 0;
|
||||
|
||||
|
Reference in New Issue
Block a user