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
|
(-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
|
||||||
|
|||||||
Reference in New Issue
Block a user