mirror of
https://github.com/PhasicFlow/phasicFlow.git
synced 2025-06-22 16:28:30 +00:00
MotionModel folder completed
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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_);
|
||||
|
Reference in New Issue
Block a user