# PhasicFlow: utilities/particlesPhasicFlow/positionOrdered/positionOrdered.hpp Source File
PhasicFlow is an open-source parallel DEM (discrete element method) package for simulating granular flow. It is developed in C++ and can be exectued on both GPU (like CUDA) and CPU.

positionOrdered.hpp
Go to the documentation of this file.
/*------------------------------- phasicFlow ---------------------------------
O C enter of
O O E ngineering and
O O M ultiscale modeling of
OOOOOOO F luid flow
------------------------------------------------------------------------------
Copyright (C): www.cemf.ir
email: hamid.r.norouzi AT gmail.com
------------------------------------------------------------------------------
Licence:
This file is part of phasicFlow code. It is a free software for simulating
granular and multiphase flows. You can redistribute it and/or modify it under
the terms of GNU General Public License v3 or any other later versions.
phasicFlow is distributed to help others in their research in the field of
granular and multiphase flows, but WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-----------------------------------------------------------------------------*/
#ifndef __positionOrdered_hpp__
#define __positionOrdered_hpp__
#include "positionParticles.hpp"
namespace pFlow
{
class positionOrdered
:
public positionParticles
{
private:
dictionary poDict_;
real diameter_;
uint32 numPoints_;
wordList axisOrder_;
// - unit vector of the first axis
realx3 uVector1_;
// - unit vector of the second axis
realx3 uVector2_;
// - unit vector of the third axis
realx3 uVector3_;
realx3Vector position_;
bool findAxisIndex();
bool positionPointsOrdered();
public:
// - type Info
TypeInfo("ordered");
positionOrdered(
systemControl& control,
const dictionary& dict);
// - add this class to vCtor selection table
add_vCtor(
positionParticles,
positionOrdered,
dictionary);
~positionOrdered() final = default;
uint32 numPoints()const final
{
return static_cast< uint32 >(position_.size());
}
uint32 size()const final
{
return static_cast< uint32 >(position_.size());
}
real maxDiameter() const final
{
return diameter_;
}
// - const access to position
const realx3Vector& position()const final
{
return position_;
}
// - access to position
realx3Vector& position() final
{
return position_;
}
};
}
#endif // __positionOrdered_hpp__
pFlow::positionOrdered::axisOrder_
wordList axisOrder_
Definition: positionOrdered.hpp:42
pFlow::List< word >
pFlow::real
float real
Definition: builtinTypes.hpp:45
pFlow::positionOrdered::position_
realx3Vector position_
Definition: positionOrdered.hpp:54
pFlow::positionOrdered::findAxisIndex
bool findAxisIndex()
Definition: positionOrdered.cpp:26
pFlow::uint32
unsigned int uint32
Definition: builtinTypes.hpp:56
pFlow::positionOrdered::position
realx3Vector & position() final
Definition: positionOrdered.hpp:101
pFlow::systemControl
Definition: systemControl.hpp:41
pFlow::positionOrdered::positionPointsOrdered
bool positionPointsOrdered()
Definition: positionOrdered.cpp:78
pFlow::Vector::size
auto size() const
Size of the vector.
Definition: Vector.hpp:265
pFlow::positionOrdered::position
const realx3Vector & position() const final
Definition: positionOrdered.hpp:95
pFlow::positionOrdered::uVector1_
realx3 uVector1_
Definition: positionOrdered.hpp:45
pFlow::positionOrdered::TypeInfo
TypeInfo("ordered")
pFlow
Definition: demGeometry.hpp:27
pFlow::positionOrdered::uVector2_
realx3 uVector2_
Definition: positionOrdered.hpp:48
pFlow::positionOrdered::size
uint32 size() const final
Definition: positionOrdered.hpp:84
pFlow::positionOrdered::numPoints_
uint32 numPoints_
Definition: positionOrdered.hpp:40
pFlow::positionOrdered::numPoints
uint32 numPoints() const final
Definition: positionOrdered.hpp:79
pFlow::positionOrdered::~positionOrdered
~positionOrdered() final=default
pFlow::positionOrdered::diameter_
real diameter_
Definition: positionOrdered.hpp:38
pFlow::positionOrdered::add_vCtor
add_vCtor(positionParticles, positionOrdered, dictionary)
pFlow::positionOrdered
Definition: positionOrdered.hpp:30
pFlow::positionParticles
Definition: positionParticles.hpp:35
pFlow::positionOrdered::uVector3_
realx3 uVector3_
Definition: positionOrdered.hpp:51
pFlow::positionOrdered::poDict_
dictionary poDict_
Definition: positionOrdered.hpp:36
pFlow::positionOrdered::positionOrdered
positionOrdered(systemControl &control, const dictionary &dict)
Definition: positionOrdered.cpp:124
pFlow::positionOrdered::maxDiameter
real maxDiameter() const final
Definition: positionOrdered.hpp:89
pFlow::triple< real >
pFlow::Vector< realx3 >
positionParticles.hpp
pFlow::dictionary
Dictionary holds a set of data entries or sub-dictionaries that are enclosed in a curely braces or ar...
Definition: dictionary.hpp:67