Normal vector of wall is included into the wall velocity calculations

This commit is contained in:
Hamidreza
2025-07-22 13:54:23 +03:30
parent e62ba11a8d
commit c340040b40
14 changed files with 187 additions and 134 deletions

View File

@ -120,7 +120,7 @@ public:
/// Tangential velocity at point p
INLINE_FUNCTION_HD
realx3 pointTangentialVel(const realx3& p)const
realx3 pointTangentialVel(const realx3& p, const realx3& wallNormal)const
{
realx3 parentVel(0);
auto parIndex = parentAxisIndex();
@ -128,11 +128,11 @@ public:
while(parIndex != -1)
{
auto& ax = axisList_[parIndex];
parentVel += ax.linVelocityPoint(p);
parentVel += ax.linVelocityPoint(p, wallNormal);
parIndex = ax.parentAxisIndex();
}
return parentVel + rotatingAxis::linVelocityPoint(p);
return parentVel + rotatingAxis::linVelocityPoint(p, wallNormal);
}
/// Translate point p for dt seconds based on the axis information