rigidBodyModel: Removed g from the body acceleration
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2016-2022 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2016-2023 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -215,6 +215,7 @@ inline Foam::spatialVector Foam::RBD::rigidBodyModel::a
|
||||
) const
|
||||
{
|
||||
return
|
||||
(
|
||||
(
|
||||
spatialTransform
|
||||
(
|
||||
@ -222,6 +223,8 @@ inline Foam::spatialVector Foam::RBD::rigidBodyModel::a
|
||||
masterPoint(bodyID, p)
|
||||
)
|
||||
& a_[master(bodyID)]
|
||||
)
|
||||
+ spatialVector(Zero, g_)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2016-2021 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2016-2023 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -171,12 +171,15 @@ void Foam::RBD::rigidBodyMotion::status(const label bodyID) const
|
||||
{
|
||||
const spatialTransform CofR(X0(bodyID));
|
||||
const spatialVector vCofR(v(bodyID, Zero));
|
||||
const spatialVector aCofR(a(bodyID, Zero));
|
||||
|
||||
Info<< "Rigid-body motion of the " << name(bodyID) << nl
|
||||
<< " Centre of rotation: " << CofR.r() << nl
|
||||
<< " Orientation: " << CofR.E() << nl
|
||||
<< " Linear velocity: " << vCofR.l() << nl
|
||||
<< " Angular velocity: " << vCofR.w()
|
||||
<< " Angular velocity: " << vCofR.w() << nl
|
||||
<< " Linear acceleration: " << aCofR.l() << nl
|
||||
<< " Angular acceleration: " << aCofR.w()
|
||||
<< endl;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user