# PhasicFlow: src/phasicFlow/repository/Time/timeInfo.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.

timeInfo.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 __timeInfo__hpp_
#define __timeInfo__hpp_
#include "types.hpp"
namespace pFlow
{
class timeInfo
{
private:
uint32 currentIter_;
real currentTime_;
real dt_;
public:
timeInfo(uint32 cIter, real cTime, real dt)
: currentIter_(cIter),
currentTime_(cTime),
dt_(dt)
{
}
inline const real& t() const
{
return currentTime_;
}
inline const real& dt() const
{
return dt_;
}
inline const uint32& iter() const
{
return currentIter_;
}
};
} // namespace pFlow
#endif //__timeInfo__hpp_
pFlow::real
float real
Definition: builtinTypes.hpp:45
types.hpp
pFlow::timeInfo::timeInfo
timeInfo(uint32 cIter, real cTime, real dt)
Definition: timeInfo.hpp:40
pFlow::uint32
unsigned int uint32
Definition: builtinTypes.hpp:56
pFlow::timeInfo::dt_
real dt_
Definition: timeInfo.hpp:36
pFlow::timeInfo
Definition: timeInfo.hpp:28
pFlow
Definition: demGeometry.hpp:27
pFlow::timeInfo::dt
const real & dt() const
Definition: timeInfo.hpp:51
pFlow::timeInfo::currentIter_
uint32 currentIter_
Definition: timeInfo.hpp:32
pFlow::timeInfo::t
const real & t() const
Definition: timeInfo.hpp:47
pFlow::timeInfo::iter
const uint32 & iter() const
Definition: timeInfo.hpp:55
pFlow::timeInfo::currentTime_
real currentTime_
Definition: timeInfo.hpp:34