From fe16f10f26360dc3a3a524ccc69b9c628b55c1bd Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Mon, 9 May 2016 17:03:15 +0100 Subject: [PATCH] tutorials: "readFields" is no longer needed to post-process functionObjects Use the solver '-postProcess' command-line option instead of execFlowFunctionObjects --- .../propeller/system/controlDict | 1 - .../pimpleDyMFoam/propeller/system/readFields | 21 ------------------- .../les/motorBike/lesFiles/controlDict | 1 - .../motorBike/motorBike/system/controlDict | 6 ------ .../les/motorBike/motorBike/system/readFields | 21 ------------------- .../simpleFoam/motorBike/system/controlDict | 1 - .../simpleFoam/motorBike/system/readFields | 21 ------------------- 7 files changed, 72 deletions(-) delete mode 100644 tutorials/incompressible/pimpleDyMFoam/propeller/system/readFields delete mode 100644 tutorials/incompressible/pisoFoam/les/motorBike/motorBike/system/readFields delete mode 100644 tutorials/incompressible/simpleFoam/motorBike/system/readFields diff --git a/tutorials/incompressible/pimpleDyMFoam/propeller/system/controlDict b/tutorials/incompressible/pimpleDyMFoam/propeller/system/controlDict index 57b261e480..e14e81943b 100644 --- a/tutorials/incompressible/pimpleDyMFoam/propeller/system/controlDict +++ b/tutorials/incompressible/pimpleDyMFoam/propeller/system/controlDict @@ -54,7 +54,6 @@ maxCo 2; functions { - #include "readFields" #include "Q" #include "surfaces" #include "forces" diff --git a/tutorials/incompressible/pimpleDyMFoam/propeller/system/readFields b/tutorials/incompressible/pimpleDyMFoam/propeller/system/readFields deleted file mode 100644 index 57a93256db..0000000000 --- a/tutorials/incompressible/pimpleDyMFoam/propeller/system/readFields +++ /dev/null @@ -1,21 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: dev | -| \\ / A nd | Web: www.OpenFOAM.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -// Make sure all fields for functionObjects are loaded. Prevents any -// problems running with execFlowFunctionObjects. -readFields -{ - // Where to load it from (if not already in solver) - functionObjectLibs ("libfieldFunctionObjects.so"); - - type readFields; - fields (p U k); -} - - -// ************************************************************************* // diff --git a/tutorials/incompressible/pisoFoam/les/motorBike/lesFiles/controlDict b/tutorials/incompressible/pisoFoam/les/motorBike/lesFiles/controlDict index 86a623e506..45c33862db 100644 --- a/tutorials/incompressible/pisoFoam/les/motorBike/lesFiles/controlDict +++ b/tutorials/incompressible/pisoFoam/les/motorBike/lesFiles/controlDict @@ -49,7 +49,6 @@ runTimeModifiable true; functions { - #include "readFields" #include "cuttingPlane" #include "streamLines" #include "forceCoeffs" diff --git a/tutorials/incompressible/pisoFoam/les/motorBike/motorBike/system/controlDict b/tutorials/incompressible/pisoFoam/les/motorBike/motorBike/system/controlDict index d44525d3a3..1344e903a9 100644 --- a/tutorials/incompressible/pisoFoam/les/motorBike/motorBike/system/controlDict +++ b/tutorials/incompressible/pisoFoam/les/motorBike/motorBike/system/controlDict @@ -49,12 +49,6 @@ runTimeModifiable true; functions { - readFields - { - functionObjectLibs ( "libfieldFunctionObjects.so" ); - type readFields; - fields (p U); - } streamLines { type streamLine; diff --git a/tutorials/incompressible/pisoFoam/les/motorBike/motorBike/system/readFields b/tutorials/incompressible/pisoFoam/les/motorBike/motorBike/system/readFields deleted file mode 100644 index 74f082c98b..0000000000 --- a/tutorials/incompressible/pisoFoam/les/motorBike/motorBike/system/readFields +++ /dev/null @@ -1,21 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: dev | -| \\ / A nd | Web: www.OpenFOAM.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -// Make sure all fields for functionObjects are loaded. Prevents any -// problems running with execFlowFunctionObjects. -readFields -{ - // Where to load it from (if not already in solver) - functionObjectLibs ("libfieldFunctionObjects.so"); - - type readFields; - fields (p U); -} - - -// ************************************************************************* // diff --git a/tutorials/incompressible/simpleFoam/motorBike/system/controlDict b/tutorials/incompressible/simpleFoam/motorBike/system/controlDict index c7607fc236..93ae229687 100644 --- a/tutorials/incompressible/simpleFoam/motorBike/system/controlDict +++ b/tutorials/incompressible/simpleFoam/motorBike/system/controlDict @@ -53,7 +53,6 @@ runTimeModifiable true; functions { - #include "readFields" #include "streamLines" #include "wallBoundedStreamLines" #include "cuttingPlane" diff --git a/tutorials/incompressible/simpleFoam/motorBike/system/readFields b/tutorials/incompressible/simpleFoam/motorBike/system/readFields deleted file mode 100644 index 57a93256db..0000000000 --- a/tutorials/incompressible/simpleFoam/motorBike/system/readFields +++ /dev/null @@ -1,21 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: dev | -| \\ / A nd | Web: www.OpenFOAM.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -// Make sure all fields for functionObjects are loaded. Prevents any -// problems running with execFlowFunctionObjects. -readFields -{ - // Where to load it from (if not already in solver) - functionObjectLibs ("libfieldFunctionObjects.so"); - - type readFields; - fields (p U k); -} - - -// ************************************************************************* //