Go to the documentation of this file.
21 #ifndef __demComponent_hpp__
22 #define __demComponent_hpp__
demComponent(const word &name, systemControl &control)
construct from components
#define notImplementedFunction
Report that a function is yet not implemented.
const auto & control() const
Const ref to systemControl.
timeInfo TimeInfo() const
return time info of the simulaiton
virtual bool afterTimeLoop()
This is called after the time loop.
const auto & time() const
demComponent & operator=(const demComponent &)=delete
No copy assignment.
virtual bool afterIteration()=0
This is called in time loop, after iterate.
const auto & timers() const
Const ref to timers.
auto & control()
Ref to systemControl.
systemControl & control_
Reference to systemControl.
Timers timers_
All timers (if any) of this component.
uint32 currentIter() const
return current iteration number
A base class for every main component of DEM system.
virtual bool beforeTimeLoop()
This is called before the start of time loop.
virtual bool beforeIteration()=0
This is called in time loop, before iterate.
real currentTime() const
Current simulation time.
word componentName_
Name of the DEM component.
virtual ~demComponent()=default
destructor
TypeInfo("demComponent")
Type info.
real dt() const
Time step of integration.
auto & timers()
Ref to timers.
virtual bool iterate()=0
This is called in time loop.