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

@ -945,7 +945,7 @@ Foam::vector Foam::interfaceTrackingFvMesh::totalViscousForce() const
// "transportProperties"
// );
// dimensionedScalar nu(properties.lookup("nu"));
// dimensionedScalar nu("nu", properties);
const scalarField& S = aMesh().S();
const vectorField& n = aMesh().faceAreaNormals().internalField();
@ -1557,16 +1557,16 @@ Foam::interfaceTrackingFvMesh::interfaceTrackingFvMesh(const IOobject& io)
fsPatchIndex_(-1),
fixedFreeSurfacePatches_
(
motion().lookup("fixedFreeSurfacePatches")
motion().get<wordList>("fixedFreeSurfacePatches")
),
nonReflectingFreeSurfacePatches_(),
pointNormalsCorrectionPatches_
(
motion().lookup("pointNormalsCorrectionPatches")
motion().get<wordList>("pointNormalsCorrectionPatches")
),
normalMotionDir_
(
motion().lookup("normalMotionDir")
motion().get<bool>("normalMotionDir")
),
motionDir_(Zero),
smoothing_(motion().lookupOrDefault("smoothing", false)),
@ -1619,16 +1619,16 @@ Foam::interfaceTrackingFvMesh::interfaceTrackingFvMesh
fsPatchIndex_(-1),
fixedFreeSurfacePatches_
(
motion().lookup("fixedFreeSurfacePatches")
motion().get<wordList>("fixedFreeSurfacePatches")
),
nonReflectingFreeSurfacePatches_(),
pointNormalsCorrectionPatches_
(
motion().lookup("pointNormalsCorrectionPatches")
motion().get<wordList>("pointNormalsCorrectionPatches")
),
normalMotionDir_
(
motion().lookup("normalMotionDir")
motion().get<bool>("normalMotionDir")
),
motionDir_(Zero),
smoothing_(motion().lookupOrDefault("smoothing", false)),