MotionModel folder completed

This commit is contained in:
Hamidreza Norouzi
2024-03-22 09:42:23 -07:00
parent f27fbdd82c
commit be56d8ee2e
16 changed files with 127 additions and 900 deletions

View File

@ -78,7 +78,7 @@ class multiRotatingAxis
{
protected:
/// This is either host/device pointer to all axes
/// This is device pointer to all axes
multiRotatingAxis* axisList_;
/// Index of parent axis
@ -170,7 +170,7 @@ public:
/// Set the pointer to the list of all axes.
/// This pointer is device pointer
INLINE_FUNCTION_H
void setAxisList(multiRotatingAxis* axisList)
void setAxisListPtr(multiRotatingAxis* axisList)
{
axisList_ = axisList;
}

View File

@ -129,7 +129,7 @@ public:
realx3 linVelocityPoint(const realx3 &p)const;
INLINE_FUNCTION_HD
realx3 transferPoint(const realx3 p, real dt);
realx3 transferPoint(const realx3 p, real dt)const;
// - IO operation

View File

@ -30,7 +30,7 @@ pFlow::realx3 pFlow::rotatingAxis::linVelocityPoint(const realx3 &p)const
}
INLINE_FUNCTION_HD
pFlow::realx3 pFlow::rotatingAxis::transferPoint(const realx3 p, real dt)
pFlow::realx3 pFlow::rotatingAxis::transferPoint(const realx3 p, real dt)const
{
return rotate(p, *this, dt);
}

View File

@ -60,13 +60,13 @@ public:
{}
INLINE_FUNCTION_HD
realx3 linTangentialVelocityPoint(const realx3 &)const
realx3 linVelocityPoint(const realx3 &)const
{
return zero3;
}
INLINE_FUNCTION_HD
realx3 transferPoint(const realx3& p, real dt)
realx3 transferPoint(const realx3& p, real)const
{
return p;
}

View File

@ -117,13 +117,13 @@ public:
}
INLINE_FUNCTION_HD
realx3 linTangentialVelocityPoint(const realx3 &)const
realx3 linVelocityPoint(const realx3 &)const
{
return velocity_;
}
INLINE_FUNCTION_HD
realx3 transferPoint(const realx3& p, real dt)
realx3 transferPoint(const realx3& p, real dt)const
{
if(!inTimeRange()) return p;
return p + 0.5*dt*(velocity0_+velocity_);