linearSpring: Minor improvement in messages

This commit is contained in:
Henry Weller
2016-04-16 16:01:38 +01:00
parent 75c7b7b239
commit f78d929b3f

View File

@ -89,14 +89,12 @@ Foam::spatialVector Foam::RBD::restraints::linearSpring::restrain() const
(-stiffness_*(magR - restLength_) - damping_*(r & v))*r
);
vector moment
(
(attachmentPt - model_.X0(model_.master(bodyID_)).r()) ^ force
);
vector moment(attachmentPt ^ force);
if (model_.debug)
{
Info<< " attachmentPt - anchor " << r*magR
Info<< " attachmentPt " << attachmentPt
<< " attachmentPt - anchor " << r*magR
<< " spring length " << magR
<< " force " << force
<< " moment " << moment