sixDoFRigidBodyMotion: write state including orientation

e.g.

6-DoF rigid body motion
    Centre of rotation: (0.5 0.449959005542 0.1)
    Centre of mass: (0.499992877433 0.449959005542 0.349999999899)
    Orientation: (0.999999999594 0 -2.84902661966e-05 0 1 0 2.84902661966e-05 0 0.999999999594)
    Linear velocity: (0 -0.0028756594439 0)
    Angular velocity: (0 -0.00244725501844 0)
This commit is contained in:
Henry
2014-09-10 15:56:54 +01:00
committed by Andrew Heather
parent 6a7f2f2969
commit bf7929d517

View File

@ -331,10 +331,12 @@ void Foam::sixDoFRigidBodyMotion::updateAcceleration
void Foam::sixDoFRigidBodyMotion::status() const void Foam::sixDoFRigidBodyMotion::status() const
{ {
Info<< "Centre of rotation: " << centreOfRotation() << nl Info<< "6-DoF rigid body motion" << nl
<< "Centre of mass: " << centreOfMass() << nl << " Centre of rotation: " << centreOfRotation() << nl
<< "Linear velocity: " << v() << nl << " Centre of mass: " << centreOfMass() << nl
<< "Angular velocity: " << omega() << " Orientation: " << orientation() << nl
<< " Linear velocity: " << v() << nl
<< " Angular velocity: " << omega()
<< endl; << endl;
} }