mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: use writeEntry(), beginBlock(), endBlock() methods
- use dictionary::get<..> instead of lookup in a few more places
This commit is contained in:
@ -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)),
|
||||
|
||||
Reference in New Issue
Block a user