mirror of
https://github.com/PhasicFlow/phasicFlow.git
synced 2025-06-12 16:26:23 +00:00
Collision check and particlePosition -> random
- A new class is added for simple collision check - position particles in utility is upgraded - morton sorting is not active yet for particlesPhasicFlow
This commit is contained in:
@ -31,13 +31,13 @@ class positionOrdered
|
||||
:
|
||||
public positionParticles
|
||||
{
|
||||
protected:
|
||||
private:
|
||||
|
||||
dictionary poDict_;
|
||||
|
||||
real diameter_;
|
||||
|
||||
size_t numPoints_;
|
||||
uint32 numPoints_;
|
||||
|
||||
wordList axisOrder_;
|
||||
|
||||
@ -60,7 +60,7 @@ protected:
|
||||
public:
|
||||
|
||||
// - type Info
|
||||
TypeInfo("positionOrdered");
|
||||
TypeInfo("ordered");
|
||||
|
||||
positionOrdered(
|
||||
systemControl& control,
|
||||
@ -72,33 +72,33 @@ public:
|
||||
positionOrdered,
|
||||
dictionary);
|
||||
|
||||
virtual ~positionOrdered() = default;
|
||||
~positionOrdered() final = default;
|
||||
|
||||
//// - Methods
|
||||
|
||||
virtual uint64 numPoints()const
|
||||
uint32 numPoints()const final
|
||||
{
|
||||
return position_.size();
|
||||
return static_cast<uint32>(position_.size());
|
||||
}
|
||||
|
||||
virtual uint64 size()const
|
||||
uint32 size()const final
|
||||
{
|
||||
return position_.size();
|
||||
return static_cast<uint32>(position_.size());
|
||||
}
|
||||
|
||||
real maxDiameter() const override
|
||||
real maxDiameter() const final
|
||||
{
|
||||
return diameter_;
|
||||
}
|
||||
|
||||
// - const access to position
|
||||
virtual const realx3Vector& position()const
|
||||
const realx3Vector& position()const final
|
||||
{
|
||||
return position_;
|
||||
}
|
||||
|
||||
// - access to position
|
||||
virtual realx3Vector& position()
|
||||
realx3Vector& position() final
|
||||
{
|
||||
return position_;
|
||||
}
|
||||
|
Reference in New Issue
Block a user