dictionary label lookup: simplified syntax using the type templated lookup function
Replaced
readLabel(dict.lookup("name"))
with
dict.lookup<label>("name)
This commit is contained in:
@ -69,7 +69,7 @@
|
|||||||
// Remove the swirl component of velocity for "wedge" cases
|
// Remove the swirl component of velocity for "wedge" cases
|
||||||
if (pimple.dict().found("removeSwirl"))
|
if (pimple.dict().found("removeSwirl"))
|
||||||
{
|
{
|
||||||
label swirlCmpt(readLabel(pimple.dict().lookup("removeSwirl")));
|
label swirlCmpt(pimple.dict().lookup<label>("removeSwirl"));
|
||||||
|
|
||||||
Info<< "Removing swirl component-" << swirlCmpt << " of U" << endl;
|
Info<< "Removing swirl component-" << swirlCmpt << " of U" << endl;
|
||||||
U.field().replace(swirlCmpt, 0.0);
|
U.field().replace(swirlCmpt, 0.0);
|
||||||
|
|||||||
@ -891,7 +891,7 @@ void Foam::multiphaseMixtureThermo::solve()
|
|||||||
const Time& runTime = mesh_.time();
|
const Time& runTime = mesh_.time();
|
||||||
|
|
||||||
const dictionary& alphaControls = mesh_.solverDict("alpha");
|
const dictionary& alphaControls = mesh_.solverDict("alpha");
|
||||||
label nAlphaSubCycles(readLabel(alphaControls.lookup("nAlphaSubCycles")));
|
label nAlphaSubCycles(alphaControls.lookup<label>("nAlphaSubCycles"));
|
||||||
scalar cAlpha(readScalar(alphaControls.lookup("cAlpha")));
|
scalar cAlpha(readScalar(alphaControls.lookup("cAlpha")));
|
||||||
|
|
||||||
volScalarField& alpha = phases_.first();
|
volScalarField& alpha = phases_.first();
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
const dictionary& alphaControls = mesh.solverDict(alpha1.name());
|
const dictionary& alphaControls = mesh.solverDict(alpha1.name());
|
||||||
|
|
||||||
label nAlphaCorr(readLabel(alphaControls.lookup("nAlphaCorr")));
|
label nAlphaCorr(alphaControls.lookup<label>("nAlphaCorr"));
|
||||||
|
|
||||||
label nAlphaSubCycles(readLabel(alphaControls.lookup("nAlphaSubCycles")));
|
label nAlphaSubCycles(alphaControls.lookup<label>("nAlphaSubCycles"));
|
||||||
|
|
||||||
bool MULESCorr(alphaControls.lookupOrDefault<Switch>("MULESCorr", false));
|
bool MULESCorr(alphaControls.lookupOrDefault<Switch>("MULESCorr", false));
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
const dictionary& alphaControls = mesh.solverDict(alpha1.name());
|
const dictionary& alphaControls = mesh.solverDict(alpha1.name());
|
||||||
|
|
||||||
label nAlphaCorr(readLabel(alphaControls.lookup("nAlphaCorr")));
|
label nAlphaCorr(alphaControls.lookup<label>("nAlphaCorr"));
|
||||||
|
|
||||||
label nAlphaSubCycles(readLabel(alphaControls.lookup("nAlphaSubCycles")));
|
label nAlphaSubCycles(alphaControls.lookup<label>("nAlphaSubCycles"));
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
const dictionary& alphaControls = mesh.solverDict(alpha1.name());
|
const dictionary& alphaControls = mesh.solverDict(alpha1.name());
|
||||||
|
|
||||||
label nAlphaCorr(readLabel(alphaControls.lookup("nAlphaCorr")));
|
label nAlphaCorr(alphaControls.lookup<label>("nAlphaCorr"));
|
||||||
|
|
||||||
label nAlphaSubCycles(readLabel(alphaControls.lookup("nAlphaSubCycles")));
|
label nAlphaSubCycles(alphaControls.lookup<label>("nAlphaSubCycles"));
|
||||||
|
|
||||||
bool MULESCorr(alphaControls.lookupOrDefault<Switch>("MULESCorr", false));
|
bool MULESCorr(alphaControls.lookupOrDefault<Switch>("MULESCorr", false));
|
||||||
|
|
||||||
|
|||||||
@ -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) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -821,7 +821,7 @@ void Foam::multiphaseSystem::solve()
|
|||||||
const Time& runTime = mesh_.time();
|
const Time& runTime = mesh_.time();
|
||||||
|
|
||||||
const dictionary& alphaControls = mesh_.solverDict("alpha");
|
const dictionary& alphaControls = mesh_.solverDict("alpha");
|
||||||
label nAlphaSubCycles(readLabel(alphaControls.lookup("nAlphaSubCycles")));
|
label nAlphaSubCycles(alphaControls.lookup<label>("nAlphaSubCycles"));
|
||||||
|
|
||||||
if (nAlphaSubCycles > 1)
|
if (nAlphaSubCycles > 1)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -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) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -308,7 +308,7 @@ void Foam::multiphaseMixture::solve()
|
|||||||
volScalarField& alpha = phases_.first();
|
volScalarField& alpha = phases_.first();
|
||||||
|
|
||||||
const dictionary& alphaControls = mesh_.solverDict("alpha");
|
const dictionary& alphaControls = mesh_.solverDict("alpha");
|
||||||
label nAlphaSubCycles(readLabel(alphaControls.lookup("nAlphaSubCycles")));
|
label nAlphaSubCycles(alphaControls.lookup<label>("nAlphaSubCycles"));
|
||||||
scalar cAlpha(readScalar(alphaControls.lookup("cAlpha")));
|
scalar cAlpha(readScalar(alphaControls.lookup("cAlpha")));
|
||||||
|
|
||||||
if (nAlphaSubCycles > 1)
|
if (nAlphaSubCycles > 1)
|
||||||
|
|||||||
@ -27,7 +27,7 @@ License
|
|||||||
|
|
||||||
inline Foam::label Foam::diameterModels::populationBalanceModel::nCorr() const
|
inline Foam::label Foam::diameterModels::populationBalanceModel::nCorr() const
|
||||||
{
|
{
|
||||||
return mesh_.solverDict(name_).lookupType<label>("nCorr");
|
return mesh_.solverDict(name_).lookup<label>("nCorr");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -663,7 +663,7 @@ void Foam::multiphaseSystem::solve
|
|||||||
const Time& runTime = mesh_.time();
|
const Time& runTime = mesh_.time();
|
||||||
|
|
||||||
const dictionary& alphaControls = mesh_.solverDict("alpha");
|
const dictionary& alphaControls = mesh_.solverDict("alpha");
|
||||||
label nAlphaSubCycles(readLabel(alphaControls.lookup("nAlphaSubCycles")));
|
label nAlphaSubCycles(alphaControls.lookup<label>("nAlphaSubCycles"));
|
||||||
|
|
||||||
bool LTS = fv::localEulerDdt::enabled(mesh_);
|
bool LTS = fv::localEulerDdt::enabled(mesh_);
|
||||||
|
|
||||||
|
|||||||
@ -129,8 +129,8 @@ void Foam::twoPhaseSystem::solve
|
|||||||
|
|
||||||
const dictionary& alphaControls = mesh_.solverDict(alpha1.name());
|
const dictionary& alphaControls = mesh_.solverDict(alpha1.name());
|
||||||
|
|
||||||
label nAlphaSubCycles(readLabel(alphaControls.lookup("nAlphaSubCycles")));
|
label nAlphaSubCycles(alphaControls.lookup<label>("nAlphaSubCycles"));
|
||||||
label nAlphaCorr(readLabel(alphaControls.lookup("nAlphaCorr")));
|
label nAlphaCorr(alphaControls.lookup<label>("nAlphaCorr"));
|
||||||
|
|
||||||
bool LTS = fv::localEulerDdt::enabled(mesh_);
|
bool LTS = fv::localEulerDdt::enabled(mesh_);
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
const dictionary& alphaControls = mesh.solverDict(alpha1.name());
|
const dictionary& alphaControls = mesh.solverDict(alpha1.name());
|
||||||
|
|
||||||
label nAlphaSubCycles(readLabel(alphaControls.lookup("nAlphaSubCycles")));
|
label nAlphaSubCycles(alphaControls.lookup<label>("nAlphaSubCycles"));
|
||||||
|
|||||||
@ -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) 2013-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2013-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -361,8 +361,8 @@ void Foam::twoPhaseSystem::solve()
|
|||||||
alpha1.name()
|
alpha1.name()
|
||||||
);
|
);
|
||||||
|
|
||||||
label nAlphaSubCycles(readLabel(alphaControls.lookup("nAlphaSubCycles")));
|
label nAlphaSubCycles(alphaControls.lookup<label>("nAlphaSubCycles"));
|
||||||
label nAlphaCorr(readLabel(alphaControls.lookup("nAlphaCorr")));
|
label nAlphaCorr(alphaControls.lookup<label>("nAlphaCorr"));
|
||||||
|
|
||||||
word alphaScheme("div(phi," + alpha1.name() + ')');
|
word alphaScheme("div(phi," + alpha1.name() + ')');
|
||||||
word alpharScheme("div(phir," + alpha1.name() + ')');
|
word alpharScheme("div(phir," + alpha1.name() + ')');
|
||||||
|
|||||||
@ -54,7 +54,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
const scalar x0 = readScalar(dict.lookup("x0"));
|
const scalar x0 = readScalar(dict.lookup("x0"));
|
||||||
const scalar x1 = readScalar(dict.lookup("x1"));
|
const scalar x1 = readScalar(dict.lookup("x1"));
|
||||||
const label nX = readLabel(dict.lookup("nX"));
|
const label nX = dict.lookup<label>("nX");
|
||||||
const scalar dx = (x1 - x0)/(nX - 1);
|
const scalar dx = (x1 - x0)/(nX - 1);
|
||||||
const scalarField xs
|
const scalarField xs
|
||||||
(
|
(
|
||||||
|
|||||||
@ -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) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -681,8 +681,8 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
fileName surfName(refineDict.lookup("surface"));
|
fileName surfName(refineDict.lookup("surface"));
|
||||||
surfName.expand();
|
surfName.expand();
|
||||||
label nCutLayers(readLabel(refineDict.lookup("nCutLayers")));
|
label nCutLayers(refineDict.lookup<label>("nCutLayers"));
|
||||||
label cellLimit(readLabel(refineDict.lookup("cellLimit")));
|
label cellLimit(refineDict.lookup<label>("cellLimit"));
|
||||||
bool selectCut(readBool(refineDict.lookup("selectCut")));
|
bool selectCut(readBool(refineDict.lookup("selectCut")));
|
||||||
bool selectInside(readBool(refineDict.lookup("selectInside")));
|
bool selectInside(readBool(refineDict.lookup("selectInside")));
|
||||||
bool selectOutside(readBool(refineDict.lookup("selectOutside")));
|
bool selectOutside(readBool(refineDict.lookup("selectOutside")));
|
||||||
@ -693,7 +693,7 @@ int main(int argc, char *argv[])
|
|||||||
scalar curvature(readScalar(refineDict.lookup("curvature")));
|
scalar curvature(readScalar(refineDict.lookup("curvature")));
|
||||||
scalar curvDist(readScalar(refineDict.lookup("curvatureDistance")));
|
scalar curvDist(readScalar(refineDict.lookup("curvatureDistance")));
|
||||||
pointField outsidePts(refineDict.lookup("outsidePoints"));
|
pointField outsidePts(refineDict.lookup("outsidePoints"));
|
||||||
label refinementLimit(readLabel(refineDict.lookup("splitLevel")));
|
label refinementLimit(refineDict.lookup<label>("splitLevel"));
|
||||||
bool writeMesh(readBool(refineDict.lookup("writeMesh")));
|
bool writeMesh(readBool(refineDict.lookup("writeMesh")));
|
||||||
|
|
||||||
Info<< "Cells to be used for meshing (0=false, 1=true):" << nl
|
Info<< "Cells to be used for meshing (0=false, 1=true):" << nl
|
||||||
|
|||||||
@ -73,7 +73,7 @@ Foam::cv2DControls::cv2DControls
|
|||||||
|
|
||||||
maxBoundaryConformingIter_
|
maxBoundaryConformingIter_
|
||||||
(
|
(
|
||||||
readLabel(conformationControl_.lookup("maxBoundaryConformingIter"))
|
conformationControl_.lookup<label>("maxBoundaryConformingIter")
|
||||||
),
|
),
|
||||||
|
|
||||||
span_
|
span_
|
||||||
|
|||||||
@ -819,8 +819,8 @@ Foam::backgroundMeshDecomposition::backgroundMeshDecomposition
|
|||||||
(
|
(
|
||||||
coeffsDict.lookupOrDefault<scalar>("minCellSizeLimit", 0.0)
|
coeffsDict.lookupOrDefault<scalar>("minCellSizeLimit", 0.0)
|
||||||
),
|
),
|
||||||
minLevels_(readLabel(coeffsDict.lookup("minLevels"))),
|
minLevels_(coeffsDict.lookup<label>("minLevels")),
|
||||||
volRes_(readLabel(coeffsDict.lookup("sampleResolution"))),
|
volRes_(coeffsDict.lookup<label>("sampleResolution")),
|
||||||
maxCellWeightCoeff_(readScalar(coeffsDict.lookup("maxCellWeightCoeff")))
|
maxCellWeightCoeff_(readScalar(coeffsDict.lookup("maxCellWeightCoeff")))
|
||||||
{
|
{
|
||||||
if (!Pstream::parRun())
|
if (!Pstream::parRun())
|
||||||
|
|||||||
@ -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) 2012-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2012-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -73,7 +73,7 @@ Foam::fileControl::fileControl
|
|||||||
pointsFile_(controlFunctionDict.lookup("pointsFile")),
|
pointsFile_(controlFunctionDict.lookup("pointsFile")),
|
||||||
sizesFile_(controlFunctionDict.lookup("sizesFile")),
|
sizesFile_(controlFunctionDict.lookup("sizesFile")),
|
||||||
alignmentsFile_(controlFunctionDict.lookup("alignmentsFile")),
|
alignmentsFile_(controlFunctionDict.lookup("alignmentsFile")),
|
||||||
maxPriority_(readLabel(controlFunctionDict.lookup("priority")))
|
maxPriority_(controlFunctionDict.lookup<label>("priority"))
|
||||||
{
|
{
|
||||||
Info<< indent << "Loading " << name << " from file:" << nl
|
Info<< indent << "Loading " << name << " from file:" << nl
|
||||||
<< indent << " priority : " << maxPriority_ << nl
|
<< indent << " priority : " << maxPriority_ << nl
|
||||||
|
|||||||
@ -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) 2012-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2012-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -62,7 +62,7 @@ Foam::cellSizeFunction::cellSizeFunction
|
|||||||
defaultCellSize_(defaultCellSize),
|
defaultCellSize_(defaultCellSize),
|
||||||
regionIndices_(regionIndices),
|
regionIndices_(regionIndices),
|
||||||
sideMode_(),
|
sideMode_(),
|
||||||
priority_(readLabel(cellSizeFunctionDict.lookup("priority", true)))
|
priority_(cellSizeFunctionDict.lookup<label>("priority", true))
|
||||||
{
|
{
|
||||||
word mode = cellSizeFunctionDict.lookup("mode", true);
|
word mode = cellSizeFunctionDict.lookup("mode", true);
|
||||||
|
|
||||||
|
|||||||
@ -754,7 +754,7 @@ Foam::conformalVoronoiMesh::createPolyMeshFromPoints
|
|||||||
|
|
||||||
forAll(patches, p)
|
forAll(patches, p)
|
||||||
{
|
{
|
||||||
label totalPatchSize = readLabel(patchDicts[p].lookup("nFaces"));
|
label totalPatchSize = patchDicts[p].lookup<label>("nFaces");
|
||||||
|
|
||||||
if
|
if
|
||||||
(
|
(
|
||||||
@ -1741,7 +1741,7 @@ void Foam::conformalVoronoiMesh::createFacesOwnerNeighbourAndPatches
|
|||||||
procNeighbours[patchi] =
|
procNeighbours[patchi] =
|
||||||
(
|
(
|
||||||
patchDicts[patchi].found("neighbProcNo")
|
patchDicts[patchi].found("neighbProcNo")
|
||||||
? readLabel(patchDicts[patchi].lookup("neighbProcNo"))
|
? patchDicts[patchi].lookup<label>("neighbProcNo")
|
||||||
: -1
|
: -1
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -2368,7 +2368,7 @@ void Foam::conformalVoronoiMesh::createFacesOwnerNeighbourAndPatches
|
|||||||
const label neighbour =
|
const label neighbour =
|
||||||
(
|
(
|
||||||
patchDicts[nbI].found("neighbProcNo")
|
patchDicts[nbI].found("neighbProcNo")
|
||||||
? readLabel(patchDicts[nbI].lookup("neighbProcNo"))
|
? patchDicts[nbI].lookup<label>("neighbProcNo")
|
||||||
: -1
|
: -1
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -155,7 +155,7 @@ void Foam::conformalVoronoiMesh::writeMesh(const fileName& instance)
|
|||||||
forAll(dualPatchStarts, patchi)
|
forAll(dualPatchStarts, patchi)
|
||||||
{
|
{
|
||||||
dualPatchStarts[patchi] =
|
dualPatchStarts[patchi] =
|
||||||
readLabel(patchDicts[patchi].lookup("startFace"));
|
patchDicts[patchi].lookup<label>("startFace");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -436,8 +436,8 @@ Foam::autoPtr<Foam::fvMesh> Foam::conformalVoronoiMesh::createDummyMesh
|
|||||||
0, // patchStarts[p],
|
0, // patchStarts[p],
|
||||||
patchi,
|
patchi,
|
||||||
mesh.boundaryMesh(),
|
mesh.boundaryMesh(),
|
||||||
readLabel(patchDicts[patchi].lookup("myProcNo")),
|
patchDicts[patchi].lookup<label>("myProcNo"),
|
||||||
readLabel(patchDicts[patchi].lookup("neighbProcNo")),
|
patchDicts[patchi].lookup<label>("neighbProcNo"),
|
||||||
coupledPolyPatch::COINCIDENTFULLMATCH
|
coupledPolyPatch::COINCIDENTFULLMATCH
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -485,10 +485,10 @@ void Foam::conformalVoronoiMesh::checkProcessorPatchesMatch
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
const label procNeighb =
|
const label procNeighb =
|
||||||
readLabel(patchDicts[patchi].lookup("neighbProcNo"));
|
patchDicts[patchi].lookup<label>("neighbProcNo");
|
||||||
|
|
||||||
procPatchSizes[Pstream::myProcNo()][procNeighb]
|
procPatchSizes[Pstream::myProcNo()][procNeighb]
|
||||||
= readLabel(patchDicts[patchi].lookup("nFaces"));
|
= patchDicts[patchi].lookup<label>("nFaces");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -643,8 +643,8 @@ void Foam::conformalVoronoiMesh::reorderProcessorPatches
|
|||||||
SubList<face>
|
SubList<face>
|
||||||
(
|
(
|
||||||
faces,
|
faces,
|
||||||
readLabel(patchDicts[patchi].lookup("nFaces")),
|
patchDicts[patchi].lookup<label>("nFaces"),
|
||||||
readLabel(patchDicts[patchi].lookup("startFace"))
|
patchDicts[patchi].lookup<label>("startFace")
|
||||||
),
|
),
|
||||||
points
|
points
|
||||||
)
|
)
|
||||||
@ -666,9 +666,9 @@ void Foam::conformalVoronoiMesh::reorderProcessorPatches
|
|||||||
if (isA<processorPolyPatch>(pp))
|
if (isA<processorPolyPatch>(pp))
|
||||||
{
|
{
|
||||||
const label nPatchFaces =
|
const label nPatchFaces =
|
||||||
readLabel(patchDicts[patchi].lookup("nFaces"));
|
patchDicts[patchi].lookup<label>("nFaces");
|
||||||
const label patchStartFace =
|
const label patchStartFace =
|
||||||
readLabel(patchDicts[patchi].lookup("startFace"));
|
patchDicts[patchi].lookup<label>("startFace");
|
||||||
|
|
||||||
labelList patchFaceMap(nPatchFaces, label(-1));
|
labelList patchFaceMap(nPatchFaces, label(-1));
|
||||||
labelList patchFaceRotation(nPatchFaces, label(0));
|
labelList patchFaceRotation(nPatchFaces, label(0));
|
||||||
@ -783,7 +783,7 @@ void Foam::conformalVoronoiMesh::writeMesh
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const label nInternalFaces = readLabel(patchDicts[0].lookup("startFace"));
|
const label nInternalFaces = patchDicts[0].lookup<label>("startFace");
|
||||||
|
|
||||||
reorderPoints(points, boundaryPts, faces, nInternalFaces);
|
reorderPoints(points, boundaryPts, faces, nInternalFaces);
|
||||||
|
|
||||||
@ -831,7 +831,7 @@ void Foam::conformalVoronoiMesh::writeMesh
|
|||||||
|
|
||||||
forAll(patches, p)
|
forAll(patches, p)
|
||||||
{
|
{
|
||||||
label totalPatchSize = readLabel(patchDicts[p].lookup("nFaces"));
|
label totalPatchSize = patchDicts[p].lookup<label>("nFaces");
|
||||||
|
|
||||||
if
|
if
|
||||||
(
|
(
|
||||||
|
|||||||
@ -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) 2012-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2012-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -78,7 +78,7 @@ Foam::cvControls::cvControls
|
|||||||
surfaceConformationRebuildFrequency_ = max
|
surfaceConformationRebuildFrequency_ = max
|
||||||
(
|
(
|
||||||
1,
|
1,
|
||||||
readLabel(surfDict.lookup("surfaceConformationRebuildFrequency"))
|
surfDict.lookup<label>("surfaceConformationRebuildFrequency")
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -884,9 +884,9 @@ autoDensity::autoDensity
|
|||||||
(
|
(
|
||||||
detailsDict().lookupOrDefault<scalar>("minCellSizeLimit", 0.0)
|
detailsDict().lookupOrDefault<scalar>("minCellSizeLimit", 0.0)
|
||||||
),
|
),
|
||||||
minLevels_(readLabel(detailsDict().lookup("minLevels"))),
|
minLevels_(detailsDict().lookup<label>("minLevels")),
|
||||||
maxSizeRatio_(readScalar(detailsDict().lookup("maxSizeRatio"))),
|
maxSizeRatio_(readScalar(detailsDict().lookup("maxSizeRatio"))),
|
||||||
volRes_(readLabel(detailsDict().lookup("sampleResolution"))),
|
volRes_(detailsDict().lookup<label>("sampleResolution")),
|
||||||
surfRes_
|
surfRes_
|
||||||
(
|
(
|
||||||
detailsDict().lookupOrDefault<label>("surfaceSampleResolution", volRes_)
|
detailsDict().lookupOrDefault<label>("surfaceSampleResolution", volRes_)
|
||||||
|
|||||||
@ -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) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -432,7 +432,7 @@ int main(int argc, char *argv[])
|
|||||||
// Get requested numberOfSubdomains. Note: have no mesh yet so
|
// Get requested numberOfSubdomains. Note: have no mesh yet so
|
||||||
// cannot use decompositionModel::New
|
// cannot use decompositionModel::New
|
||||||
const label nDomains =
|
const label nDomains =
|
||||||
readLabel(IOdictionary(dictIO).lookup("numberOfSubdomains"));
|
IOdictionary(dictIO).lookup<label>("numberOfSubdomains");
|
||||||
|
|
||||||
// Give file handler a chance to determine the output directory
|
// Give file handler a chance to determine the output directory
|
||||||
const_cast<fileOperation&>(fileHandler()).setNProcs(nDomains);
|
const_cast<fileOperation&>(fileHandler()).setNProcs(nDomains);
|
||||||
|
|||||||
@ -352,7 +352,7 @@ void Foam::vtkPVFoam::updateInfoPatches
|
|||||||
{
|
{
|
||||||
const dictionary& patchDict = patchEntries[patchi].dict();
|
const dictionary& patchDict = patchEntries[patchi].dict();
|
||||||
|
|
||||||
sizes[patchi] = readLabel(patchDict.lookup("nFaces"));
|
sizes[patchi] = patchDict.lookup<label>("nFaces");
|
||||||
names[patchi] = patchEntries[patchi].keyword();
|
names[patchi] = patchEntries[patchi].keyword();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -11,8 +11,8 @@ IOdictionary propsDict
|
|||||||
|
|
||||||
const word cloudName(propsDict.lookup("cloudName"));
|
const word cloudName(propsDict.lookup("cloudName"));
|
||||||
|
|
||||||
label sampleFrequency(readLabel(propsDict.lookup("sampleFrequency")));
|
label sampleFrequency(propsDict.lookup<label>("sampleFrequency"));
|
||||||
|
|
||||||
label maxPositions(readLabel(propsDict.lookup("maxPositions")));
|
label maxPositions(propsDict.lookup<label>("maxPositions"));
|
||||||
|
|
||||||
word setFormat(propsDict.lookupOrDefault<word>("setFormat", "vtk"));
|
word setFormat(propsDict.lookupOrDefault<word>("setFormat", "vtk"));
|
||||||
|
|||||||
@ -10,9 +10,9 @@
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
const label nIntervals(readLabel(pdfDictionary.lookup("nIntervals")));
|
const label nIntervals(pdfDictionary.lookup<label>("nIntervals"));
|
||||||
|
|
||||||
const label nSamples(readLabel(pdfDictionary.lookup("nSamples")));
|
const label nSamples(pdfDictionary.lookup<label>("nSamples"));
|
||||||
|
|
||||||
const bool writeData(readBool(pdfDictionary.lookup("writeData")));
|
const bool writeData(readBool(pdfDictionary.lookup("writeData")));
|
||||||
|
|
||||||
|
|||||||
@ -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) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -210,16 +210,16 @@ void rewriteBoundary
|
|||||||
Info<< "Replaced with patches" << nl
|
Info<< "Replaced with patches" << nl
|
||||||
<< patches[patchi].keyword() << " with" << nl
|
<< patches[patchi].keyword() << " with" << nl
|
||||||
<< " nFaces : "
|
<< " nFaces : "
|
||||||
<< readLabel(thisPatchDict.lookup("nFaces"))
|
<< thisPatchDict.lookup<label>("nFaces")
|
||||||
<< nl
|
<< nl
|
||||||
<< " startFace : "
|
<< " startFace : "
|
||||||
<< readLabel(thisPatchDict.lookup("startFace")) << nl
|
<< thisPatchDict.lookup<label>("startFace") << nl
|
||||||
<< patches[addedPatchi].keyword() << " with" << nl
|
<< patches[addedPatchi].keyword() << " with" << nl
|
||||||
<< " nFaces : "
|
<< " nFaces : "
|
||||||
<< readLabel(nbrPatchDict.lookup("nFaces"))
|
<< nbrPatchDict.lookup<label>("nFaces")
|
||||||
<< nl
|
<< nl
|
||||||
<< " startFace : "
|
<< " startFace : "
|
||||||
<< readLabel(nbrPatchDict.lookup("startFace"))
|
<< nbrPatchDict.lookup<label>("startFace")
|
||||||
<< nl << endl;
|
<< nl << endl;
|
||||||
|
|
||||||
addedPatchi++;
|
addedPatchi++;
|
||||||
|
|||||||
@ -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) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -332,7 +332,7 @@ int main(int argc, char *argv[])
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
int nProcs(readInt(decompositionDict.lookup("numberOfSubdomains")));
|
const int nProcs(decompositionDict.lookup<int>("numberOfSubdomains"));
|
||||||
|
|
||||||
Info<< "Create target mesh\n" << endl;
|
Info<< "Create target mesh\n" << endl;
|
||||||
|
|
||||||
@ -411,7 +411,7 @@ int main(int argc, char *argv[])
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
int nProcs(readInt(decompositionDict.lookup("numberOfSubdomains")));
|
const int nProcs(decompositionDict.lookup<int>("numberOfSubdomains"));
|
||||||
|
|
||||||
Info<< "Create source mesh\n" << endl;
|
Info<< "Create source mesh\n" << endl;
|
||||||
|
|
||||||
@ -490,9 +490,9 @@ int main(int argc, char *argv[])
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
int nProcsSource
|
const int nProcsSource
|
||||||
(
|
(
|
||||||
readInt(decompositionDictSource.lookup("numberOfSubdomains"))
|
decompositionDictSource.lookup<int>("numberOfSubdomains")
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
@ -508,9 +508,9 @@ int main(int argc, char *argv[])
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
int nProcsTarget
|
const int nProcsTarget
|
||||||
(
|
(
|
||||||
readInt(decompositionDictTarget.lookup("numberOfSubdomains"))
|
decompositionDictTarget.lookup<int>("numberOfSubdomains")
|
||||||
);
|
);
|
||||||
|
|
||||||
List<boundBox> bbsTarget(nProcsTarget);
|
List<boundBox> bbsTarget(nProcsTarget);
|
||||||
|
|||||||
@ -52,7 +52,7 @@ Foam::functionObjects::FUNCTIONOBJECT::FUNCTIONOBJECT
|
|||||||
fvMeshFunctionObject(name, runTime, dict),
|
fvMeshFunctionObject(name, runTime, dict),
|
||||||
wordData_(dict.lookupOrDefault<word>("wordData", "defaultWord")),
|
wordData_(dict.lookupOrDefault<word>("wordData", "defaultWord")),
|
||||||
scalarData_(readScalar(dict.lookup("scalarData"))),
|
scalarData_(readScalar(dict.lookup("scalarData"))),
|
||||||
labelData_(readLabel(dict.lookup("labelData")))
|
labelData_(dict.lookup<label>("labelData"))
|
||||||
{
|
{
|
||||||
read(dict);
|
read(dict);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -380,7 +380,7 @@ public:
|
|||||||
// If recursive, search parent dictionaries.
|
// If recursive, search parent dictionaries.
|
||||||
// If patternMatch, use regular expressions.
|
// If patternMatch, use regular expressions.
|
||||||
template<class T>
|
template<class T>
|
||||||
T lookupType
|
T lookup
|
||||||
(
|
(
|
||||||
const word&,
|
const word&,
|
||||||
bool recursive=false,
|
bool recursive=false,
|
||||||
|
|||||||
@ -29,7 +29,7 @@ License
|
|||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
T Foam::dictionary::lookupType
|
T Foam::dictionary::lookup
|
||||||
(
|
(
|
||||||
const word& keyword,
|
const word& keyword,
|
||||||
bool recursive,
|
bool recursive,
|
||||||
|
|||||||
@ -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) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -45,8 +45,8 @@ Foam::IOerror::IOerror(const dictionary& errDict)
|
|||||||
:
|
:
|
||||||
error(errDict),
|
error(errDict),
|
||||||
ioFileName_(errDict.lookup("ioFileName")),
|
ioFileName_(errDict.lookup("ioFileName")),
|
||||||
ioStartLineNumber_(readLabel(errDict.lookup("ioStartLineNumber"))),
|
ioStartLineNumber_(errDict.lookup<label>("ioStartLineNumber")),
|
||||||
ioEndLineNumber_(readLabel(errDict.lookup("ioEndLineNumber")))
|
ioEndLineNumber_(errDict.lookup<label>("ioEndLineNumber"))
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -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) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -60,7 +60,7 @@ Foam::error::error(const dictionary& errDict)
|
|||||||
messageStream(errDict),
|
messageStream(errDict),
|
||||||
functionName_(errDict.lookup("functionName")),
|
functionName_(errDict.lookup("functionName")),
|
||||||
sourceFileName_(errDict.lookup("sourceFileName")),
|
sourceFileName_(errDict.lookup("sourceFileName")),
|
||||||
sourceFileLineNumber_(readLabel(errDict.lookup("sourceFileLineNumber"))),
|
sourceFileLineNumber_(errDict.lookup<label>("sourceFileLineNumber")),
|
||||||
abort_(env("FOAM_ABORT")),
|
abort_(env("FOAM_ABORT")),
|
||||||
throwExceptions_(false),
|
throwExceptions_(false),
|
||||||
messageStreamPtr_(new OStringStream())
|
messageStreamPtr_(new OStringStream())
|
||||||
|
|||||||
@ -158,7 +158,7 @@ void Foam::interpolationLookUpTable<Type>::dimensionTable()
|
|||||||
|
|
||||||
forAll(entries_,i)
|
forAll(entries_,i)
|
||||||
{
|
{
|
||||||
dim_[i] = readLabel(entries_[i].lookup("N"));
|
dim_[i] = entries_[i].template lookup<label>("N");
|
||||||
max_[i] = readScalar(entries_[i].lookup("max"));
|
max_[i] = readScalar(entries_[i].lookup("max"));
|
||||||
min_[i] = readScalar(entries_[i].lookup("min"));
|
min_[i] = readScalar(entries_[i].lookup("min"));
|
||||||
delta_[i] = (max_[i] - min_[i])/dim_[i];
|
delta_[i] = (max_[i] - min_[i])/dim_[i];
|
||||||
|
|||||||
@ -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) 2013-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2013-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -50,7 +50,7 @@ Foam::dummyAgglomeration::dummyAgglomeration
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
GAMGAgglomeration(mesh, controlDict),
|
GAMGAgglomeration(mesh, controlDict),
|
||||||
nLevels_(readLabel(controlDict.lookup("nLevels")))
|
nLevels_(controlDict.lookup<label>("nLevels"))
|
||||||
{
|
{
|
||||||
const label nCoarseCells = mesh.lduAddr().size();
|
const label nCoarseCells = mesh.lduAddr().size();
|
||||||
|
|
||||||
|
|||||||
@ -223,7 +223,7 @@ Foam::procFacesGAMGProcAgglomeration::procFacesGAMGProcAgglomeration
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
GAMGProcAgglomeration(agglom, controlDict),
|
GAMGProcAgglomeration(agglom, controlDict),
|
||||||
nAgglomeratingCells_(readLabel(controlDict.lookup("nAgglomeratingCells")))
|
nAgglomeratingCells_(controlDict.lookup<label>("nAgglomeratingCells"))
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -109,8 +109,8 @@ Foam::processorPolyPatch::processorPolyPatch
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
coupledPolyPatch(name, dict, index, bm, patchType),
|
coupledPolyPatch(name, dict, index, bm, patchType),
|
||||||
myProcNo_(readLabel(dict.lookup("myProcNo"))),
|
myProcNo_(dict.lookup<label>("myProcNo")),
|
||||||
neighbProcNo_(readLabel(dict.lookup("neighbProcNo"))),
|
neighbProcNo_(dict.lookup<label>("neighbProcNo")),
|
||||||
neighbFaceCentres_(),
|
neighbFaceCentres_(),
|
||||||
neighbFaceAreas_(),
|
neighbFaceAreas_(),
|
||||||
neighbFaceCellCentres_()
|
neighbFaceCellCentres_()
|
||||||
|
|||||||
@ -122,12 +122,12 @@ Foam::polyPatch::polyPatch
|
|||||||
faceSubList
|
faceSubList
|
||||||
(
|
(
|
||||||
bm.mesh().faces(),
|
bm.mesh().faces(),
|
||||||
readLabel(dict.lookup("nFaces")),
|
dict.lookup<label>("nFaces"),
|
||||||
readLabel(dict.lookup("startFace"))
|
dict.lookup<label>("startFace")
|
||||||
),
|
),
|
||||||
bm.mesh().points()
|
bm.mesh().points()
|
||||||
),
|
),
|
||||||
start_(readLabel(dict.lookup("startFace"))),
|
start_(dict.lookup<label>("startFace")),
|
||||||
boundaryMesh_(bm),
|
boundaryMesh_(bm),
|
||||||
faceCellsPtr_(nullptr),
|
faceCellsPtr_(nullptr),
|
||||||
mePtr_(nullptr)
|
mePtr_(nullptr)
|
||||||
|
|||||||
@ -31,7 +31,7 @@ template <class Function1Type>
|
|||||||
void Foam::Function1s::Ramp<Function1Type>::read(const dictionary& coeffs)
|
void Foam::Function1s::Ramp<Function1Type>::read(const dictionary& coeffs)
|
||||||
{
|
{
|
||||||
start_ = coeffs.lookupOrDefault<scalar>("start", 0);
|
start_ = coeffs.lookupOrDefault<scalar>("start", 0);
|
||||||
duration_ = coeffs.lookupType<scalar>("duration");
|
duration_ = coeffs.lookup<scalar>("duration");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -215,8 +215,8 @@ template<class Type>
|
|||||||
Foam::TableReaders::Csv<Type>::Csv(const dictionary& dict)
|
Foam::TableReaders::Csv<Type>::Csv(const dictionary& dict)
|
||||||
:
|
:
|
||||||
TableReader<Type>(dict),
|
TableReader<Type>(dict),
|
||||||
nHeaderLine_(readLabel(dict.lookup("nHeaderLine"))),
|
nHeaderLine_(dict.lookup<label>("nHeaderLine")),
|
||||||
refColumn_(readLabel(dict.lookup("refColumn"))),
|
refColumn_(dict.lookup<label>("refColumn")),
|
||||||
componentColumns_(dict.lookup("componentColumns")),
|
componentColumns_(dict.lookup("componentColumns")),
|
||||||
separator_(dict.lookupOrDefault<string>("separator", string(","))[0]),
|
separator_(dict.lookupOrDefault<string>("separator", string(","))[0]),
|
||||||
mergeSeparators_(readBool(dict.lookup("mergeSeparators")))
|
mergeSeparators_(readBool(dict.lookup("mergeSeparators")))
|
||||||
|
|||||||
@ -1183,7 +1183,7 @@ bool Foam::dynamicRefineFvMesh::update()
|
|||||||
dynamicMeshDict().optionalSubDict(typeName + "Coeffs")
|
dynamicMeshDict().optionalSubDict(typeName + "Coeffs")
|
||||||
);
|
);
|
||||||
|
|
||||||
label refineInterval = readLabel(refineDict.lookup("refineInterval"));
|
label refineInterval = refineDict.lookup<label>("refineInterval");
|
||||||
|
|
||||||
bool hasChanged = false;
|
bool hasChanged = false;
|
||||||
|
|
||||||
@ -1207,7 +1207,7 @@ bool Foam::dynamicRefineFvMesh::update()
|
|||||||
|
|
||||||
if (time().timeIndex() > 0 && time().timeIndex() % refineInterval == 0)
|
if (time().timeIndex() > 0 && time().timeIndex() % refineInterval == 0)
|
||||||
{
|
{
|
||||||
label maxCells = readLabel(refineDict.lookup("maxCells"));
|
label maxCells = refineDict.lookup<label>("maxCells");
|
||||||
|
|
||||||
if (maxCells <= 0)
|
if (maxCells <= 0)
|
||||||
{
|
{
|
||||||
@ -1218,7 +1218,7 @@ bool Foam::dynamicRefineFvMesh::update()
|
|||||||
<< exit(FatalError);
|
<< exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
label maxRefinement = readLabel(refineDict.lookup("maxRefinement"));
|
label maxRefinement = refineDict.lookup<label>("maxRefinement");
|
||||||
|
|
||||||
if (maxRefinement <= 0)
|
if (maxRefinement <= 0)
|
||||||
{
|
{
|
||||||
@ -1243,7 +1243,7 @@ bool Foam::dynamicRefineFvMesh::update()
|
|||||||
great
|
great
|
||||||
);
|
);
|
||||||
const label nBufferLayers =
|
const label nBufferLayers =
|
||||||
readLabel(refineDict.lookup("nBufferLayers"));
|
refineDict.lookup<label>("nBufferLayers");
|
||||||
|
|
||||||
// Cells marked for refinement or otherwise protected from unrefinement.
|
// Cells marked for refinement or otherwise protected from unrefinement.
|
||||||
PackedBoolList refineCell(nCells());
|
PackedBoolList refineCell(nCells());
|
||||||
|
|||||||
@ -52,8 +52,8 @@ Foam::boundaryPatch::boundaryPatch
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
patchIdentifier(name, dict, index),
|
patchIdentifier(name, dict, index),
|
||||||
size_(readLabel(dict.lookup("nFaces"))),
|
size_(dict.lookup<label>("nFaces")),
|
||||||
start_(readLabel(dict.lookup("startFace")))
|
start_(dict.lookup<label>("startFace"))
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -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) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -872,7 +872,7 @@ bool Foam::motionSmootherAlgo::scaleMesh
|
|||||||
const scalar errorReduction =
|
const scalar errorReduction =
|
||||||
readScalar(paramDict.lookup("errorReduction"));
|
readScalar(paramDict.lookup("errorReduction"));
|
||||||
const label nSmoothScale =
|
const label nSmoothScale =
|
||||||
readLabel(paramDict.lookup("nSmoothScale"));
|
paramDict.lookup<label>("nSmoothScale");
|
||||||
|
|
||||||
|
|
||||||
// Note: displacement_ should already be synced already from setDisplacement
|
// Note: displacement_ should already be synced already from setDisplacement
|
||||||
|
|||||||
@ -48,7 +48,7 @@ bool Foam::setRefCell
|
|||||||
{
|
{
|
||||||
if (Pstream::master())
|
if (Pstream::master())
|
||||||
{
|
{
|
||||||
refCelli = readLabel(dict.lookup(refCellName));
|
refCelli = dict.lookup<label>(refCellName);
|
||||||
|
|
||||||
if (refCelli < 0 || refCelli >= field.mesh().nCells())
|
if (refCelli < 0 || refCelli >= field.mesh().nCells())
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
const dictionary& alphaControls = mesh.solverDict(alpha1.name());
|
const dictionary& alphaControls = mesh.solverDict(alpha1.name());
|
||||||
|
|
||||||
label nAlphaCorr(readLabel(alphaControls.lookup("nAlphaCorr")));
|
label nAlphaCorr(alphaControls.lookup<label>("nAlphaCorr"));
|
||||||
|
|
||||||
label nAlphaSubCycles(readLabel(alphaControls.lookup("nAlphaSubCycles")));
|
label nAlphaSubCycles(alphaControls.lookup<label>("nAlphaSubCycles"));
|
||||||
|
|
||||||
bool MULESCorr(alphaControls.lookupOrDefault<Switch>("MULESCorr", false));
|
bool MULESCorr(alphaControls.lookupOrDefault<Switch>("MULESCorr", false));
|
||||||
|
|
||||||
|
|||||||
@ -89,7 +89,7 @@ activeBaffleVelocityFvPatchVectorField
|
|||||||
pName_(dict.lookupOrDefault<word>("p", "p")),
|
pName_(dict.lookupOrDefault<word>("p", "p")),
|
||||||
cyclicPatchName_(dict.lookup("cyclicPatch")),
|
cyclicPatchName_(dict.lookup("cyclicPatch")),
|
||||||
cyclicPatchLabel_(p.patch().boundaryMesh().findPatchID(cyclicPatchName_)),
|
cyclicPatchLabel_(p.patch().boundaryMesh().findPatchID(cyclicPatchName_)),
|
||||||
orientation_(readLabel(dict.lookup("orientation"))),
|
orientation_(dict.lookup<label>("orientation")),
|
||||||
initWallSf_(p.Sf()),
|
initWallSf_(p.Sf()),
|
||||||
initCyclicSf_(p.boundaryMesh()[cyclicPatchLabel_].Sf()),
|
initCyclicSf_(p.boundaryMesh()[cyclicPatchLabel_].Sf()),
|
||||||
nbrCyclicSf_
|
nbrCyclicSf_
|
||||||
|
|||||||
@ -95,7 +95,7 @@ activePressureForceBaffleVelocityFvPatchVectorField
|
|||||||
pName_(dict.lookupOrDefault<word>("p", "p")),
|
pName_(dict.lookupOrDefault<word>("p", "p")),
|
||||||
cyclicPatchName_(dict.lookup("cyclicPatch")),
|
cyclicPatchName_(dict.lookup("cyclicPatch")),
|
||||||
cyclicPatchLabel_(p.patch().boundaryMesh().findPatchID(cyclicPatchName_)),
|
cyclicPatchLabel_(p.patch().boundaryMesh().findPatchID(cyclicPatchName_)),
|
||||||
orientation_(readLabel(dict.lookup("orientation"))),
|
orientation_(dict.lookup<label>("orientation")),
|
||||||
initWallSf_(0),
|
initWallSf_(0),
|
||||||
initCyclicSf_(0),
|
initCyclicSf_(0),
|
||||||
nbrCyclicSf_(0),
|
nbrCyclicSf_(0),
|
||||||
|
|||||||
@ -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) 2013-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2013-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -220,7 +220,7 @@ void Foam::MULES::limiterCorr
|
|||||||
|
|
||||||
const label nLimiterIter
|
const label nLimiterIter
|
||||||
(
|
(
|
||||||
readLabel(MULEScontrols.lookup("nLimiterIter"))
|
MULEScontrols.lookup<label>("nLimiterIter")
|
||||||
);
|
);
|
||||||
|
|
||||||
const scalar smoothLimiter
|
const scalar smoothLimiter
|
||||||
|
|||||||
@ -265,7 +265,7 @@ void Foam::functionObjects::fieldAverage::readAveragingProperties()
|
|||||||
{
|
{
|
||||||
dictionary fieldDict(propsDict.subDict(fieldName));
|
dictionary fieldDict(propsDict.subDict(fieldName));
|
||||||
|
|
||||||
totalIter_[fieldi] = readLabel(fieldDict.lookup("totalIter"));
|
totalIter_[fieldi] = fieldDict.lookup<label>("totalIter");
|
||||||
totalTime_[fieldi] = readScalar(fieldDict.lookup("totalTime"));
|
totalTime_[fieldi] = readScalar(fieldDict.lookup("totalTime"));
|
||||||
|
|
||||||
Log << " " << fieldName
|
Log << " " << fieldName
|
||||||
|
|||||||
@ -346,7 +346,7 @@ bool Foam::functionObjects::streamLine::read(const dictionary& dict)
|
|||||||
if (!dict.found("direction") && dict.found("trackForward"))
|
if (!dict.found("direction") && dict.found("trackForward"))
|
||||||
{
|
{
|
||||||
trackDirection_ =
|
trackDirection_ =
|
||||||
dict.lookupType<bool>("trackForward")
|
dict.lookup<bool>("trackForward")
|
||||||
? trackDirection::forward
|
? trackDirection::forward
|
||||||
: trackDirection::backward;
|
: trackDirection::backward;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -60,7 +60,7 @@ Foam::wordList Foam::functionObjects::forces::createFileNames
|
|||||||
if (dict.found("binData"))
|
if (dict.found("binData"))
|
||||||
{
|
{
|
||||||
const dictionary& binDict(dict.subDict("binData"));
|
const dictionary& binDict(dict.subDict("binData"));
|
||||||
label nb = readLabel(binDict.lookup("nBin"));
|
label nb = binDict.lookup<label>("nBin");
|
||||||
if (nb > 0)
|
if (nb > 0)
|
||||||
{
|
{
|
||||||
// Name for file(fileID::binsFile=1)
|
// Name for file(fileID::binsFile=1)
|
||||||
|
|||||||
@ -170,14 +170,14 @@ Foam::MGridGenGAMGAgglomeration::MGridGenGAMGAgglomeration
|
|||||||
fvMesh_(refCast<const fvMesh>(mesh))
|
fvMesh_(refCast<const fvMesh>(mesh))
|
||||||
{
|
{
|
||||||
// Min, max size of agglomerated cells
|
// Min, max size of agglomerated cells
|
||||||
label minSize(readLabel(controlDict.lookup("minSize")));
|
label minSize(controlDict.lookup<label>("minSize"));
|
||||||
label maxSize(readLabel(controlDict.lookup("maxSize")));
|
label maxSize(controlDict.lookup<label>("maxSize"));
|
||||||
|
|
||||||
// Number of iterations applied to improve agglomeration consistency across
|
// Number of iterations applied to improve agglomeration consistency across
|
||||||
// processor boundaries
|
// processor boundaries
|
||||||
label nProcConsistencyIter
|
label nProcConsistencyIter
|
||||||
(
|
(
|
||||||
readLabel(controlDict.lookup("nProcConsistencyIter"))
|
controlDict.lookup<label>("nProcConsistencyIter")
|
||||||
);
|
);
|
||||||
|
|
||||||
// Start geometric agglomeration from the cell volumes and areas of the mesh
|
// Start geometric agglomeration from the cell volumes and areas of the mesh
|
||||||
|
|||||||
@ -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) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -200,7 +200,7 @@ Foam::pairPatchAgglomeration::pairPatchAgglomeration
|
|||||||
maxLevels_(50),
|
maxLevels_(50),
|
||||||
nFacesInCoarsestLevel_
|
nFacesInCoarsestLevel_
|
||||||
(
|
(
|
||||||
readLabel(controlDict.lookup("nFacesInCoarsestLevel"))
|
controlDict.lookup<label>("nFacesInCoarsestLevel")
|
||||||
),
|
),
|
||||||
featureAngle_
|
featureAngle_
|
||||||
(
|
(
|
||||||
|
|||||||
@ -102,7 +102,7 @@ Foam::fv::solidEquilibriumEnergySource::solidEquilibriumEnergySource
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
option(name, modelType, dict, mesh),
|
option(name, modelType, dict, mesh),
|
||||||
phaseName_(dict.lookupType<word>("phase"))
|
phaseName_(dict.lookup<word>("phase"))
|
||||||
{
|
{
|
||||||
read(dict);
|
read(dict);
|
||||||
alpha();
|
alpha();
|
||||||
@ -169,7 +169,7 @@ bool Foam::fv::solidEquilibriumEnergySource::read(const dictionary& dict)
|
|||||||
{
|
{
|
||||||
if (option::read(dict))
|
if (option::read(dict))
|
||||||
{
|
{
|
||||||
fieldNames_ = wordList(1, coeffs_.lookupType<word>("field"));
|
fieldNames_ = wordList(1, coeffs_.lookup<word>("field"));
|
||||||
|
|
||||||
applied_.setSize(fieldNames_.size(), false);
|
applied_.setSize(fieldNames_.size(), false);
|
||||||
|
|
||||||
|
|||||||
@ -199,7 +199,7 @@ Foam::fv::volumeFractionSource::volumeFractionSource
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
option(name, modelType, dict, mesh),
|
option(name, modelType, dict, mesh),
|
||||||
phaseName_(dict.lookupType<word>("phase")),
|
phaseName_(dict.lookup<word>("phase")),
|
||||||
phiName_("phi"),
|
phiName_("phi"),
|
||||||
rhoName_("rho"),
|
rhoName_("rho"),
|
||||||
UName_("U")
|
UName_("U")
|
||||||
|
|||||||
@ -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) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -45,7 +45,7 @@ inline Foam::DSMCParcel<ParcelType>::constantProperties::constantProperties
|
|||||||
d_(readScalar(dict.lookup("diameter"))),
|
d_(readScalar(dict.lookup("diameter"))),
|
||||||
internalDegreesOfFreedom_
|
internalDegreesOfFreedom_
|
||||||
(
|
(
|
||||||
readInt(dict.lookup("internalDegreesOfFreedom"))
|
dict.template lookup<int>("internalDegreesOfFreedom")
|
||||||
),
|
),
|
||||||
omega_(readScalar(dict.lookup("omega")))
|
omega_(readScalar(dict.lookup("omega")))
|
||||||
{}
|
{}
|
||||||
|
|||||||
@ -158,7 +158,7 @@ void Foam::ParticleCollector<CloudType>::initConcentricCircles()
|
|||||||
vector origin(this->coeffDict().lookup("origin"));
|
vector origin(this->coeffDict().lookup("origin"));
|
||||||
|
|
||||||
this->coeffDict().lookup("radius") >> radius_;
|
this->coeffDict().lookup("radius") >> radius_;
|
||||||
nSector_ = readLabel(this->coeffDict().lookup("nSector"));
|
nSector_ = this->coeffDict().template lookup<label>("nSector");
|
||||||
|
|
||||||
label nS = nSector_;
|
label nS = nSector_;
|
||||||
|
|
||||||
|
|||||||
@ -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) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -63,8 +63,8 @@ Foam::ParticleTracks<CloudType>::ParticleTracks
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
CloudFunctionObject<CloudType>(dict, owner, modelName, typeName),
|
CloudFunctionObject<CloudType>(dict, owner, modelName, typeName),
|
||||||
trackInterval_(readLabel(this->coeffDict().lookup("trackInterval"))),
|
trackInterval_(this->coeffDict().template lookup<label>("trackInterval")),
|
||||||
maxSamples_(readLabel(this->coeffDict().lookup("maxSamples"))),
|
maxSamples_(this->coeffDict().template lookup<label>("maxSamples")),
|
||||||
resetOnWrite_(this->coeffDict().lookup("resetOnWrite")),
|
resetOnWrite_(this->coeffDict().lookup("resetOnWrite")),
|
||||||
faceHitCounter_(),
|
faceHitCounter_(),
|
||||||
cloudPtr_(nullptr)
|
cloudPtr_(nullptr)
|
||||||
|
|||||||
@ -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) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -72,7 +72,7 @@ Foam::FieldActivatedInjection<CloudType>::FieldActivatedInjection
|
|||||||
injectorTetPts_(positions_.size()),
|
injectorTetPts_(positions_.size()),
|
||||||
nParcelsPerInjector_
|
nParcelsPerInjector_
|
||||||
(
|
(
|
||||||
readLabel(this->coeffDict().lookup("parcelsPerInjector"))
|
this->coeffDict().template lookup<label>("parcelsPerInjector")
|
||||||
),
|
),
|
||||||
nParcelsInjected_(positions_.size(), 0),
|
nParcelsInjected_(positions_.size(), 0),
|
||||||
U0_(this->coeffDict().lookup("U0")),
|
U0_(this->coeffDict().lookup("U0")),
|
||||||
|
|||||||
@ -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) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -43,7 +43,7 @@ Foam::ParticleForce<CloudType>::New
|
|||||||
|
|
||||||
if (cstrIter == dictionaryConstructorTablePtr_->end() && dict.found("type"))
|
if (cstrIter == dictionaryConstructorTablePtr_->end() && dict.found("type"))
|
||||||
{
|
{
|
||||||
forceType = dict.lookupType<word>("type");
|
forceType = dict.lookup<word>("type");
|
||||||
cstrIter = dictionaryConstructorTablePtr_->find(forceType);
|
cstrIter = dictionaryConstructorTablePtr_->find(forceType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -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) 2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2018-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -35,7 +35,7 @@ Foam::dictionary Foam::ScaledForce<CloudType>::modelDict
|
|||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
dictionary modelDict(dict);
|
dictionary modelDict(dict);
|
||||||
modelDict.add<word>("type", dict.lookupType<word>("forceType"), true);
|
modelDict.add<word>("type", dict.lookup<word>("forceType"), true);
|
||||||
return modelDict;
|
return modelDict;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -58,7 +58,7 @@ Foam::ScaledForce<CloudType>::ScaledForce
|
|||||||
owner,
|
owner,
|
||||||
mesh,
|
mesh,
|
||||||
modelDict(dict),
|
modelDict(dict),
|
||||||
dict.lookupType<word>("forceType")
|
dict.lookup<word>("forceType")
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
factor_(readScalar(this->coeffs().lookup("factor")))
|
factor_(readScalar(this->coeffs().lookup("factor")))
|
||||||
|
|||||||
@ -2048,7 +2048,7 @@ bool Foam::medialAxisMeshMover::shrinkMesh
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
//- Number of attempts shrinking the mesh
|
//- Number of attempts shrinking the mesh
|
||||||
const label nSnap = readLabel(meshQualityDict.lookup("nRelaxIter"));
|
const label nSnap = meshQualityDict.lookup<label>("nRelaxIter");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -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) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -227,7 +227,7 @@ void Foam::refinementFeatures::read
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Look up 'level' for single level
|
// Look up 'level' for single level
|
||||||
levels_[featI] = labelList(1, readLabel(dict.lookup("level")));
|
levels_[featI] = labelList(1, dict.lookup<label>("level"));
|
||||||
distances_[featI] = scalarField(1, 0.0);
|
distances_[featI] = scalarField(1, 0.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -119,7 +119,7 @@ Foam::layerParameters::layerParameters
|
|||||||
boundaryMesh.size(),
|
boundaryMesh.size(),
|
||||||
dict.found("mergeFaces")
|
dict.found("mergeFaces")
|
||||||
? (
|
? (
|
||||||
dict.lookupType<bool>("mergeFaces")
|
dict.lookup<bool>("mergeFaces")
|
||||||
? mergeFace::yes
|
? mergeFace::yes
|
||||||
: mergeFace::no
|
: mergeFace::no
|
||||||
)
|
)
|
||||||
@ -130,16 +130,16 @@ Foam::layerParameters::layerParameters
|
|||||||
(
|
(
|
||||||
dict.lookupOrDefault("concaveAngle", defaultConcaveAngle)
|
dict.lookupOrDefault("concaveAngle", defaultConcaveAngle)
|
||||||
),
|
),
|
||||||
nGrow_(readLabel(dict.lookup("nGrow"))),
|
nGrow_(dict.lookup<label>("nGrow")),
|
||||||
maxFaceThicknessRatio_
|
maxFaceThicknessRatio_
|
||||||
(
|
(
|
||||||
readScalar(dict.lookup("maxFaceThicknessRatio"))
|
readScalar(dict.lookup("maxFaceThicknessRatio"))
|
||||||
),
|
),
|
||||||
nBufferCellsNoExtrude_
|
nBufferCellsNoExtrude_
|
||||||
(
|
(
|
||||||
readLabel(dict.lookup("nBufferCellsNoExtrude"))
|
dict.lookup<label>("nBufferCellsNoExtrude")
|
||||||
),
|
),
|
||||||
nLayerIter_(readLabel(dict.lookup("nLayerIter"))),
|
nLayerIter_(dict.lookup<label>("nLayerIter")),
|
||||||
nRelaxedIter_(labelMax),
|
nRelaxedIter_(labelMax),
|
||||||
additionalReporting_(dict.lookupOrDefault("additionalReporting", false)),
|
additionalReporting_(dict.lookupOrDefault("additionalReporting", false)),
|
||||||
meshShrinker_
|
meshShrinker_
|
||||||
@ -290,7 +290,7 @@ Foam::layerParameters::layerParameters
|
|||||||
const label patchi = patchiter.key();
|
const label patchi = patchiter.key();
|
||||||
|
|
||||||
numLayers_[patchi] =
|
numLayers_[patchi] =
|
||||||
readLabel(layerDict.lookup("nSurfaceLayers"));
|
layerDict.lookup<label>("nSurfaceLayers");
|
||||||
|
|
||||||
switch (layerSpec_)
|
switch (layerSpec_)
|
||||||
{
|
{
|
||||||
@ -376,7 +376,7 @@ Foam::layerParameters::layerParameters
|
|||||||
if (layerDict.found("mergeFaces"))
|
if (layerDict.found("mergeFaces"))
|
||||||
{
|
{
|
||||||
mergeFaces_[patchi] =
|
mergeFaces_[patchi] =
|
||||||
layerDict.lookupType<bool>("mergeFaces")
|
layerDict.lookup<bool>("mergeFaces")
|
||||||
? mergeFace::yes
|
? mergeFace::yes
|
||||||
: mergeFace::no;
|
: mergeFace::no;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -32,9 +32,9 @@ License
|
|||||||
|
|
||||||
Foam::refinementParameters::refinementParameters(const dictionary& dict)
|
Foam::refinementParameters::refinementParameters(const dictionary& dict)
|
||||||
:
|
:
|
||||||
maxGlobalCells_(readLabel(dict.lookup("maxGlobalCells"))),
|
maxGlobalCells_(dict.lookup<label>("maxGlobalCells")),
|
||||||
maxLocalCells_(readLabel(dict.lookup("maxLocalCells"))),
|
maxLocalCells_(dict.lookup<label>("maxLocalCells")),
|
||||||
minRefineCells_(readLabel(dict.lookup("minRefinementCells"))),
|
minRefineCells_(dict.lookup<label>("minRefinementCells")),
|
||||||
planarAngle_
|
planarAngle_
|
||||||
(
|
(
|
||||||
dict.lookupOrDefault
|
dict.lookupOrDefault
|
||||||
@ -43,7 +43,7 @@ Foam::refinementParameters::refinementParameters(const dictionary& dict)
|
|||||||
readScalar(dict.lookup("resolveFeatureAngle"))
|
readScalar(dict.lookup("resolveFeatureAngle"))
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
nBufferLayers_(readLabel(dict.lookup("nCellsBetweenLevels"))),
|
nBufferLayers_(dict.lookup<label>("nCellsBetweenLevels")),
|
||||||
keepPoints_(pointField(1, dict.lookup("locationInMesh"))),
|
keepPoints_(pointField(1, dict.lookup("locationInMesh"))),
|
||||||
allowFreeStandingZoneFaces_(dict.lookup("allowFreeStandingZoneFaces")),
|
allowFreeStandingZoneFaces_(dict.lookup("allowFreeStandingZoneFaces")),
|
||||||
useTopologicalSnapDetection_
|
useTopologicalSnapDetection_
|
||||||
|
|||||||
@ -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) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -30,10 +30,10 @@ License
|
|||||||
// Construct from dictionary
|
// Construct from dictionary
|
||||||
Foam::snapParameters::snapParameters(const dictionary& dict)
|
Foam::snapParameters::snapParameters(const dictionary& dict)
|
||||||
:
|
:
|
||||||
nSmoothPatch_(readLabel(dict.lookup("nSmoothPatch"))),
|
nSmoothPatch_(dict.lookup<label>("nSmoothPatch")),
|
||||||
snapTol_(readScalar(dict.lookup("tolerance"))),
|
snapTol_(readScalar(dict.lookup("tolerance"))),
|
||||||
nSmoothDispl_(readLabel(dict.lookup("nSolveIter"))),
|
nSmoothDispl_(dict.lookup<label>("nSolveIter")),
|
||||||
nSnap_(readLabel(dict.lookup("nRelaxIter"))),
|
nSnap_(dict.lookup<label>("nRelaxIter")),
|
||||||
nFeatureSnap_(dict.lookupOrDefault("nFeatureSnapIter", -1)),
|
nFeatureSnap_(dict.lookupOrDefault("nFeatureSnapIter", -1)),
|
||||||
explicitFeatureSnap_(dict.lookupOrDefault("explicitFeatureSnap", true)),
|
explicitFeatureSnap_(dict.lookupOrDefault("explicitFeatureSnap", true)),
|
||||||
implicitFeatureSnap_(dict.lookupOrDefault("implicitFeatureSnap", false)),
|
implicitFeatureSnap_(dict.lookupOrDefault("implicitFeatureSnap", false)),
|
||||||
|
|||||||
@ -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) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -117,7 +117,7 @@ Foam::nbrToCell::nbrToCell
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
topoSetSource(mesh),
|
topoSetSource(mesh),
|
||||||
minNbrs_(readLabel(dict.lookup("neighbours")))
|
minNbrs_(dict.lookup<label>("neighbours"))
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -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) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -506,8 +506,8 @@ Foam::surfaceFeatures::surfaceFeatures
|
|||||||
surf_(surf),
|
surf_(surf),
|
||||||
featurePoints_(featInfoDict.lookup("featurePoints")),
|
featurePoints_(featInfoDict.lookup("featurePoints")),
|
||||||
featureEdges_(featInfoDict.lookup("featureEdges")),
|
featureEdges_(featInfoDict.lookup("featureEdges")),
|
||||||
externalStart_(readLabel(featInfoDict.lookup("externalStart"))),
|
externalStart_(featInfoDict.lookup<label>("externalStart")),
|
||||||
internalStart_(readLabel(featInfoDict.lookup("internalStart")))
|
internalStart_(featInfoDict.lookup<label>("internalStart"))
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
@ -529,8 +529,8 @@ Foam::surfaceFeatures::surfaceFeatures
|
|||||||
|
|
||||||
featureEdges_ = labelList(featInfoDict.lookup("featureEdges"));
|
featureEdges_ = labelList(featInfoDict.lookup("featureEdges"));
|
||||||
featurePoints_ = labelList(featInfoDict.lookup("featurePoints"));
|
featurePoints_ = labelList(featInfoDict.lookup("featurePoints"));
|
||||||
externalStart_ = readLabel(featInfoDict.lookup("externalStart"));
|
externalStart_ = featInfoDict.lookup<label>("externalStart");
|
||||||
internalStart_ = readLabel(featInfoDict.lookup("internalStart"));
|
internalStart_ = featInfoDict.lookup<label>("internalStart");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -59,7 +59,7 @@ Foam::decompositionMethod::decompositionMethod
|
|||||||
decompositionDict_(decompositionDict),
|
decompositionDict_(decompositionDict),
|
||||||
nProcessors_
|
nProcessors_
|
||||||
(
|
(
|
||||||
readLabel(decompositionDict.lookup("numberOfSubdomains"))
|
decompositionDict.lookup<label>("numberOfSubdomains")
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
// Read any constraints
|
// Read any constraints
|
||||||
|
|||||||
@ -266,8 +266,8 @@ Foam::radiationModels::fvDOM::fvDOM(const volScalarField& T)
|
|||||||
mesh_,
|
mesh_,
|
||||||
dimensionedScalar(dimless/dimLength, 0)
|
dimensionedScalar(dimless/dimLength, 0)
|
||||||
),
|
),
|
||||||
nTheta_(readLabel(coeffs_.lookup("nTheta"))),
|
nTheta_(coeffs_.lookup<label>("nTheta")),
|
||||||
nPhi_(readLabel(coeffs_.lookup("nPhi"))),
|
nPhi_(coeffs_.lookup<label>("nPhi")),
|
||||||
nRay_(0),
|
nRay_(0),
|
||||||
nLambda_(absorptionEmission_->nBands()),
|
nLambda_(absorptionEmission_->nBands()),
|
||||||
aLambda_(nLambda_),
|
aLambda_(nLambda_),
|
||||||
@ -358,8 +358,8 @@ Foam::radiationModels::fvDOM::fvDOM
|
|||||||
mesh_,
|
mesh_,
|
||||||
dimensionedScalar(dimless/dimLength, 0)
|
dimensionedScalar(dimless/dimLength, 0)
|
||||||
),
|
),
|
||||||
nTheta_(readLabel(coeffs_.lookup("nTheta"))),
|
nTheta_(coeffs_.lookup<label>("nTheta")),
|
||||||
nPhi_(readLabel(coeffs_.lookup("nPhi"))),
|
nPhi_(coeffs_.lookup<label>("nPhi")),
|
||||||
nRay_(0),
|
nRay_(0),
|
||||||
nLambda_(absorptionEmission_->nBands()),
|
nLambda_(absorptionEmission_->nBands()),
|
||||||
aLambda_(nLambda_),
|
aLambda_(nLambda_),
|
||||||
|
|||||||
@ -435,10 +435,10 @@ kinematicSingleLayer::kinematicSingleLayer
|
|||||||
|
|
||||||
momentumPredictor_(solution().subDict("PISO").lookup("momentumPredictor")),
|
momentumPredictor_(solution().subDict("PISO").lookup("momentumPredictor")),
|
||||||
nOuterCorr_(solution().subDict("PISO").lookupOrDefault("nOuterCorr", 1)),
|
nOuterCorr_(solution().subDict("PISO").lookupOrDefault("nOuterCorr", 1)),
|
||||||
nCorr_(readLabel(solution().subDict("PISO").lookup("nCorr"))),
|
nCorr_(solution().subDict("PISO").lookup<label>("nCorr")),
|
||||||
nNonOrthCorr_
|
nNonOrthCorr_
|
||||||
(
|
(
|
||||||
readLabel(solution().subDict("PISO").lookup("nNonOrthCorr"))
|
solution().subDict("PISO").lookup<label>("nNonOrthCorr")
|
||||||
),
|
),
|
||||||
|
|
||||||
cumulativeContErr_(0.0),
|
cumulativeContErr_(0.0),
|
||||||
|
|||||||
@ -277,7 +277,7 @@ void thermalBaffleFvPatchScalarField::write(Ostream& os) const
|
|||||||
<< token::END_STATEMENT << nl;
|
<< token::END_STATEMENT << nl;
|
||||||
|
|
||||||
writeKeyword(os, "nLayers");
|
writeKeyword(os, "nLayers");
|
||||||
os << readLabel(dict_.lookup("nLayers"))
|
os << dict_.lookup<label>("nLayers")
|
||||||
<< token::END_STATEMENT << nl;
|
<< token::END_STATEMENT << nl;
|
||||||
|
|
||||||
writeKeyword(os, "expansionRatio");
|
writeKeyword(os, "expansionRatio");
|
||||||
|
|||||||
@ -156,7 +156,7 @@ thermalBaffle::thermalBaffle
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
thermalBaffleModel(modelType, mesh, dict),
|
thermalBaffleModel(modelType, mesh, dict),
|
||||||
nNonOrthCorr_(readLabel(solution().lookup("nNonOrthCorr"))),
|
nNonOrthCorr_(solution().lookup<label>("nNonOrthCorr")),
|
||||||
thermo_(solidThermo::New(regionMesh(), dict)),
|
thermo_(solidThermo::New(regionMesh(), dict)),
|
||||||
h_(thermo_->he()),
|
h_(thermo_->he()),
|
||||||
Qs_
|
Qs_
|
||||||
@ -206,7 +206,7 @@ thermalBaffle::thermalBaffle
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
thermalBaffleModel(modelType, mesh),
|
thermalBaffleModel(modelType, mesh),
|
||||||
nNonOrthCorr_(readLabel(solution().lookup("nNonOrthCorr"))),
|
nNonOrthCorr_(solution().lookup<label>("nNonOrthCorr")),
|
||||||
thermo_(solidThermo::New(regionMesh())),
|
thermo_(solidThermo::New(regionMesh())),
|
||||||
h_(thermo_->he()),
|
h_(thermo_->he()),
|
||||||
Qs_
|
Qs_
|
||||||
|
|||||||
@ -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) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -49,7 +49,7 @@ Foam::springRenumber::springRenumber(const dictionary& renumberDict)
|
|||||||
renumberMethod(renumberDict),
|
renumberMethod(renumberDict),
|
||||||
dict_(renumberDict.optionalSubDict(typeName+"Coeffs")),
|
dict_(renumberDict.optionalSubDict(typeName+"Coeffs")),
|
||||||
maxCo_(readScalar(dict_.lookup("maxCo"))),
|
maxCo_(readScalar(dict_.lookup("maxCo"))),
|
||||||
maxIter_(readLabel(dict_.lookup("maxIter"))),
|
maxIter_(dict_.lookup<label>("maxIter")),
|
||||||
freezeFraction_(readScalar(dict_.lookup("freezeFraction")))
|
freezeFraction_(readScalar(dict_.lookup("freezeFraction")))
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|||||||
@ -254,7 +254,7 @@ void Foam::rigidBodyMeshMotion::solve()
|
|||||||
|
|
||||||
if (test_)
|
if (test_)
|
||||||
{
|
{
|
||||||
label nIter(readLabel(coeffDict().lookup("nIter")));
|
label nIter(coeffDict().lookup<label>("nIter"));
|
||||||
|
|
||||||
for (label i=0; i<nIter; i++)
|
for (label i=0; i<nIter; i++)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -201,7 +201,7 @@ void Foam::rigidBodyMeshMotionSolver::solve()
|
|||||||
|
|
||||||
if (test_)
|
if (test_)
|
||||||
{
|
{
|
||||||
label nIter(readLabel(coeffDict().lookup("nIter")));
|
label nIter(coeffDict().lookup<label>("nIter"));
|
||||||
|
|
||||||
for (label i=0; i<nIter; i++)
|
for (label i=0; i<nIter; i++)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -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) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -127,11 +127,11 @@ Foam::sampledSets::arcUniform::arcUniform
|
|||||||
:
|
:
|
||||||
sampledSet(name, mesh, searchEngine, dict),
|
sampledSet(name, mesh, searchEngine, dict),
|
||||||
centre_(dict.lookup("centre")),
|
centre_(dict.lookup("centre")),
|
||||||
normal_(normalised(dict.lookupType<vector>("normal"))),
|
normal_(normalised(dict.lookup<vector>("normal"))),
|
||||||
radial_(dict.lookupType<vector>("radial")),
|
radial_(dict.lookup<vector>("radial")),
|
||||||
startAngle_(readScalar(dict.lookup("startAngle"))),
|
startAngle_(readScalar(dict.lookup("startAngle"))),
|
||||||
endAngle_(readScalar(dict.lookup("endAngle"))),
|
endAngle_(readScalar(dict.lookup("endAngle"))),
|
||||||
nPoints_(dict.lookupType<scalar>("nPoints"))
|
nPoints_(dict.lookup<scalar>("nPoints"))
|
||||||
{
|
{
|
||||||
genSamples();
|
genSamples();
|
||||||
|
|
||||||
|
|||||||
@ -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) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -231,7 +231,7 @@ Foam::sampledSets::boundaryRandom::boundaryRandom
|
|||||||
wordReList(dict.lookup("patches"))
|
wordReList(dict.lookup("patches"))
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
nPoints_(readLabel(dict.lookup("nPoints")))
|
nPoints_(dict.lookup<label>("nPoints"))
|
||||||
{
|
{
|
||||||
genSamples();
|
genSamples();
|
||||||
|
|
||||||
|
|||||||
@ -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) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -132,9 +132,9 @@ Foam::sampledSets::circleRandom::circleRandom
|
|||||||
:
|
:
|
||||||
sampledSet(name, mesh, searchEngine, dict),
|
sampledSet(name, mesh, searchEngine, dict),
|
||||||
centre_(dict.lookup("centre")),
|
centre_(dict.lookup("centre")),
|
||||||
normal_(normalised(dict.lookupType<vector>("normal"))),
|
normal_(normalised(dict.lookup<vector>("normal"))),
|
||||||
radius_(readScalar(dict.lookup("radius"))),
|
radius_(readScalar(dict.lookup("radius"))),
|
||||||
nPoints_(readLabel(dict.lookup("nPoints")))
|
nPoints_(dict.lookup<label>("nPoints"))
|
||||||
{
|
{
|
||||||
genSamples();
|
genSamples();
|
||||||
|
|
||||||
|
|||||||
@ -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) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -141,7 +141,7 @@ Foam::sampledSets::lineUniform::lineUniform
|
|||||||
sampledSet(name, mesh, searchEngine, dict),
|
sampledSet(name, mesh, searchEngine, dict),
|
||||||
start_(dict.lookup("start")),
|
start_(dict.lookup("start")),
|
||||||
end_(dict.lookup("end")),
|
end_(dict.lookup("end")),
|
||||||
nPoints_(readLabel(dict.lookup("nPoints")))
|
nPoints_(dict.lookup<label>("nPoints"))
|
||||||
{
|
{
|
||||||
genSamples();
|
genSamples();
|
||||||
|
|
||||||
|
|||||||
@ -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) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -132,7 +132,7 @@ Foam::sampledSets::sphereRandom::sphereRandom
|
|||||||
sampledSet(name, mesh, searchEngine, dict),
|
sampledSet(name, mesh, searchEngine, dict),
|
||||||
centre_(dict.lookup("centre")),
|
centre_(dict.lookup("centre")),
|
||||||
radius_(readScalar(dict.lookup("radius"))),
|
radius_(readScalar(dict.lookup("radius"))),
|
||||||
nPoints_(readLabel(dict.lookup("nPoints")))
|
nPoints_(dict.lookup<label>("nPoints"))
|
||||||
{
|
{
|
||||||
genSamples();
|
genSamples();
|
||||||
|
|
||||||
|
|||||||
@ -81,8 +81,8 @@ Foam::surfZone::surfZone
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
surfZoneIdentifier(name, dict, index),
|
surfZoneIdentifier(name, dict, index),
|
||||||
size_(readLabel(dict.lookup("nFaces"))),
|
size_(dict.lookup<label>("nFaces")),
|
||||||
start_(readLabel(dict.lookup("startFace")))
|
start_(dict.lookup<label>("startFace"))
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -66,8 +66,8 @@ Foam::surfZoneIOList::surfZoneIOList
|
|||||||
{
|
{
|
||||||
const dictionary& dict = dictEntries[zoneI].dict();
|
const dictionary& dict = dictEntries[zoneI].dict();
|
||||||
|
|
||||||
label zoneSize = readLabel(dict.lookup("nFaces"));
|
label zoneSize = dict.lookup<label>("nFaces");
|
||||||
label startFacei = readLabel(dict.lookup("startFace"));
|
label startFacei = dict.lookup<label>("startFace");
|
||||||
|
|
||||||
zones[zoneI] = surfZone
|
zones[zoneI] = surfZone
|
||||||
(
|
(
|
||||||
|
|||||||
@ -218,7 +218,7 @@ Foam::chemistryReductionMethods::DAC<CompType, ThermoType>::DAC
|
|||||||
|
|
||||||
if (this->coeffsDict_.found("nbCLarge"))
|
if (this->coeffsDict_.found("nbCLarge"))
|
||||||
{
|
{
|
||||||
nbCLarge_ = readLabel(fuelDict.lookup("nbCLarge"));
|
nbCLarge_ = fuelDict.lookup<label>("nbCLarge");
|
||||||
}
|
}
|
||||||
|
|
||||||
fuelSpeciesID_.setSize(fuelSpecies_.size());
|
fuelSpeciesID_.setSize(fuelSpecies_.size());
|
||||||
|
|||||||
@ -63,7 +63,7 @@ Foam::chemistryReductionMethods::DRGEP<CompType, ThermoType>::DRGEP
|
|||||||
|
|
||||||
if (this->coeffsDict_.found("NGroupBased"))
|
if (this->coeffsDict_.found("NGroupBased"))
|
||||||
{
|
{
|
||||||
NGroupBased_ = readLabel(this->coeffsDict_.lookup("NGroupBased"));
|
NGroupBased_ = this->coeffsDict_.template lookup<label>("NGroupBased");
|
||||||
}
|
}
|
||||||
|
|
||||||
const List<List<specieElement>>& specieComposition =
|
const List<List<specieElement>>& specieComposition =
|
||||||
|
|||||||
@ -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-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2016-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -349,7 +349,7 @@ Foam::binaryTree<CompType, ThermoType>::binaryTree
|
|||||||
:
|
:
|
||||||
chemistry_(chemistry),
|
chemistry_(chemistry),
|
||||||
root_(nullptr),
|
root_(nullptr),
|
||||||
maxNLeafs_(readLabel(coeffsDict.lookup("maxNLeafs"))),
|
maxNLeafs_(coeffsDict.lookup<label>("maxNLeafs")),
|
||||||
size_(0),
|
size_(0),
|
||||||
n2ndSearch_(0),
|
n2ndSearch_(0),
|
||||||
max2ndSearch_(coeffsDict.lookupOrDefault("max2ndSearch",0)),
|
max2ndSearch_(coeffsDict.lookupOrDefault("max2ndSearch",0)),
|
||||||
|
|||||||
@ -42,7 +42,7 @@ namespace thermophysicalFunctions
|
|||||||
|
|
||||||
Foam::thermophysicalFunctions::constant::constant(const dictionary& dict)
|
Foam::thermophysicalFunctions::constant::constant(const dictionary& dict)
|
||||||
:
|
:
|
||||||
value_(dict.lookupType<scalar>("value"))
|
value_(dict.lookup<scalar>("value"))
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -43,8 +43,8 @@ namespace thermophysicalFunctions
|
|||||||
Foam::thermophysicalFunctions::table::table(const dictionary& dict)
|
Foam::thermophysicalFunctions::table::table(const dictionary& dict)
|
||||||
:
|
:
|
||||||
dictName_(dict.name()),
|
dictName_(dict.name()),
|
||||||
Tlow_(dict.lookupType<scalar>("Tlow")),
|
Tlow_(dict.lookup<scalar>("Tlow")),
|
||||||
Thigh_(dict.lookupType<scalar>("Thigh")),
|
Thigh_(dict.lookup<scalar>("Thigh")),
|
||||||
values_(dict.lookup("values"))
|
values_(dict.lookup("values"))
|
||||||
{
|
{
|
||||||
if (values_.size() < 2)
|
if (values_.size() < 2)
|
||||||
|
|||||||
@ -78,8 +78,8 @@ Foam::surfacePatch::surfacePatch
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
geometricSurfacePatch(name, dict, index),
|
geometricSurfacePatch(name, dict, index),
|
||||||
size_(readLabel(dict.lookup("nFaces"))),
|
size_(dict.lookup<label>("nFaces")),
|
||||||
start_(readLabel(dict.lookup("startFace")))
|
start_(dict.lookup<label>("startFace"))
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -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) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -78,8 +78,8 @@ Foam::surfacePatchIOList::surfacePatchIOList
|
|||||||
{
|
{
|
||||||
const dictionary& dict = patchEntries[patchi].dict();
|
const dictionary& dict = patchEntries[patchi].dict();
|
||||||
|
|
||||||
label patchSize = readLabel(dict.lookup("nFaces"));
|
label patchSize = dict.lookup<label>("nFaces");
|
||||||
label startFacei = readLabel(dict.lookup("startFace"));
|
label startFacei = dict.lookup<label>("startFace");
|
||||||
|
|
||||||
patches[patchi] =
|
patches[patchi] =
|
||||||
surfacePatch
|
surfacePatch
|
||||||
|
|||||||
Reference in New Issue
Block a user