# PhasicFlow: src/phasicFlow/structuredData/pointStructure/pointStructure/pointSorting/pointSorting.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.

pointSorting.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 __pointSorting_hpp__
#define __pointSorting_hpp__
#include "baseTimeControl.hpp"
#include "indexContainer.hpp"
#include "pointFlag.hpp"
namespace pFlow
{
class box;
class pointSorting
{
private:
Logical performSorting_;
baseTimeControl timeControl_;
real dx_;
public:
explicit pointSorting(const dictionary& dict);
bool performSorting()const
{
return performSorting_();
}
bool sortTime(uint32 iter, real t, real dt)const
{
return performSorting_() && timeControl_.timeEvent(iter, t, dt);
}
uint32IndexContainer getSortedIndices(
const box& boundingBox,
const ViewType1D<realx3>& pos,
const pFlagTypeDevice& flag
)const;
};
}
#endif
pFlow::real
float real
Definition: builtinTypes.hpp:45
pFlow::pointSorting::getSortedIndices
uint32IndexContainer getSortedIndices(const box &boundingBox, const ViewType1D< realx3 > &pos, const pFlagTypeDevice &flag) const
Definition: pointSorting.cpp:45
pFlow::pointSorting::performSorting
bool performSorting() const
Definition: pointSorting.hpp:48
pFlow::uint32
unsigned int uint32
Definition: builtinTypes.hpp:56
pFlow::baseTimeControl::timeEvent
bool timeEvent(uint32 iter, real t, real dt) const
Definition: baseTimeControl.cpp:78
pFlow::pointSorting::timeControl_
baseTimeControl timeControl_
Definition: pointSorting.hpp:40
pFlow
Definition: demGeometry.hpp:27
pFlow::pointSorting::sortTime
bool sortTime(uint32 iter, real t, real dt) const
Definition: pointSorting.hpp:53
pFlow::pointSorting::pointSorting
pointSorting(const dictionary &dict)
Definition: pointSorting.cpp:24
pFlow::baseTimeControl
Definition: baseTimeControl.hpp:29
pFlow::pointSorting
Definition: pointSorting.hpp:34
baseTimeControl.hpp
pFlow::ViewType1D
Kokkos::View< T *, properties... > ViewType1D
1D veiw as a vector
Definition: KokkosTypes.hpp:93
pFlow::Logical
Holds a bool value and converts strings to bool.
Definition: Logical.hpp:39
pFlow::pointSorting::dx_
real dx_
Definition: pointSorting.hpp:42
pFlow::box
Definition: box.hpp:32
indexContainer.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
pFlow::pointFlag< DefaultExecutionSpace >
pFlow::indexContainer
It holds two vectors of indecis on Host and Device.
Definition: indexContainer.hpp:39
pointFlag.hpp
pFlow::pointSorting::performSorting_
Logical performSorting_
Definition: pointSorting.hpp:38