Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
fe8c5ff6
Commit
fe8c5ff6
authored
Feb 09, 2015
by
Henry
Browse files
Applications: use pimpleControl.dict() and simpleControl.dict() instead of looking-up the sub-dict
parent
156fd4dc
Changes
55
Hide whitespace changes
Inline
Side-by-side
applications/solvers/basic/laplacianFoam/laplacianFoam.C
View file @
fe8c5ff6
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011
-2015
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -40,10 +40,11 @@ int main(int argc, char *argv[])
#include
"createTime.H"
#include
"createMesh.H"
#include
"createFields.H"
simpleControl
simple
(
mesh
);
#include
"createFields.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Info
<<
"
\n
Calculating temperature distribution
\n
"
<<
endl
;
...
...
applications/solvers/basic/scalarTransportFoam/scalarTransportFoam.C
View file @
fe8c5ff6
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-201
3
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-201
5
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -40,11 +40,12 @@ int main(int argc, char *argv[])
#include
"setRootCase.H"
#include
"createTime.H"
#include
"createMesh.H"
#include
"createFields.H"
#include
"createFvOptions.H"
simpleControl
simple
(
mesh
);
#include
"createFields.H"
#include
"createFvOptions.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Info
<<
"
\n
Calculating scalar transport
\n
"
<<
endl
;
...
...
applications/solvers/combustion/PDRFoam/PDRFoam.C
View file @
fe8c5ff6
...
...
@@ -86,6 +86,9 @@ int main(int argc, char *argv[])
#include
"createTime.H"
#include
"createMesh.H"
pimpleControl
pimple
(
mesh
);
#include
"readCombustionProperties.H"
#include
"readGravitationalAcceleration.H"
#include
"createFields.H"
...
...
@@ -94,8 +97,6 @@ int main(int argc, char *argv[])
#include
"compressibleCourantNo.H"
#include
"setInitialDeltaT.H"
pimpleControl
pimple
(
mesh
);
scalar
StCoNum
=
0
.
0
;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
...
applications/solvers/combustion/PDRFoam/PDRFoamAutoRefine.C
View file @
fe8c5ff6
...
...
@@ -76,6 +76,9 @@ int main(int argc, char *argv[])
#include
"createTime.H"
#include
"createDynamicFvMesh.H"
pimpleControl
pimple
(
mesh
);
#include
"readCombustionProperties.H"
#include
"readGravitationalAcceleration.H"
#include
"createFields.H"
...
...
@@ -84,8 +87,6 @@ int main(int argc, char *argv[])
#include
"compressibleCourantNo.H"
#include
"setInitialDeltaT.H"
pimpleControl
pimple
(
mesh
);
scalar
StCoNum
=
0
.
0
;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
...
applications/solvers/combustion/XiFoam/XiFoam.C
View file @
fe8c5ff6
...
...
@@ -66,6 +66,9 @@ int main(int argc, char *argv[])
#include
"createTime.H"
#include
"createMesh.H"
pimpleControl
pimple
(
mesh
);
#include
"readCombustionProperties.H"
#include
"readGravitationalAcceleration.H"
#include
"createFields.H"
...
...
@@ -75,8 +78,6 @@ int main(int argc, char *argv[])
#include
"compressibleCourantNo.H"
#include
"setInitialDeltaT.H"
pimpleControl
pimple
(
mesh
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Info
<<
"
\n
Starting time loop
\n
"
<<
endl
;
...
...
applications/solvers/combustion/coldEngineFoam/coldEngineFoam.C
View file @
fe8c5ff6
...
...
@@ -46,6 +46,9 @@ int main(int argc, char *argv[])
#include
"createEngineTime.H"
#include
"createEngineMesh.H"
pimpleControl
pimple
(
mesh
);
#include
"createFields.H"
#include
"createFvOptions.H"
#include
"createRhoUf.H"
...
...
@@ -55,8 +58,6 @@ int main(int argc, char *argv[])
#include
"setInitialDeltaT.H"
#include
"startSummary.H"
pimpleControl
pimple
(
mesh
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Info
<<
"
\n
Starting time loop
\n
"
<<
endl
;
...
...
applications/solvers/combustion/engineFoam/engineFoam.C
View file @
fe8c5ff6
...
...
@@ -69,6 +69,9 @@ int main(int argc, char *argv[])
#include
"createEngineTime.H"
#include
"createEngineMesh.H"
pimpleControl
pimple
(
mesh
);
#include
"readCombustionProperties.H"
#include
"createFields.H"
#include
"createFvOptions.H"
...
...
@@ -79,8 +82,6 @@ int main(int argc, char *argv[])
#include
"setInitialDeltaT.H"
#include
"startSummary.H"
pimpleControl
pimple
(
mesh
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Info
<<
"
\n
Starting time loop
\n
"
<<
endl
;
...
...
applications/solvers/combustion/fireFoam/fireFoam.C
View file @
fe8c5ff6
...
...
@@ -51,6 +51,9 @@ int main(int argc, char *argv[])
#include
"createTime.H"
#include
"createMesh.H"
pimpleControl
pimple
(
mesh
);
#include
"readGravitationalAcceleration.H"
#include
"createFields.H"
#include
"createFvOptions.H"
...
...
@@ -64,8 +67,6 @@ int main(int argc, char *argv[])
#include
"setInitialDeltaT.H"
#include
"readPyrolysisTimeControls.H"
pimpleControl
pimple
(
mesh
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Info
<<
"
\n
Starting time loop
\n
"
<<
endl
;
...
...
applications/solvers/combustion/reactingFoam/reactingFoam.C
View file @
fe8c5ff6
...
...
@@ -43,6 +43,9 @@ int main(int argc, char *argv[])
#include
"setRootCase.H"
#include
"createTime.H"
#include
"createMesh.H"
pimpleControl
pimple
(
mesh
);
#include
"readGravitationalAcceleration.H"
#include
"createFields.H"
#include
"createFvOptions.H"
...
...
@@ -51,8 +54,6 @@ int main(int argc, char *argv[])
#include
"compressibleCourantNo.H"
#include
"setInitialDeltaT.H"
pimpleControl
pimple
(
mesh
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Info
<<
"
\n
Starting time loop
\n
"
<<
endl
;
...
...
applications/solvers/combustion/reactingFoam/rhoReactingBuoyantFoam/rhoReactingBuoyantFoam.C
View file @
fe8c5ff6
...
...
@@ -45,6 +45,9 @@ int main(int argc, char *argv[])
#include
"setRootCase.H"
#include
"createTime.H"
#include
"createMesh.H"
pimpleControl
pimple
(
mesh
);
#include
"readGravitationalAcceleration.H"
#include
"createFields.H"
#include
"createFvOptions.H"
...
...
@@ -53,8 +56,6 @@ int main(int argc, char *argv[])
#include
"compressibleCourantNo.H"
#include
"setInitialDeltaT.H"
pimpleControl
pimple
(
mesh
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Info
<<
"
\n
Starting time loop
\n
"
<<
endl
;
...
...
applications/solvers/combustion/reactingFoam/rhoReactingFoam/rhoReactingFoam.C
View file @
fe8c5ff6
...
...
@@ -44,6 +44,9 @@ int main(int argc, char *argv[])
#include
"setRootCase.H"
#include
"createTime.H"
#include
"createMesh.H"
pimpleControl
pimple
(
mesh
);
#include
"readGravitationalAcceleration.H"
#include
"createFields.H"
#include
"createFvOptions.H"
...
...
@@ -52,8 +55,6 @@ int main(int argc, char *argv[])
#include
"compressibleCourantNo.H"
#include
"setInitialDeltaT.H"
pimpleControl
pimple
(
mesh
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Info
<<
"
\n
Starting time loop
\n
"
<<
endl
;
...
...
applications/solvers/electromagnetics/magneticFoam/magneticFoam.C
View file @
fe8c5ff6
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011
-2015
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -65,10 +65,11 @@ int main(int argc, char *argv[])
#include
"setRootCase.H"
#include
"createTime.H"
#include
"createMesh.H"
#include
"createFields.H"
simpleControl
simple
(
mesh
);
#include
"createFields.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Info
<<
"Calculating the magnetic field potential"
<<
endl
;
...
...
applications/solvers/heatTransfer/buoyantBoussinesqPimpleFoam/buoyantBoussinesqPimpleFoam.C
View file @
fe8c5ff6
...
...
@@ -60,6 +60,9 @@ int main(int argc, char *argv[])
#include
"setRootCase.H"
#include
"createTime.H"
#include
"createMesh.H"
pimpleControl
pimple
(
mesh
);
#include
"readGravitationalAcceleration.H"
#include
"createFields.H"
#include
"createIncompressibleRadiationModel.H"
...
...
@@ -69,8 +72,6 @@ int main(int argc, char *argv[])
#include
"CourantNo.H"
#include
"setInitialDeltaT.H"
pimpleControl
pimple
(
mesh
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Info
<<
"
\n
Starting time loop
\n
"
<<
endl
;
...
...
applications/solvers/heatTransfer/buoyantBoussinesqPimpleFoam/createFields.H
View file @
fe8c5ff6
...
...
@@ -102,7 +102,7 @@
(
p
,
p_rgh
,
mesh
.
solutionDict
().
subDict
(
"PIMPLE"
),
pimple
.
dict
(
),
pRefCell
,
pRefValue
);
...
...
applications/solvers/heatTransfer/buoyantBoussinesqSimpleFoam/buoyantBoussinesqSimpleFoam.C
View file @
fe8c5ff6
...
...
@@ -59,13 +59,14 @@ int main(int argc, char *argv[])
#include
"setRootCase.H"
#include
"createTime.H"
#include
"createMesh.H"
simpleControl
simple
(
mesh
);
#include
"readGravitationalAcceleration.H"
#include
"createFields.H"
#include
"createFvOptions.H"
#include
"initContinuityErrs.H"
simpleControl
simple
(
mesh
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Info
<<
"
\n
Starting time loop
\n
"
<<
endl
;
...
...
applications/solvers/heatTransfer/buoyantBoussinesqSimpleFoam/createFields.H
View file @
fe8c5ff6
...
...
@@ -102,7 +102,7 @@
(
p
,
p_rgh
,
mesh
.
solutionDict
().
subDict
(
"SIMPLE"
),
simple
.
dict
(
),
pRefCell
,
pRefValue
);
...
...
applications/solvers/heatTransfer/buoyantPimpleFoam/buoyantPimpleFoam.C
View file @
fe8c5ff6
...
...
@@ -48,6 +48,9 @@ int main(int argc, char *argv[])
#include
"setRootCase.H"
#include
"createTime.H"
#include
"createMesh.H"
pimpleControl
pimple
(
mesh
);
#include
"readGravitationalAcceleration.H"
#include
"createFields.H"
#include
"createFvOptions.H"
...
...
@@ -57,8 +60,6 @@ int main(int argc, char *argv[])
#include
"compressibleCourantNo.H"
#include
"setInitialDeltaT.H"
pimpleControl
pimple
(
mesh
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Info
<<
"
\n
Starting time loop
\n
"
<<
endl
;
...
...
applications/solvers/heatTransfer/buoyantSimpleFoam/buoyantSimpleFoam.C
View file @
fe8c5ff6
...
...
@@ -45,14 +45,15 @@ int main(int argc, char *argv[])
#include
"setRootCase.H"
#include
"createTime.H"
#include
"createMesh.H"
simpleControl
simple
(
mesh
);
#include
"readGravitationalAcceleration.H"
#include
"createFields.H"
#include
"createFvOptions.H"
#include
"createRadiationModel.H"
#include
"initContinuityErrs.H"
simpleControl
simple
(
mesh
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Info
<<
"
\n
Starting time loop
\n
"
<<
endl
;
...
...
applications/solvers/heatTransfer/buoyantSimpleFoam/createFields.H
View file @
fe8c5ff6
...
...
@@ -77,7 +77,7 @@
(
p
,
p_rgh
,
mesh
.
solutionDict
().
subDict
(
"SIMPLE"
),
simple
.
dict
(
),
pRefCell
,
pRefValue
);
...
...
applications/solvers/incompressible/adjointShapeOptimizationFoam/adjointShapeOptimizationFoam.C
View file @
fe8c5ff6
...
...
@@ -72,12 +72,13 @@ int main(int argc, char *argv[])
#include
"createTime.H"
#include
"createMesh.H"
simpleControl
simple
(
mesh
);
#include
"createFields.H"
#include
"initContinuityErrs.H"
#include
"initAdjointContinuityErrs.H"
simpleControl
simple
(
mesh
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Info
<<
"
\n
Starting time loop
\n
"
<<
endl
;
...
...
Prev
1
2
3
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment