Go to the documentation of this file.
21 #ifndef __multiRotatingAxis_hpp__
22 #define __multiRotatingAxis_hpp__
33 class multiRotatingAxisMotion;
123 while(parIndex != -1)
126 parentVel += ax.linTangentialVelocityPoint(p);
127 parIndex = ax.parentAxisIndex();
130 return parentVel + rotatingAxis::linTangentialVelocityPoint(p);
146 while(parIndex != -1)
150 parIndex = ax.parentAxisIndex();
FUNCTION_H bool write(const multiRotatingAxisMotion *axisMotion, dictionary &dict) const
Write to dictionary.
INLINE_FUNCTION_HD bool hasParent() const
Does this axis have a parent.
FUNCTION_H bool read(multiRotatingAxisMotion *axisMotion, const dictionary &dict)
Read from dictionary.
~multiRotatingAxis()=default
Destructor.
INLINE_FUNCTION_HD void set(const realx3 &lp1, const realx3 &lp2)
INLINE_FUNCTION_H void setAxisListPtr(multiRotatingAxis *axisList)
Set the pointer to the list of all axes.
INLINE_FUNCTION_HD bool isRotating() const
Is rotating.
Defines an axis of rotation that rotates around itself and rotates around another axis.
INLINE_FUNCTION_HD realx3 pointTangentialVel(const realx3 &p) const
Tangential velocity at point p.
INLINE_FUNCTION_HD multiRotatingAxis()
Empty Constructor.
An axis which rotates around itself at specified speed.
INLINE_FUNCTION_HD realx3 point2() const
void move(real dt)
Move the end points of the axis.
#define INLINE_FUNCTION_H
int32 parentAxisIndex_
Index of parent axis.
FUNCTION_HD multiRotatingAxis & operator=(const multiRotatingAxis &)=default
Copy assignment.
multiRotatingAxis * axisList_
This is device pointer to all axes.
Rotating axis motion model for walls.
INLINE_FUNCTION_HD realx3 point1() const
INLINE_FUNCTION_HD realx3 transferPoint(const realx3 &p, real dt) const
Translate point p for dt seconds based on the axis information.
#define INLINE_FUNCTION_HD
INLINE_FUNCTION_HD int32 parentAxisIndex() const
Return the index of parent axis.
Dictionary holds a set of data entries or sub-dictionaries that are enclosed in a curely braces or ar...
INLINE_FUNCTION_HD realx3 rotate(const realx3 &p, const line &ln, real theta)