Go to the documentation of this file.
21 #ifndef __rotatingAxisMotion_hpp__
22 #define __rotatingAxisMotion_hpp__
98 return axis_[
n].linTangentialVelocityPoint(p);
192 "axis name " << name <<
" does not exist. \n";
212 "out of range access to the list of axes " << i <<
endl<<
247 #endif //__rotatingAxisMotion_hpp__
INLINE_FUNCTION_H bool move(real t, real dt)
Move.
INLINE_FUNCTION_H void syncViews()
INLINE_FUNCTION_HD realx3 operator()(int32 n, const realx3 &p) const
FUNCTION_H bool write(iOstream &os) const
Write to output stream os.
Rotating axis motion model for walls.
INLINE_FUNCTION_HD Model & operator=(const Model &)=default
FUNCTION_H rotatingAxisMotion()
Empty.
INLINE_FUNCTION_H int32 nameToIndex(const word &name) const
Motion component name to index.
label numAxis_
Number of axes components.
TypeInfoNV("rotatingAxisMotion")
Type info.
iOstream & endl(iOstream &os)
bool writeDictionary(dictionary &dict) const
Write to dictionary.
INLINE_FUNCTION_H void modifyOnHost()
Kokkos::View< T * > deviceViewType1D
FUNCTION_H rotatingAxisMotion & operator=(const rotatingAxisMotion &)=default
Copy assignment.
FUNCTION_H ~rotatingAxisMotion()=default
Destructor.
int32 findi(const T &val) const
#define fatalErrorInFunction
INLINE_FUNCTION_HD realx3 transferPoint(int32 n, const realx3 p, real dt) const
#define INLINE_FUNCTION_H
INLINE_FUNCTION_HD bool isMoving() const
Are walls moving.
FUNCTION_H bool read(iIstream &is)
Read from input stream is.
INLINE_FUNCTION_HD realx3 pointVelocity(int32 n, const realx3 &p) const
axisVector_HD axis_
Vector to store axes.
INLINE_FUNCTION_HD realx3 rotate(const realx3 &p, const line &ln, real theta)
INLINE_FUNCTION_HD Model(deviceViewType1D< rotatingAxis > axis, int32 numAxis)
bool readDictionary(const dictionary &dict)
Read from dictionary.
Motion model class to be passed to computational units/kernels for transfing points and returning vel...
wordList axisName_
Names of axes.
Model getModel(real t)
Return the motion model at time t.
INLINE_FUNCTION_H deviceViewType & deviceVector()
deviceViewType1D< rotatingAxis > axis_
INLINE_FUNCTION_HD int32 numComponents() const
#define INLINE_FUNCTION_HD
INLINE_FUNCTION_H word indexToName(label i) const
Motion index to motion component name.