From c263bbca659aefe778b82443ec6444648207efad Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Tue, 28 Jun 2016 19:26:23 +0100 Subject: [PATCH] Completed transformation of post-processing utilities into functionObjects --- .../streamFunction/Make/files | 3 - .../streamFunction/Make/options | 8 - .../streamFunction/streamFunction.C | 491 ------------------ .../wallHeatFlux/Make/files | 3 - .../wallHeatFlux/Make/options | 23 - .../wallHeatFlux/createFields.H | 72 --- .../wallHeatFlux/wallHeatFlux.C | 157 ------ bin/streamFunction | 1 + bin/wallHeatFlux | 1 + .../postProcessing/fields/streamFunction | 22 + .../postProcessing/fields/wallHeatFlux | 20 + .../field/CourantNo/CourantNo.H | 6 +- src/functionObjects/field/Lambda2/Lambda2.H | 6 +- src/functionObjects/field/MachNo/MachNo.H | 3 +- src/functionObjects/field/Make/files | 2 + src/functionObjects/field/PecletNo/PecletNo.H | 3 +- src/functionObjects/field/Q/Q.H | 4 +- .../field/XiReactionRate/XiReactionRate.H | 4 +- .../field/blendingFactor/blendingFactor.H | 6 +- .../field/components/components.H | 2 +- src/functionObjects/field/div/div.H | 5 +- .../field/enstrophy/enstrophy.H | 2 +- .../field/fieldAverage/controlDict | 4 +- .../field/fieldAverage/fieldAverage.H | 14 +- .../fieldCoordinateSystemTransform.H | 8 +- .../postProcessingDict | 4 +- .../field/fieldMinMax/controlDict | 2 +- .../field/fieldMinMax/fieldMinMax.H | 13 +- .../field/fieldValues/controlDict | 6 +- .../fieldValueDelta/fieldValueDelta.H | 5 +- .../fieldValues/surfaceRegion/surfaceRegion.H | 11 +- .../field/fieldValues/volRegion/volRegion.H | 11 +- src/functionObjects/field/flowType/flowType.H | 2 +- src/functionObjects/field/grad/grad.H | 7 +- .../field/histogram/histogram.H | 2 +- src/functionObjects/field/mag/mag.H | 2 +- src/functionObjects/field/magSqr/magSqr.H | 2 +- .../field/nearWallFields/controlDict | 2 +- .../field/nearWallFields/nearWallFields.H | 4 +- src/functionObjects/field/pressure/pressure.H | 6 +- .../field/processorField/postProcessingDict | 4 +- .../field/processorField/processorField.H | 6 +- .../field/randomise/randomise.H | 3 +- .../field/readFields/postProcessingDict | 4 +- .../field/readFields/readFields.H | 6 +- .../regionSizeDistribution.H | 6 +- .../field/streamFunction/streamFunction.C | 463 +++++++++++++++++ .../field/streamFunction/streamFunction.H | 105 ++++ .../field/streamLine/controlDict | 4 +- .../field/streamLine/streamLine.H | 7 +- .../surfaceInterpolate/surfaceInterpolate.H | 5 +- .../field/turbulenceFields/postProcessingDict | 6 +- .../field/turbulenceFields/turbulenceFields.H | 5 +- .../field/vorticity/vorticity.H | 2 +- .../field/wallBoundedStreamLine/controlDict | 8 +- .../wallBoundedStreamLine.H | 8 +- .../field/wallHeatFlux/wallHeatFlux.C | 286 ++++++++++ .../field/wallHeatFlux/wallHeatFlux.H | 169 ++++++ .../field/wallShearStress/wallShearStress.H | 15 +- .../field/writeCellCentres/writeCellCentres.H | 4 +- .../field/writeCellVolumes/writeCellVolumes.H | 2 +- .../forces/forceCoeffs/forceCoeffs.H | 8 +- src/functionObjects/forces/forces/forces.H | 6 +- .../lagrangian/cloudInfo/cloudInfo.H | 7 +- .../lagrangian/cloudInfo/postProcessingDict | 6 +- .../icoUncoupledKinematicCloud.H | 4 +- .../solvers/scalarTransport/scalarTransport.H | 2 +- .../codedFunctionObject/codedFunctionObject.H | 5 +- .../removeRegisteredObject.H | 4 +- .../utilities/residuals/residuals.H | 2 +- .../utilities/systemCall/controlDict | 4 +- .../utilities/systemCall/systemCall.H | 8 +- .../timeActivatedFileUpdate/controlDict | 6 +- .../timeActivatedFileUpdate.H | 6 +- .../writeDictionary/writeDictionary.H | 2 +- .../utilities/writeObjects/writeObjects.H | 4 +- 76 files changed, 1225 insertions(+), 916 deletions(-) delete mode 100644 applications/utilities/postProcessing/toBeFunctionObjects/streamFunction/Make/files delete mode 100644 applications/utilities/postProcessing/toBeFunctionObjects/streamFunction/Make/options delete mode 100644 applications/utilities/postProcessing/toBeFunctionObjects/streamFunction/streamFunction.C delete mode 100644 applications/utilities/postProcessing/toBeFunctionObjects/wallHeatFlux/Make/files delete mode 100644 applications/utilities/postProcessing/toBeFunctionObjects/wallHeatFlux/Make/options delete mode 100644 applications/utilities/postProcessing/toBeFunctionObjects/wallHeatFlux/createFields.H delete mode 100644 applications/utilities/postProcessing/toBeFunctionObjects/wallHeatFlux/wallHeatFlux.C create mode 120000 bin/streamFunction create mode 120000 bin/wallHeatFlux create mode 100644 etc/caseDicts/postProcessing/fields/streamFunction create mode 100644 etc/caseDicts/postProcessing/fields/wallHeatFlux create mode 100644 src/functionObjects/field/streamFunction/streamFunction.C create mode 100644 src/functionObjects/field/streamFunction/streamFunction.H create mode 100644 src/functionObjects/field/wallHeatFlux/wallHeatFlux.C create mode 100644 src/functionObjects/field/wallHeatFlux/wallHeatFlux.H diff --git a/applications/utilities/postProcessing/toBeFunctionObjects/streamFunction/Make/files b/applications/utilities/postProcessing/toBeFunctionObjects/streamFunction/Make/files deleted file mode 100644 index b64d3870e3..0000000000 --- a/applications/utilities/postProcessing/toBeFunctionObjects/streamFunction/Make/files +++ /dev/null @@ -1,3 +0,0 @@ -streamFunction.C - -EXE = $(FOAM_APPBIN)/streamFunction diff --git a/applications/utilities/postProcessing/toBeFunctionObjects/streamFunction/Make/options b/applications/utilities/postProcessing/toBeFunctionObjects/streamFunction/Make/options deleted file mode 100644 index 318e1be8f4..0000000000 --- a/applications/utilities/postProcessing/toBeFunctionObjects/streamFunction/Make/options +++ /dev/null @@ -1,8 +0,0 @@ -EXE_INC = \ - -I$(LIB_SRC)/finiteVolume/lnInclude \ - -I$(LIB_SRC)/meshTools/lnInclude - -EXE_LIBS = \ - -lgenericPatchFields \ - -lfiniteVolume \ - -lmeshTools diff --git a/applications/utilities/postProcessing/toBeFunctionObjects/streamFunction/streamFunction.C b/applications/utilities/postProcessing/toBeFunctionObjects/streamFunction/streamFunction.C deleted file mode 100644 index bff8a9856a..0000000000 --- a/applications/utilities/postProcessing/toBeFunctionObjects/streamFunction/streamFunction.C +++ /dev/null @@ -1,491 +0,0 @@ -/*---------------------------------------------------------------------------* \ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -Application - streamFunction - -Description - Calculates and writes the stream function of velocity field U at each - time. - -\*---------------------------------------------------------------------------*/ - -#include "fvCFD.H" -#include "pointFields.H" -#include "emptyPolyPatch.H" -#include "symmetryPlanePolyPatch.H" -#include "symmetryPolyPatch.H" -#include "wedgePolyPatch.H" -#include "OSspecific.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -int main(int argc, char *argv[]) -{ - timeSelector::addOptions(); - #include "addRegionOption.H" - - #include "setRootCase.H" - #include "createTime.H" - - instantList timeDirs = timeSelector::select0(runTime, args); - - #include "createNamedMesh.H" - - label nD = mesh.nGeometricD(); - - if (nD != 2) - { - FatalErrorInFunction - << "Case is not 2D, stream-function cannot be computed" - << exit(FatalError); - } - - Vector