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
Branches
Tags
1 merge request!33Merge foundation
...@@ -89,14 +89,12 @@ Foam::spatialVector Foam::RBD::restraints::linearSpring::restrain() const ...@@ -89,14 +89,12 @@ Foam::spatialVector Foam::RBD::restraints::linearSpring::restrain() const
(-stiffness_*(magR - restLength_) - damping_*(r & v))*r (-stiffness_*(magR - restLength_) - damping_*(r & v))*r
); );
vector moment vector moment(attachmentPt ^ force);
(
(attachmentPt - model_.X0(model_.master(bodyID_)).r()) ^ force
);
if (model_.debug) if (model_.debug)
{ {
Info<< " attachmentPt - anchor " << r*magR Info<< " attachmentPt " << attachmentPt
<< " attachmentPt - anchor " << r*magR
<< " spring length " << magR << " spring length " << magR
<< " force " << force << " force " << force
<< " moment " << moment << " 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