A base class for every main component of DEM system. More...
Public Member Functions | |
TypeInfo ("demComponent") | |
Type info. More... | |
demComponent (const word &name, systemControl &control) | |
construct from components More... | |
demComponent (const demComponent &)=delete | |
No copy constructor. More... | |
demComponent (demComponent &&)=delete | |
No move constructor. More... | |
demComponent & | operator= (const demComponent &)=delete |
No copy assignment. More... | |
demComponent & | operator= (demComponent &&)=delete |
No move assignment. More... | |
virtual | ~demComponent ()=default |
destructor More... | |
const auto & | control () const |
Const ref to systemControl. More... | |
auto & | control () |
Ref to systemControl. More... | |
real | dt () const |
Time step of integration. More... | |
real | currentTime () const |
Current simulation time. More... | |
const auto & | timers () const |
Const ref to timers. More... | |
auto & | timers () |
Ref to timers. More... | |
virtual bool | beforeTimeLoop () |
This is called before the start of time loop. More... | |
virtual bool | beforeIteration ()=0 |
This is called in time loop, before iterate. More... | |
virtual bool | iterate ()=0 |
This is called in time loop. More... | |
virtual bool | afterIteration ()=0 |
This is called in time loop, after iterate. More... | |
virtual bool | afterTimeLoop () |
This is called after the time loop. More... | |
Protected Attributes | |
word | componentName_ |
Name of the DEM component. More... | |
systemControl & | control_ |
Reference to systemControl. More... | |
Timers | timers_ |
All timers (if any) of this component. More... | |
A base class for every main component of DEM system.
This class provides abstraction at a very high level for any solver/utility that forces the derived component (i.e. particles, geometry, and etc) to advance over time when iterate is called in time a loop.
Definition at line 39 of file demComponent.hpp.
|
inline |
construct from components
Definition at line 62 of file demComponent.hpp.
|
delete |
No copy constructor.
|
delete |
No move constructor.
|
virtualdefault |
destructor
TypeInfo | ( | "demComponent" | ) |
Type info.
|
delete |
No copy assignment.
|
delete |
No move assignment.
|
inline |
Const ref to systemControl.
Definition at line 89 of file demComponent.hpp.
References demComponent::control_.
Referenced by particles::beforeIteration().
|
inline |
Ref to systemControl.
Definition at line 96 of file demComponent.hpp.
References demComponent::control_.
|
inline |
Time step of integration.
Definition at line 103 of file demComponent.hpp.
References demComponent::control_, timeControl::dt(), and systemControl::time().
|
inline |
Current simulation time.
Definition at line 110 of file demComponent.hpp.
References demComponent::control_, timeControl::currentTime(), and systemControl::time().
|
inline |
Const ref to timers.
Definition at line 117 of file demComponent.hpp.
References demComponent::timers_.
|
inline |
|
inlinevirtual |
This is called before the start of time loop.
Definition at line 131 of file demComponent.hpp.
References notImplementedFunction.
|
pure virtual |
This is called in time loop, before iterate.
Implemented in geometry, particles, sphereParticles, geometryMotion< MotionModelType >, and sphereInteraction< contactForceModel, geometryMotionModel, contactListType >.
|
pure virtual |
This is called in time loop.
Perform the main calculations when the component should evolve along time.
Implemented in sphereParticles, geometryMotion< MotionModelType >, and sphereInteraction< contactForceModel, geometryMotionModel, contactListType >.
|
pure virtual |
This is called in time loop, after iterate.
Implemented in geometry, sphereInteraction< contactForceModel, geometryMotionModel, contactListType >, sphereParticles, and geometryMotion< MotionModelType >.
|
inlinevirtual |
This is called after the time loop.
Definition at line 152 of file demComponent.hpp.
References notImplementedFunction.
|
protected |
Name of the DEM component.
Definition at line 46 of file demComponent.hpp.
|
protected |
Reference to systemControl.
Definition at line 49 of file demComponent.hpp.
Referenced by demComponent::control(), demComponent::currentTime(), and demComponent::dt().
|
protected |
All timers (if any) of this component.
Definition at line 52 of file demComponent.hpp.
Referenced by demComponent::timers().