STYLE: use writeEntry(), beginBlock(), endBlock() methods

- use dictionary::get<..> instead of lookup in a few more places
This commit is contained in:
Mark Olesen
2020-04-23 16:17:38 +02:00
parent 81bd0aa09f
commit 79048eb68f
106 changed files with 421 additions and 410 deletions

View File

@ -6,7 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2011-2016 OpenFOAM Foundation
Copyright (C) 2015-2018 OpenCFD Ltd.
Copyright (C) 2015-2020 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -378,16 +378,17 @@ int main(int argc, char *argv[])
"from the body reference frame to the global "
"reference frame, i.e.:" << nl
<< "globalVector = orientation & bodyLocalVector"
<< endl;
<< nl;
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;
<< nl;
Info()
.writeEntry("mass", m)
.writeEntry("centreOfMass", cM)
.writeEntry("momentOfInertia", eVal)
.writeEntry("orientation", eVec.T());
}
if (calcAroundRefPt)