Go to the documentation of this file.
21 #ifndef __vibratingMotion_hpp__
22 #define __vibratingMotion_hpp__
192 "component name " << name <<
" does not exist. \n";
212 "out of range access to the list of axes " << i <<
endl<<
259 #endif //__rotatingAxisMotion_hpp__
INLINE_FUNCTION_H int32 nameToIndex(const word &name) const
Name to component index.
INLINE_FUNCTION_HD bool isMoving() const
Is moving.
Vibrating motion model for walls.
FUNCTION_H bool read(iIstream &is)
Read from input stream is.
INLINE_FUNCTION_H void syncViews()
INLINE_FUNCTION_H realx3 transferPoint(label n, const realx3 p, real dt) const
Transfer point p for dt seconds based on motion component n.
TypeInfoNV("vibratingMotion")
Type info.
INLINE_FUNCTION_HD int32 numComponents() const
Motion model class to be passed to computational units/kernels for transfing points and returning vel...
INLINE_FUNCTION_H hostViewType & hostVectorAll()
INLINE_FUNCTION_HD Model & operator=(const Model &)=default
deviceViewType1D< vibrating > components_
iOstream & endl(iOstream &os)
Add newline and flush stream.
axisVector_HD components_
Vibrating motion components.
INLINE_FUNCTION_H void modifyOnHost()
Kokkos::View< T * > deviceViewType1D
INLINE_FUNCTION_H realx3 pointVelocity(label n, const realx3 &p) const
velocity at point p according to motion component n
label numComponents_
Number of components.
INLINE_FUNCTION_HD realx3 transferPoint(int32 n, const realx3 p, real dt) const
FUNCTION_H ~vibratingMotion()=default
Destructor.
int32 findi(const T &val) const
INLINE_FUNCTION_H deviceViewType & deviceVectorAll()
FUNCTION_H vibratingMotion & operator=(const vibratingMotion &)=default
Copy assignment.
bool readDictionary(const dictionary &dict)
Read from a dictionary.
#define fatalErrorInFunction
INLINE_FUNCTION_HD realx3 operator()(int32 n, const realx3 &p) const
INLINE_FUNCTION_HD realx3 pointVelocity(int32 n, const realx3 &p) const
INLINE_FUNCTION_H bool move(real t, real dt)
Move ponits at time t for dt seconds.
#define INLINE_FUNCTION_H
INLINE_FUNCTION_HD Model(deviceViewType1D< vibrating > comps, int32 numComps)
wordList componentName_
Names of components.
bool writeDictionary(dictionary &dict) const
Write to a dictionary.
FUNCTION_H vibratingMotion()
Empty.
#define INLINE_FUNCTION_HD
FUNCTION_H bool write(iOstream &os) const
Write to output stream os.
Model getModel(real t)
Return motion model at time t.
INLINE_FUNCTION_H word indexToName(label i) const
Index to name.