mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Better output formatting, directly outputting
sixDoFRigidBodyDisplacement BC entries.
This commit is contained in:
@ -591,18 +591,27 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
if (showTransform)
|
if (showTransform)
|
||||||
{
|
{
|
||||||
Info<< "Transform tensor from reference state (Q). " << nl
|
Info<< "Transform tensor from reference state (orientation):" << nl
|
||||||
|
<< eVec.T() << nl
|
||||||
<< "Rotation tensor required to transform "
|
<< "Rotation tensor required to transform "
|
||||||
"from the body reference frame to the global "
|
"from the body reference frame to the global "
|
||||||
"reference frame, i.e.:" << nl
|
"reference frame, i.e.:" << nl
|
||||||
<< "globalVector = Q & bodyLocalVector"
|
<< "globalVector = orientation & bodyLocalVector"
|
||||||
<< nl << eVec.T()
|
<< endl;
|
||||||
|
|
||||||
|
Info<< nl
|
||||||
|
<< "Entries for sixDoFRigidBodyDisplacement boundary condition:"
|
||||||
|
<< nl
|
||||||
|
<< " mass " << m << token::END_STATEMENT << nl
|
||||||
|
<< " centreOfMass " << cM << token::END_STATEMENT << nl
|
||||||
|
<< " momentOfInertia " << eVal << token::END_STATEMENT << nl
|
||||||
|
<< " orientation " << eVec.T() << token::END_STATEMENT
|
||||||
<< endl;
|
<< endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (calcAroundRefPt)
|
if (calcAroundRefPt)
|
||||||
{
|
{
|
||||||
Info << "Inertia tensor relative to " << refPt << ": "
|
Info<< nl << "Inertia tensor relative to " << refPt << ": " << nl
|
||||||
<< applyParallelAxisTheorem(m, cM, J, refPt)
|
<< applyParallelAxisTheorem(m, cM, J, refPt)
|
||||||
<< endl;
|
<< endl;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user