# PhasicFlow: utilities/particlesPhasicFlow/positionOrdered/positionOrdered.hpp Source File

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
{
protected:
dictionary poDict_;
real diameter_;
size_t 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("positionOrdered");
positionOrdered(const dictionary& dict);
// - add this class to vCtor selection table
add_vCtor(
positionParticles,
positionOrdered,
dictionary);
virtual ~positionOrdered() = default;
virtual label numPoints()const
{
return position_.size();
}
virtual label size()const
{
return position_.size();
}
real maxDiameter() const override
{
return diameter_;
}
// - const access to position
virtual const realx3Vector& position()const
{
return position_;
}
// - access to position
virtual realx3Vector& position()
{
return position_;
}
};
}
#endif // __positionOrdered_hpp__
pFlow::positionOrdered::axisOrder_
wordList axisOrder_
Definition: positionOrdered.hpp:42
pFlow::List< word >
pFlow::positionOrdered::positionOrdered
positionOrdered(const dictionary &dict)
Definition: positionOrdered.cpp:125
pFlow::real
float real
Definition: builtinTypes.hpp:46
pFlow::positionOrdered::position_
realx3Vector position_
Definition: positionOrdered.hpp:54
pFlow::positionOrdered::maxDiameter
real maxDiameter() const override
Definition: positionOrdered.hpp:87
pFlow::positionOrdered::findAxisIndex
bool findAxisIndex()
Definition: positionOrdered.cpp:28
pFlow::positionOrdered::positionPointsOrdered
bool positionPointsOrdered()
Definition: positionOrdered.cpp:80
pFlow::Vector::size
auto size() const
Definition: Vector.hpp:299
pFlow::positionOrdered::~positionOrdered
virtual ~positionOrdered()=default
pFlow::positionOrdered::uVector1_
realx3 uVector1_
Definition: positionOrdered.hpp:45
pFlow
Definition: demComponent.hpp:28
pFlow::positionOrdered::uVector2_
realx3 uVector2_
Definition: positionOrdered.hpp:48
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::positionOrdered::position
virtual const realx3Vector & position() const
Definition: positionOrdered.hpp:93
pFlow::positionParticles
Definition: positionParticles.hpp:102
pFlow::positionOrdered::uVector3_
realx3 uVector3_
Definition: positionOrdered.hpp:51
pFlow::label
std::size_t label
Definition: builtinTypes.hpp:61
pFlow::positionOrdered::poDict_
dictionary poDict_
Definition: positionOrdered.hpp:36
pFlow::positionOrdered::numPoints
virtual label numPoints() const
Definition: positionOrdered.hpp:77
pFlow::positionOrdered::position
virtual realx3Vector & position()
Definition: positionOrdered.hpp:99
pFlow::positionOrdered::size
virtual label size() const
Definition: positionOrdered.hpp:82
pFlow::triple< real >
pFlow::positionOrdered::TypeInfo
TypeInfo("positionOrdered")
pFlow::Vector< realx3 >
positionParticles.hpp
pFlow::dictionary
Definition: dictionary.hpp:38
pFlow::positionOrdered::numPoints_
size_t numPoints_
Definition: positionOrdered.hpp:40