Motion model abstract class (CRTP) for all the motion models. More...
Classes | |
class | ModelInterface |
Motion model class to be passed to computational units/kernels for transfing points and returning velocities at various positions. More... | |
Public Types | |
using | ModelType = Model |
using | ModelComponent = Component |
using | ComponentVector_D = VectorSingle< ModelComponent > |
Public Member Functions | |
MotionModel () | |
Empty. More... | |
MotionModel (const MotionModel &)=default | |
Copy constructor. More... | |
MotionModel (MotionModel &&)=default | |
Move constructor. More... | |
MotionModel & | operator= (const MotionModel &)=default |
Copy assignment. More... | |
MotionModel & | operator= (MotionModel &&)=default |
No move assignment. More... | |
~MotionModel ()=default | |
Destructor. More... | |
bool | nameToIndex (const word &name, uint32 &idx) const |
name of the compoenent to index of the component More... | |
bool | indexToName (uint32 idx, word &name) const |
Component index to motion component name. More... | |
const wordList & | componentNames () const |
Return a const reference to the list of compoenent names. More... | |
bool | isMoving () const |
Is the wall assocciated to this motion component moving? More... | |
bool | move (uint32 iter, real t, real dt) |
Move the component itself. More... | |
auto | getModelInterface (uint32 iter, real t, real dt) const |
Obtain an object to model interface. More... | |
Protected Member Functions | |
auto & | getModel () |
obtain a reference to the actual motion model More... | |
const auto & | getModel () const |
Obtain a const reference to the actual motion model. More... | |
auto | impl_noneComponent () const |
Return a none object for the motion model. More... | |
bool | impl_nameToIndex (const word &name, uint32 &idx) const |
Name of the compoenent to index of the component. More... | |
bool | impl_indexToName (uint32 i, word &name) const |
Component index to motion component name. More... | |
const wordList & | impl_componentNames () const |
const reference to the list of component names More... | |
auto | impl_getModelInterface (uint32 iter, real t, real dt) const |
Return model interface. More... | |
bool | impl_readDictionary (const dictionary &dict) |
Read from dictionary. More... | |
bool | impl_writeDictionary (dictionary &dict) const |
Write to dictionary. More... | |
Private Attributes | |
friend | ModelType |
uint32 | numComponents_ = 0 |
Number of axes components. More... | |
ComponentVector_D | motionComponents_ |
Vector to store motion components. More... | |
wordList | componentNames_ |
Names of compoenents. More... | |
Motion model abstract class (CRTP) for all the motion models.
Definition at line 39 of file MotionModel.hpp.
using ModelType = Model |
Definition at line 43 of file MotionModel.hpp.
using ModelComponent = Component |
Definition at line 45 of file MotionModel.hpp.
using ComponentVector_D = VectorSingle<ModelComponent> |
Definition at line 47 of file MotionModel.hpp.
Empty.
Definition at line 144 of file MotionModel.cpp.
|
default |
Copy constructor.
|
default |
Move constructor.
|
default |
Destructor.
|
inlineprotected |
obtain a reference to the actual motion model
Definition at line 130 of file MotionModel.hpp.
Referenced by MotionModel< rotatingAxisMotion, rotatingAxis >::componentNames(), MotionModel< rotatingAxisMotion, rotatingAxis >::getModelInterface(), MotionModel< rotatingAxisMotion, rotatingAxis >::impl_getModelInterface(), MotionModel< rotatingAxisMotion, rotatingAxis >::indexToName(), MotionModel< rotatingAxisMotion, rotatingAxis >::isMoving(), MotionModel< rotatingAxisMotion, rotatingAxis >::move(), and MotionModel< rotatingAxisMotion, rotatingAxis >::nameToIndex().
|
inlineprotected |
Obtain a const reference to the actual motion model.
Definition at line 137 of file MotionModel.hpp.
|
inlineprotected |
Return a none object for the motion model.
Definition at line 144 of file MotionModel.hpp.
Name of the compoenent to index of the component.
Definition at line 24 of file MotionModel.cpp.
Component index to motion component name.
Definition at line 40 of file MotionModel.cpp.
|
inlineprotected |
const reference to the list of component names
Definition at line 157 of file MotionModel.hpp.
Return model interface.
Definition at line 163 of file MotionModel.hpp.
|
inlineprotected |
Read from dictionary.
Definition at line 56 of file MotionModel.cpp.
|
inlineprotected |
Write to dictionary.
Definition at line 113 of file MotionModel.cpp.
|
default |
Copy assignment.
|
default |
No move assignment.
name of the compoenent to index of the component
Definition at line 203 of file MotionModel.hpp.
Component index to motion component name.
Definition at line 209 of file MotionModel.hpp.
|
inline |
Return a const reference to the list of compoenent names.
Definition at line 216 of file MotionModel.hpp.
|
inline |
Is the wall assocciated to this motion component moving?
Definition at line 222 of file MotionModel.hpp.
Move the component itself.
Definition at line 228 of file MotionModel.hpp.
Obtain an object to model interface.
Definition at line 234 of file MotionModel.hpp.
|
private |
Definition at line 115 of file MotionModel.hpp.
|
private |
Number of axes components.
Definition at line 118 of file MotionModel.hpp.
Referenced by MotionModel< rotatingAxisMotion, rotatingAxis >::impl_getModelInterface().
|
private |
Vector to store motion components.
Definition at line 121 of file MotionModel.hpp.
Referenced by MotionModel< rotatingAxisMotion, rotatingAxis >::impl_getModelInterface().
|
private |
Names of compoenents.
Definition at line 124 of file MotionModel.hpp.
Referenced by MotionModel< rotatingAxisMotion, rotatingAxis >::impl_componentNames().