diff --git a/applications/solvers/basic/potentialFoam/potentialFoam.C b/applications/solvers/basic/potentialFoam/potentialFoam.C index db5c36129..eca2c6c22 100644 --- a/applications/solvers/basic/potentialFoam/potentialFoam.C +++ b/applications/solvers/basic/potentialFoam/potentialFoam.C @@ -67,6 +67,12 @@ int main(int argc, char *argv[]) "Calculate and write the pressure field" ); + argList::addBoolOption + ( + "withFunctionObjects", + "execute functionObjects" + ); + #include "setRootCase.H" #include "createTime.H" #include "createMesh.H" diff --git a/src/OpenFOAM/db/Time/Time.C b/src/OpenFOAM/db/Time/Time.C index ec412d5fd..f7b3f18c7 100644 --- a/src/OpenFOAM/db/Time/Time.C +++ b/src/OpenFOAM/db/Time/Time.C @@ -486,7 +486,13 @@ Foam::Time::Time graphFormat_("raw"), runTimeModifiable_(false), - functionObjects_(*this, !args.optionFound("noFunctionObjects")) + functionObjects_ + ( + *this, + argList::validOptions.found("withFunctionObjects") + ? args.optionFound("withFunctionObjects") + : !args.optionFound("noFunctionObjects") + ) { libs_.open(controlDict_, "libs"); diff --git a/tutorials/basic/potentialFoam/cylinder/Allrun b/tutorials/basic/potentialFoam/cylinder/Allrun index ea05ecadc..5f79f4c22 100755 --- a/tutorials/basic/potentialFoam/cylinder/Allrun +++ b/tutorials/basic/potentialFoam/cylinder/Allrun @@ -8,7 +8,7 @@ application=`getApplication` cp -r 0.org 0 > /dev/null 2>&1 runApplication blockMesh -runApplication $application -writePhi -writep +runApplication $application -withFunctionObjects -writePhi -writep runApplication streamFunction # ----------------------------------------------------------------- end-of-file diff --git a/tutorials/basic/potentialFoam/cylinder/constant/polyMesh/boundary b/tutorials/basic/potentialFoam/cylinder/constant/polyMesh/boundary new file mode 100644 index 000000000..0acbcb386 --- /dev/null +++ b/tutorials/basic/potentialFoam/cylinder/constant/polyMesh/boundary @@ -0,0 +1,62 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class polyBoundaryMesh; + location "constant/polyMesh"; + object boundary; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +6 +( + down + { + type symmetryPlane; + inGroups 1(symmetryPlane); + nFaces 60; + startFace 3890; + } + right + { + type patch; + nFaces 30; + startFace 3950; + } + up + { + type symmetryPlane; + inGroups 1(symmetryPlane); + nFaces 60; + startFace 3980; + } + left + { + type patch; + nFaces 30; + startFace 4040; + } + cylinder + { + type symmetry; + inGroups 1(symmetry); + nFaces 40; + startFace 4070; + } + defaultFaces + { + type empty; + inGroups 1(empty); + nFaces 4000; + startFace 4110; + } +) + +// ************************************************************************* // diff --git a/tutorials/basic/potentialFoam/pitzDaily/constant/polyMesh/boundary b/tutorials/basic/potentialFoam/pitzDaily/constant/polyMesh/boundary new file mode 100644 index 000000000..581ceffc7 --- /dev/null +++ b/tutorials/basic/potentialFoam/pitzDaily/constant/polyMesh/boundary @@ -0,0 +1,55 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class polyBoundaryMesh; + location "constant/polyMesh"; + object boundary; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +5 +( + inlet + { + type patch; + nFaces 30; + startFace 24170; + } + outlet + { + type patch; + nFaces 57; + startFace 24200; + } + upperWall + { + type wall; + inGroups 1(wall); + nFaces 223; + startFace 24257; + } + lowerWall + { + type wall; + inGroups 1(wall); + nFaces 250; + startFace 24480; + } + frontAndBack + { + type empty; + inGroups 1(empty); + nFaces 24450; + startFace 24730; + } +) + +// ************************************************************************* // diff --git a/tutorials/incompressible/pisoFoam/les/motorBike/motorBike/Allrun b/tutorials/incompressible/pisoFoam/les/motorBike/motorBike/Allrun index a4b504825..29462ed53 100755 --- a/tutorials/incompressible/pisoFoam/les/motorBike/motorBike/Allrun +++ b/tutorials/incompressible/pisoFoam/les/motorBike/motorBike/Allrun @@ -23,7 +23,7 @@ ls -d processor* | xargs -I {} cp -r 0.org ./{}/0 $1 runParallel renumberMesh 8 -overwrite -runParallel potentialFoam 8 -initialiseUBCs -noFunctionObjects +runParallel potentialFoam 8 -initialiseUBCs runParallel `getApplication` 8 diff --git a/tutorials/incompressible/pisoFoam/les/pitzDaily/constant/polyMesh/boundary b/tutorials/incompressible/pisoFoam/les/pitzDaily/constant/polyMesh/boundary new file mode 100644 index 000000000..581ceffc7 --- /dev/null +++ b/tutorials/incompressible/pisoFoam/les/pitzDaily/constant/polyMesh/boundary @@ -0,0 +1,55 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class polyBoundaryMesh; + location "constant/polyMesh"; + object boundary; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +5 +( + inlet + { + type patch; + nFaces 30; + startFace 24170; + } + outlet + { + type patch; + nFaces 57; + startFace 24200; + } + upperWall + { + type wall; + inGroups 1(wall); + nFaces 223; + startFace 24257; + } + lowerWall + { + type wall; + inGroups 1(wall); + nFaces 250; + startFace 24480; + } + frontAndBack + { + type empty; + inGroups 1(empty); + nFaces 24450; + startFace 24730; + } +) + +// ************************************************************************* // diff --git a/tutorials/incompressible/pisoFoam/ras/cavity/constant/polyMesh/boundary b/tutorials/incompressible/pisoFoam/ras/cavity/constant/polyMesh/boundary new file mode 100644 index 000000000..6eb3105b4 --- /dev/null +++ b/tutorials/incompressible/pisoFoam/ras/cavity/constant/polyMesh/boundary @@ -0,0 +1,43 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class polyBoundaryMesh; + location "constant/polyMesh"; + object boundary; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +3 +( + movingWall + { + type wall; + inGroups 1(wall); + nFaces 20; + startFace 760; + } + fixedWalls + { + type wall; + inGroups 1(wall); + nFaces 60; + startFace 780; + } + frontAndBack + { + type empty; + inGroups 1(empty); + nFaces 800; + startFace 840; + } +) + +// ************************************************************************* // diff --git a/tutorials/incompressible/simpleFoam/motorBike/Allrun b/tutorials/incompressible/simpleFoam/motorBike/Allrun index 6a993423c..7b751e1a1 100755 --- a/tutorials/incompressible/simpleFoam/motorBike/Allrun +++ b/tutorials/incompressible/simpleFoam/motorBike/Allrun @@ -21,7 +21,7 @@ ls -d processor* | xargs -I {} rm -rf ./{}/0 ls -d processor* | xargs -I {} cp -r 0.org ./{}/0 runParallel patchSummary 6 -runParallel potentialFoam 6 -noFunctionObjects +runParallel potentialFoam 6 runParallel $(getApplication) 6 runApplication reconstructParMesh -constant diff --git a/tutorials/lagrangian/simpleReactingParcelFoam/verticalChannel/system/fvSchemes b/tutorials/lagrangian/simpleReactingParcelFoam/verticalChannel/system/fvSchemes index 1e024443b..994d4c27f 100644 --- a/tutorials/lagrangian/simpleReactingParcelFoam/verticalChannel/system/fvSchemes +++ b/tutorials/lagrangian/simpleReactingParcelFoam/verticalChannel/system/fvSchemes @@ -23,7 +23,6 @@ ddtSchemes gradSchemes { default Gauss linear; - grad(p) Gauss linear; } divSchemes