Skip to content
Snippets Groups Projects
Commit 831e429d authored by Henry Weller's avatar Henry Weller
Browse files

linearSpring: Minor improvement in messages

parent fc32d538
1 merge request!33Merge foundation
......@@ -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
......
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