www.cemf.ir
demComponent.cpp
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 
21 #include "demComponent.hpp"
22 #include "systemControl.hpp"
23 #include "Time.hpp"
24 
26 :
27  control_(control),
28  time_(control.time()),
29  timers_(name, &control.timers()),
30  componentName_(name)
31 {}
32 
34 {
35  return time_.dt();
36 }
37 
39 {
40  return time_.currentTime();
41 }
42 
44 {
45  return time_.currentIter();
46 }
47 
49 {
50  return time_.TimeInfo();
51 }
pFlow::demComponent::demComponent
demComponent(const word &name, systemControl &control)
construct from components
Definition: demComponent.cpp:25
pFlow::real
float real
Definition: builtinTypes.hpp:45
pFlow::demComponent::TimeInfo
timeInfo TimeInfo() const
return time info of the simulaiton
Definition: demComponent.cpp:48
systemControl.hpp
pFlow::uint32
unsigned int uint32
Definition: builtinTypes.hpp:56
pFlow::word
std::string word
Definition: builtinTypes.hpp:64
pFlow::systemControl
Definition: systemControl.hpp:41
pFlow::timeInfo
Definition: timeInfo.hpp:28
pFlow::demComponent::currentIter
uint32 currentIter() const
return current iteration number
Definition: demComponent.cpp:43
Time.hpp
pFlow::demComponent::currentTime
real currentTime() const
Current simulation time.
Definition: demComponent.cpp:38
demComponent.hpp
pFlow::demComponent::dt
real dt() const
Time step of integration.
Definition: demComponent.cpp:33