diff --git a/applications/solvers/combustion/XiFoam/XiDyMFoam/createControls.H b/applications/solvers/combustion/XiFoam/XiDyMFoam/createControls.H index aed0e76956..4c888d9e3a 100644 --- a/applications/solvers/combustion/XiFoam/XiDyMFoam/createControls.H +++ b/applications/solvers/combustion/XiFoam/XiDyMFoam/createControls.H @@ -2,10 +2,10 @@ bool correctPhi ( - pimple.dict().lookupOrDefault("correctPhi", true) + pimple.dict().lookupOrDefault("correctPhi", true) ); bool checkMeshCourantNo ( - pimple.dict().lookupOrDefault("checkMeshCourantNo", false) + pimple.dict().lookupOrDefault("checkMeshCourantNo", false) ); diff --git a/applications/solvers/combustion/XiFoam/XiDyMFoam/readControls.H b/applications/solvers/combustion/XiFoam/XiDyMFoam/readControls.H index ed2db49fb4..08ab3a6af7 100644 --- a/applications/solvers/combustion/XiFoam/XiDyMFoam/readControls.H +++ b/applications/solvers/combustion/XiFoam/XiDyMFoam/readControls.H @@ -1,6 +1,6 @@ #include "readTimeControls.H" -correctPhi = pimple.dict().lookupOrDefault("correctPhi", true); +correctPhi = pimple.dict().lookupOrDefault("correctPhi", true); checkMeshCourantNo = - pimple.dict().lookupOrDefault("checkMeshCourantNo", false); + pimple.dict().lookupOrDefault("checkMeshCourantNo", false); diff --git a/applications/solvers/combustion/fireFoam/createFields.H b/applications/solvers/combustion/fireFoam/createFields.H index 626e1652ef..35781d27d5 100644 --- a/applications/solvers/combustion/fireFoam/createFields.H +++ b/applications/solvers/combustion/fireFoam/createFields.H @@ -121,14 +121,14 @@ IOdictionary additionalControlsDict ) ); -Switch solvePrimaryRegion +bool solvePrimaryRegion ( - additionalControlsDict.lookup("solvePrimaryRegion") + additionalControlsDict.lookupOrDefault("solvePrimaryRegion", true) ); -Switch solvePyrolysisRegion +bool solvePyrolysisRegion ( - additionalControlsDict.lookupOrDefault("solvePyrolysisRegion", true) + additionalControlsDict.lookupOrDefault("solvePyrolysisRegion", true) ); volScalarField Qdot diff --git a/applications/solvers/combustion/fireFoam/phrghEqn.H b/applications/solvers/combustion/fireFoam/phrghEqn.H index 3c5175f41f..5d844d61cc 100644 --- a/applications/solvers/combustion/fireFoam/phrghEqn.H +++ b/applications/solvers/combustion/fireFoam/phrghEqn.H @@ -1,4 +1,4 @@ -if (pimple.dict().lookupOrDefault("hydrostaticInitialization", false)) +if (pimple.dict().lookupOrDefault("hydrostaticInitialization", false)) { volScalarField& ph_rgh = regIOobject::store ( diff --git a/applications/solvers/compressible/rhoPimpleAdiabaticFoam/EEqn.H b/applications/solvers/compressible/rhoPimpleAdiabaticFoam/EEqn.H index 9dae89f003..a3bd66654d 100644 --- a/applications/solvers/compressible/rhoPimpleAdiabaticFoam/EEqn.H +++ b/applications/solvers/compressible/rhoPimpleAdiabaticFoam/EEqn.H @@ -17,7 +17,7 @@ const dictionary& eosDict = thermoDict.subDict("equationOfState"); - bool local = eosDict.lookupOrDefault("local", false); + bool local = eosDict.lookupOrDefault("local", false); // Evolve T as: // diff --git a/applications/solvers/compressible/rhoPimpleFoam/overRhoPimpleDyMFoam/createControls.H b/applications/solvers/compressible/rhoPimpleFoam/overRhoPimpleDyMFoam/createControls.H index aed0e76956..4c888d9e3a 100644 --- a/applications/solvers/compressible/rhoPimpleFoam/overRhoPimpleDyMFoam/createControls.H +++ b/applications/solvers/compressible/rhoPimpleFoam/overRhoPimpleDyMFoam/createControls.H @@ -2,10 +2,10 @@ bool correctPhi ( - pimple.dict().lookupOrDefault("correctPhi", true) + pimple.dict().lookupOrDefault("correctPhi", true) ); bool checkMeshCourantNo ( - pimple.dict().lookupOrDefault("checkMeshCourantNo", false) + pimple.dict().lookupOrDefault("checkMeshCourantNo", false) ); diff --git a/applications/solvers/compressible/rhoPimpleFoam/overRhoPimpleDyMFoam/readControls.H b/applications/solvers/compressible/rhoPimpleFoam/overRhoPimpleDyMFoam/readControls.H index ed2db49fb4..08ab3a6af7 100644 --- a/applications/solvers/compressible/rhoPimpleFoam/overRhoPimpleDyMFoam/readControls.H +++ b/applications/solvers/compressible/rhoPimpleFoam/overRhoPimpleDyMFoam/readControls.H @@ -1,6 +1,6 @@ #include "readTimeControls.H" -correctPhi = pimple.dict().lookupOrDefault("correctPhi", true); +correctPhi = pimple.dict().lookupOrDefault("correctPhi", true); checkMeshCourantNo = - pimple.dict().lookupOrDefault("checkMeshCourantNo", false); + pimple.dict().lookupOrDefault("checkMeshCourantNo", false); diff --git a/applications/solvers/compressible/rhoPimpleFoam/rhoPimpleDyMFoam/createControls.H b/applications/solvers/compressible/rhoPimpleFoam/rhoPimpleDyMFoam/createControls.H index aed0e76956..4c888d9e3a 100644 --- a/applications/solvers/compressible/rhoPimpleFoam/rhoPimpleDyMFoam/createControls.H +++ b/applications/solvers/compressible/rhoPimpleFoam/rhoPimpleDyMFoam/createControls.H @@ -2,10 +2,10 @@ bool correctPhi ( - pimple.dict().lookupOrDefault("correctPhi", true) + pimple.dict().lookupOrDefault("correctPhi", true) ); bool checkMeshCourantNo ( - pimple.dict().lookupOrDefault("checkMeshCourantNo", false) + pimple.dict().lookupOrDefault("checkMeshCourantNo", false) ); diff --git a/applications/solvers/compressible/rhoPimpleFoam/rhoPimpleDyMFoam/readControls.H b/applications/solvers/compressible/rhoPimpleFoam/rhoPimpleDyMFoam/readControls.H index ed2db49fb4..08ab3a6af7 100644 --- a/applications/solvers/compressible/rhoPimpleFoam/rhoPimpleDyMFoam/readControls.H +++ b/applications/solvers/compressible/rhoPimpleFoam/rhoPimpleDyMFoam/readControls.H @@ -1,6 +1,6 @@ #include "readTimeControls.H" -correctPhi = pimple.dict().lookupOrDefault("correctPhi", true); +correctPhi = pimple.dict().lookupOrDefault("correctPhi", true); checkMeshCourantNo = - pimple.dict().lookupOrDefault("checkMeshCourantNo", false); + pimple.dict().lookupOrDefault("checkMeshCourantNo", false); diff --git a/applications/solvers/lagrangian/reactingParcelFoam/createFields.H b/applications/solvers/lagrangian/reactingParcelFoam/createFields.H index b6673dae16..66c70f5e39 100644 --- a/applications/solvers/lagrangian/reactingParcelFoam/createFields.H +++ b/applications/solvers/lagrangian/reactingParcelFoam/createFields.H @@ -105,9 +105,9 @@ forAll(Y, i) } fields.add(thermo.he()); -Switch solvePrimaryRegion +bool solvePrimaryRegion ( - pimple.dict().lookupOrDefault("solvePrimaryRegion", true) + pimple.dict().lookupOrDefault("solvePrimaryRegion", true) ); volScalarField Qdot diff --git a/applications/solvers/multiphase/cavitatingFoam/cavitatingDyMFoam/createControls.H b/applications/solvers/multiphase/cavitatingFoam/cavitatingDyMFoam/createControls.H index fbda6ae1a1..9f3fba812c 100644 --- a/applications/solvers/multiphase/cavitatingFoam/cavitatingDyMFoam/createControls.H +++ b/applications/solvers/multiphase/cavitatingFoam/cavitatingDyMFoam/createControls.H @@ -1,11 +1,11 @@ #include "createTimeControls.H" +bool correctPhi +( + pimple.dict().lookupOrDefault("correctPhi", true) +); + scalar maxAcousticCo ( readScalar(runTime.controlDict().lookup("maxAcousticCo")) ); - -bool correctPhi -( - pimple.dict().lookupOrDefault("correctPhi", true) -); diff --git a/applications/solvers/multiphase/cavitatingFoam/cavitatingDyMFoam/readControls.H b/applications/solvers/multiphase/cavitatingFoam/cavitatingDyMFoam/readControls.H index ad79c78c61..ad5e574527 100644 --- a/applications/solvers/multiphase/cavitatingFoam/cavitatingDyMFoam/readControls.H +++ b/applications/solvers/multiphase/cavitatingFoam/cavitatingDyMFoam/readControls.H @@ -1,4 +1,4 @@ #include "readTimeControls.H" +correctPhi = pimple.dict().lookupOrDefault("correctPhi", true); maxAcousticCo = readScalar(runTime.controlDict().lookup("maxAcousticCo")); -correctPhi = pimple.dict().lookupOrDefault("correctPhi", true); diff --git a/applications/solvers/multiphase/compressibleInterFoam/compressibleInterDyMFoam/createControls.H b/applications/solvers/multiphase/compressibleInterFoam/compressibleInterDyMFoam/createControls.H index f1930cdfc0..1c2daf3427 100644 --- a/applications/solvers/multiphase/compressibleInterFoam/compressibleInterDyMFoam/createControls.H +++ b/applications/solvers/multiphase/compressibleInterFoam/compressibleInterDyMFoam/createControls.H @@ -2,15 +2,15 @@ bool correctPhi ( - pimple.dict().lookupOrDefault("correctPhi", true) + pimple.dict().lookupOrDefault("correctPhi", true) ); bool checkMeshCourantNo ( - pimple.dict().lookupOrDefault("checkMeshCourantNo", false) + pimple.dict().lookupOrDefault("checkMeshCourantNo", false) ); bool moveMeshOuterCorrectors ( - pimple.dict().lookupOrDefault("moveMeshOuterCorrectors", false) + pimple.dict().lookupOrDefault("moveMeshOuterCorrectors", false) ); diff --git a/applications/solvers/multiphase/compressibleInterFoam/compressibleInterDyMFoam/readControls.H b/applications/solvers/multiphase/compressibleInterFoam/compressibleInterDyMFoam/readControls.H index d82dcecb8a..75e6cf6909 100644 --- a/applications/solvers/multiphase/compressibleInterFoam/compressibleInterDyMFoam/readControls.H +++ b/applications/solvers/multiphase/compressibleInterFoam/compressibleInterDyMFoam/readControls.H @@ -1,9 +1,9 @@ #include "readTimeControls.H" -correctPhi = pimple.dict().lookupOrDefault("correctPhi", true); +correctPhi = pimple.dict().lookupOrDefault("correctPhi", true); checkMeshCourantNo = - pimple.dict().lookupOrDefault("checkMeshCourantNo", false); + pimple.dict().lookupOrDefault("checkMeshCourantNo", false); moveMeshOuterCorrectors = - pimple.dict().lookupOrDefault("moveMeshOuterCorrectors", false); + pimple.dict().lookupOrDefault("moveMeshOuterCorrectors", false); diff --git a/applications/solvers/multiphase/driftFluxFoam/alphaControls.H b/applications/solvers/multiphase/driftFluxFoam/alphaControls.H index 759e0c22b6..95154c6a15 100644 --- a/applications/solvers/multiphase/driftFluxFoam/alphaControls.H +++ b/applications/solvers/multiphase/driftFluxFoam/alphaControls.H @@ -4,12 +4,12 @@ label nAlphaCorr(readLabel(alphaControls.lookup("nAlphaCorr"))); label nAlphaSubCycles(readLabel(alphaControls.lookup("nAlphaSubCycles"))); -bool MULESCorr(alphaControls.lookupOrDefault("MULESCorr", false)); +bool MULESCorr(alphaControls.lookupOrDefault("MULESCorr", false)); // Apply the compression correction from the previous iteration // Improves efficiency for steady-simulations but can only be applied // once the alpha field is reasonably steady, i.e. fully developed bool alphaApplyPrevCorr ( - alphaControls.lookupOrDefault("alphaApplyPrevCorr", false) + alphaControls.lookupOrDefault("alphaApplyPrevCorr", false) ); diff --git a/applications/solvers/multiphase/interFoam/interDyMFoam/createDyMControls.H b/applications/solvers/multiphase/interFoam/interDyMFoam/createDyMControls.H index 5055ac090a..f2322bb143 100644 --- a/applications/solvers/multiphase/interFoam/interDyMFoam/createDyMControls.H +++ b/applications/solvers/multiphase/interFoam/interDyMFoam/createDyMControls.H @@ -1,14 +1,14 @@ bool correctPhi ( - pimple.dict().lookupOrDefault("correctPhi", true) + pimple.dict().lookupOrDefault("correctPhi", true) ); bool checkMeshCourantNo ( - pimple.dict().lookupOrDefault("checkMeshCourantNo", false) + pimple.dict().lookupOrDefault("checkMeshCourantNo", false) ); bool moveMeshOuterCorrectors ( - pimple.dict().lookupOrDefault("moveMeshOuterCorrectors", false) + pimple.dict().lookupOrDefault("moveMeshOuterCorrectors", false) ); diff --git a/applications/solvers/multiphase/interFoam/interDyMFoam/readControls.H b/applications/solvers/multiphase/interFoam/interDyMFoam/readControls.H index d82dcecb8a..75e6cf6909 100644 --- a/applications/solvers/multiphase/interFoam/interDyMFoam/readControls.H +++ b/applications/solvers/multiphase/interFoam/interDyMFoam/readControls.H @@ -1,9 +1,9 @@ #include "readTimeControls.H" -correctPhi = pimple.dict().lookupOrDefault("correctPhi", true); +correctPhi = pimple.dict().lookupOrDefault("correctPhi", true); checkMeshCourantNo = - pimple.dict().lookupOrDefault("checkMeshCourantNo", false); + pimple.dict().lookupOrDefault("checkMeshCourantNo", false); moveMeshOuterCorrectors = - pimple.dict().lookupOrDefault("moveMeshOuterCorrectors", false); + pimple.dict().lookupOrDefault("moveMeshOuterCorrectors", false); diff --git a/applications/solvers/multiphase/interFoam/overInterDyMFoam/createDyMControls.H b/applications/solvers/multiphase/interFoam/overInterDyMFoam/createDyMControls.H index 00673cec24..603ae1f545 100644 --- a/applications/solvers/multiphase/interFoam/overInterDyMFoam/createDyMControls.H +++ b/applications/solvers/multiphase/interFoam/overInterDyMFoam/createDyMControls.H @@ -1,16 +1,16 @@ bool correctPhi ( - pimple.dict().lookupOrDefault("correctPhi", true) + pimple.dict().lookupOrDefault("correctPhi", true) ); bool checkMeshCourantNo ( - pimple.dict().lookupOrDefault("checkMeshCourantNo", false) + pimple.dict().lookupOrDefault("checkMeshCourantNo", false) ); bool moveMeshOuterCorrectors ( - pimple.dict().lookupOrDefault("moveMeshOuterCorrectors", false) + pimple.dict().lookupOrDefault("moveMeshOuterCorrectors", false) ); diff --git a/applications/solvers/multiphase/interFoam/overInterDyMFoam/readControls.H b/applications/solvers/multiphase/interFoam/overInterDyMFoam/readControls.H index a2acf92069..0f9f7c6738 100644 --- a/applications/solvers/multiphase/interFoam/overInterDyMFoam/readControls.H +++ b/applications/solvers/multiphase/interFoam/overInterDyMFoam/readControls.H @@ -1,12 +1,12 @@ #include "readTimeControls.H" -correctPhi = pimple.dict().lookupOrDefault("correctPhi", false); +correctPhi = pimple.dict().lookupOrDefault("correctPhi", false); checkMeshCourantNo = - pimple.dict().lookupOrDefault("checkMeshCourantNo", false); + pimple.dict().lookupOrDefault("checkMeshCourantNo", false); moveMeshOuterCorrectors = - pimple.dict().lookupOrDefault("moveMeshOuterCorrectors", false); + pimple.dict().lookupOrDefault("moveMeshOuterCorrectors", false); massFluxInterpolation = pimple.dict().lookupOrDefault("massFluxInterpolation", false); diff --git a/applications/solvers/multiphase/interPhaseChangeFoam/alphaControls.H b/applications/solvers/multiphase/interPhaseChangeFoam/alphaControls.H index 2b42206226..bd26f0b927 100644 --- a/applications/solvers/multiphase/interPhaseChangeFoam/alphaControls.H +++ b/applications/solvers/multiphase/interPhaseChangeFoam/alphaControls.H @@ -4,14 +4,14 @@ label nAlphaCorr(readLabel(alphaControls.lookup("nAlphaCorr"))); label nAlphaSubCycles(readLabel(alphaControls.lookup("nAlphaSubCycles"))); -bool MULESCorr(alphaControls.lookupOrDefault("MULESCorr", false)); +bool MULESCorr(alphaControls.lookupOrDefault("MULESCorr", false)); // Apply the compression correction from the previous iteration // Improves efficiency for steady-simulations but can only be applied // once the alpha field is reasonably steady, i.e. fully developed //bool alphaApplyPrevCorr //( -// alphaControls.lookupOrDefault("alphaApplyPrevCorr", false) +// alphaControls.lookupOrDefault("alphaApplyPrevCorr", false) //); // Isotropic compression coefficient diff --git a/applications/solvers/multiphase/reactingEulerFoam/reactingMultiphaseEulerFoam/reactingMultiphaseEulerFoam.C b/applications/solvers/multiphase/reactingEulerFoam/reactingMultiphaseEulerFoam/reactingMultiphaseEulerFoam.C index 55b6773862..87b8449cb4 100644 --- a/applications/solvers/multiphase/reactingEulerFoam/reactingMultiphaseEulerFoam/reactingMultiphaseEulerFoam.C +++ b/applications/solvers/multiphase/reactingEulerFoam/reactingMultiphaseEulerFoam/reactingMultiphaseEulerFoam.C @@ -62,14 +62,14 @@ int main(int argc, char *argv[]) #include "setInitialDeltaT.H" } - // Switch faceMomentum + // bool faceMomentum // ( - // pimple.dict().lookupOrDefault("faceMomentum", false) + // pimple.dict().lookupOrDefault("faceMomentum", false) // ); - // Switch implicitPhasePressure + // bool implicitPhasePressure // ( - // mesh.solverDict(alpha1.name()).lookupOrDefault + // mesh.solverDict(alpha1.name()).lookupOrDefault // ( // "implicitPhasePressure", false // ) diff --git a/applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/reactingTwoPhaseEulerFoam.C b/applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/reactingTwoPhaseEulerFoam.C index 399a596944..edcd357e0e 100644 --- a/applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/reactingTwoPhaseEulerFoam.C +++ b/applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/reactingTwoPhaseEulerFoam.C @@ -91,14 +91,14 @@ int main(int argc, char *argv[]) #include "setInitialDeltaT.H" } - Switch faceMomentum + bool faceMomentum ( - pimple.dict().lookupOrDefault("faceMomentum", false) + pimple.dict().lookupOrDefault("faceMomentum", false) ); - Switch implicitPhasePressure + bool implicitPhasePressure ( - mesh.solverDict(alpha1.name()).lookupOrDefault + mesh.solverDict(alpha1.name()).lookupOrDefault ( "implicitPhasePressure", false ) diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseEulerFoam.C b/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseEulerFoam.C index 849c94fe23..6f46e2b044 100644 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseEulerFoam.C +++ b/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseEulerFoam.C @@ -57,14 +57,14 @@ int main(int argc, char *argv[]) #include "CourantNos.H" #include "setInitialDeltaT.H" - Switch faceMomentum + bool faceMomentum ( - pimple.dict().lookupOrDefault("faceMomentum", false) + pimple.dict().lookupOrDefault("faceMomentum", false) ); - Switch implicitPhasePressure + bool implicitPhasePressure ( - mesh.solverDict(alpha1.name()).lookupOrDefault + mesh.solverDict(alpha1.name()).lookupOrDefault ( "implicitPhasePressure", false ) diff --git a/applications/utilities/mesh/manipulation/moveDynamicMesh/moveDynamicMesh.C b/applications/utilities/mesh/manipulation/moveDynamicMesh/moveDynamicMesh.C index eadf3831f9..d57e47a2e1 100644 --- a/applications/utilities/mesh/manipulation/moveDynamicMesh/moveDynamicMesh.C +++ b/applications/utilities/mesh/manipulation/moveDynamicMesh/moveDynamicMesh.C @@ -183,7 +183,7 @@ int main(int argc, char *argv[]) bool moveMeshOuterCorrectors ( - pimple.dict().lookupOrDefault("moveMeshOuterCorrectors", false) + pimple.dict().lookupOrDefault("moveMeshOuterCorrectors", false) ); while (runTime.loop()) diff --git a/applications/utilities/preProcessing/viewFactorsGen/viewFactorsGen.C b/applications/utilities/preProcessing/viewFactorsGen/viewFactorsGen.C index 40132f1344..dae63600ab 100644 --- a/applications/utilities/preProcessing/viewFactorsGen/viewFactorsGen.C +++ b/applications/utilities/preProcessing/viewFactorsGen/viewFactorsGen.C @@ -282,10 +282,10 @@ int main(int argc, char *argv[]) const word viewFactorWall("viewFactorWall"); const bool writeViewFactors = - viewFactorDict.lookupOrDefault("writeViewFactorMatrix", false); + viewFactorDict.lookupOrDefault("writeViewFactorMatrix", false); const bool dumpRays = - viewFactorDict.lookupOrDefault("dumpRays", false); + viewFactorDict.lookupOrDefault("dumpRays", false); const label debug = viewFactorDict.lookupOrDefault