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