mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: axisRotationMotion: fix angle specification
This commit is contained in:
@ -73,8 +73,6 @@ Foam::solidBodyMotionFunctions::axisRotationMotion::transformation() const
|
||||
{
|
||||
scalar t = time_.value();
|
||||
|
||||
// Motion around a centre of gravity
|
||||
|
||||
// Rotation around centre of gravity (in radians)
|
||||
vector omega
|
||||
(
|
||||
@ -84,10 +82,7 @@ Foam::solidBodyMotionFunctions::axisRotationMotion::transformation() const
|
||||
);
|
||||
|
||||
scalar magOmega = mag(omega);
|
||||
|
||||
scalar cosHalfTheta = cos(0.5*magOmega);
|
||||
|
||||
quaternion R(cosHalfTheta, omega/magOmega);
|
||||
quaternion R(omega/magOmega, magOmega);
|
||||
septernion TR(septernion(CofG_)*R*septernion(-CofG_));
|
||||
|
||||
Info<< "solidBodyMotionFunctions::axisRotationMotion::transformation(): "
|
||||
|
||||
Reference in New Issue
Block a user