Skip to content
Snippets Groups Projects
Commit bf7929d5 authored by Henry's avatar Henry Committed by Andrew Heather
Browse files

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)
parent 6a7f2f29
No related merge requests found
......@@ -331,10 +331,12 @@ void Foam::sixDoFRigidBodyMotion::updateAcceleration
void Foam::sixDoFRigidBodyMotion::status() const
{
Info<< "Centre of rotation: " << centreOfRotation() << nl
<< "Centre of mass: " << centreOfMass() << nl
<< "Linear velocity: " << v() << nl
<< "Angular velocity: " << omega()
Info<< "6-DoF rigid body motion" << nl
<< " Centre of rotation: " << centreOfRotation() << nl
<< " Centre of mass: " << centreOfMass() << nl
<< " Orientation: " << orientation() << nl
<< " Linear velocity: " << v() << nl
<< " Angular velocity: " << omega()
<< endl;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment