www.cemf.ir
timeInfo.hpp
Go to the documentation of this file.
1
/*------------------------------- phasicFlow ---------------------------------
2
O C enter of
3
O O E ngineering and
4
O O M ultiscale modeling of
5
OOOOOOO F luid flow
6
------------------------------------------------------------------------------
7
Copyright (C): www.cemf.ir
8
email: hamid.r.norouzi AT gmail.com
9
------------------------------------------------------------------------------
10
Licence:
11
This file is part of phasicFlow code. It is a free software for simulating
12
granular and multiphase flows. You can redistribute it and/or modify it under
13
the terms of GNU General Public License v3 or any other later versions.
14
15
phasicFlow is distributed to help others in their research in the field of
16
granular and multiphase flows, but WITHOUT ANY WARRANTY; without even the
17
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18
-----------------------------------------------------------------------------*/
19
20
#ifndef __timeInfo__hpp_
21
#define __timeInfo__hpp_
22
23
#include "
types.hpp
"
24
25
namespace
pFlow
26
{
27
28
class
timeInfo
29
{
30
private
:
31
32
uint32
currentIter_
;
33
34
real
currentTime_
;
35
36
real
dt_
;
37
38
public
:
39
40
timeInfo
(
uint32
cIter,
real
cTime,
real
dt
)
41
:
currentIter_
(cIter),
42
currentTime_
(cTime),
43
dt_
(
dt
)
44
{
45
}
46
47
inline
const
real
&
t
()
const
48
{
49
return
currentTime_
;
50
}
51
inline
const
real
&
dt
()
const
52
{
53
return
dt_
;
54
}
55
inline
const
uint32
&
iter
()
const
56
{
57
return
currentIter_
;
58
}
59
};
60
61
}
// namespace pFlow
62
63
#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
src
phasicFlow
repository
Time
timeInfo.hpp
Generated by
1.8.17