mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
linearSpring: Minor improvement in messages
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user