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
const auto & control() const
Const ref to systemControl.
virtual bool afterTimeLoop()
This is called after the time loop.
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.
real dt() const
Time step of integration.
A base class for every main component of DEM system.
const Time & time() const
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.
auto & timers()
Ref to timers.
virtual bool iterate()=0
This is called in time loop.