From 711877b161f13e2e8552c1ab20a10fa31650e53d Mon Sep 17 00:00:00 2001
From: andy <andy>
Date: Mon, 24 Sep 2012 15:07:41 +0100
Subject: [PATCH] ENH: Removed staticPressure and pressureCoefficient function
 objects - replaced by pressureTools

---
 .../functionObjects/utilities/Make/files      |   6 -
 .../IOpressureCoefficient.H                   |  49 ------
 .../pressureCoefficient/pressureCoefficient.C | 161 ------------------
 .../pressureCoefficient/pressureCoefficient.H | 158 -----------------
 .../pressureCoefficientFunctionObject.C       |  42 -----
 .../pressureCoefficientFunctionObject.H       |  54 ------
 .../staticPressure/IOstaticPressure.H         |  49 ------
 .../utilities/staticPressure/staticPressure.C | 154 -----------------
 .../utilities/staticPressure/staticPressure.H | 150 ----------------
 .../staticPressureFunctionObject.C            |  42 -----
 .../staticPressureFunctionObject.H            |  54 ------
 11 files changed, 919 deletions(-)
 delete mode 100644 src/postProcessing/functionObjects/utilities/pressureCoefficient/IOpressureCoefficient.H
 delete mode 100644 src/postProcessing/functionObjects/utilities/pressureCoefficient/pressureCoefficient.C
 delete mode 100644 src/postProcessing/functionObjects/utilities/pressureCoefficient/pressureCoefficient.H
 delete mode 100644 src/postProcessing/functionObjects/utilities/pressureCoefficient/pressureCoefficientFunctionObject.C
 delete mode 100644 src/postProcessing/functionObjects/utilities/pressureCoefficient/pressureCoefficientFunctionObject.H
 delete mode 100644 src/postProcessing/functionObjects/utilities/staticPressure/IOstaticPressure.H
 delete mode 100644 src/postProcessing/functionObjects/utilities/staticPressure/staticPressure.C
 delete mode 100644 src/postProcessing/functionObjects/utilities/staticPressure/staticPressure.H
 delete mode 100644 src/postProcessing/functionObjects/utilities/staticPressure/staticPressureFunctionObject.C
 delete mode 100644 src/postProcessing/functionObjects/utilities/staticPressure/staticPressureFunctionObject.H

diff --git a/src/postProcessing/functionObjects/utilities/Make/files b/src/postProcessing/functionObjects/utilities/Make/files
index 333defc2ba4..b47cb83cc16 100644
--- a/src/postProcessing/functionObjects/utilities/Make/files
+++ b/src/postProcessing/functionObjects/utilities/Make/files
@@ -6,15 +6,9 @@ CourantNo/CourantNoFunctionObject.C
 dsmcFields/dsmcFields.C
 dsmcFields/dsmcFieldsFunctionObject.C
 
-pressureCoefficient/pressureCoefficient.C
-pressureCoefficient/pressureCoefficientFunctionObject.C
-
 pressureTools/pressureTools.C
 pressureTools/pressureToolsFunctionObject.C
 
-staticPressure/staticPressure.C
-staticPressure/staticPressureFunctionObject.C
-
 timeActivatedFileUpdate/timeActivatedFileUpdate.C
 timeActivatedFileUpdate/timeActivatedFileUpdateFunctionObject.C
 
diff --git a/src/postProcessing/functionObjects/utilities/pressureCoefficient/IOpressureCoefficient.H b/src/postProcessing/functionObjects/utilities/pressureCoefficient/IOpressureCoefficient.H
deleted file mode 100644
index 120fcc007c8..00000000000
--- a/src/postProcessing/functionObjects/utilities/pressureCoefficient/IOpressureCoefficient.H
+++ /dev/null
@@ -1,49 +0,0 @@
-/*---------------------------------------------------------------------------*\
-  =========                 |
-  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
-   \\    /   O peration     |
-    \\  /    A nd           | Copyright (C) 2012 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 <http://www.gnu.org/licenses/>.
-
-Typedef
-    Foam::IOpressureCoefficient
-
-Description
-    Instance of the generic IOOutputFilter for pressureCoefficient.
-
-\*---------------------------------------------------------------------------*/
-
-#ifndef IOpressureCoefficient_H
-#define IOpressureCoefficient_H
-
-#include "pressureCoefficient.H"
-#include "IOOutputFilter.H"
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-
-namespace Foam
-{
-    typedef IOOutputFilter<pressureCoefficient> IOpressureCoefficient;
-}
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-
-#endif
-
-// ************************************************************************* //
diff --git a/src/postProcessing/functionObjects/utilities/pressureCoefficient/pressureCoefficient.C b/src/postProcessing/functionObjects/utilities/pressureCoefficient/pressureCoefficient.C
deleted file mode 100644
index b4d1e30c875..00000000000
--- a/src/postProcessing/functionObjects/utilities/pressureCoefficient/pressureCoefficient.C
+++ /dev/null
@@ -1,161 +0,0 @@
-/*---------------------------------------------------------------------------*\
-  =========                 |
-  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
-   \\    /   O peration     |
-    \\  /    A nd           | Copyright (C) 2012 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 <http://www.gnu.org/licenses/>.
-
-\*---------------------------------------------------------------------------*/
-
-#include "pressureCoefficient.H"
-#include "volFields.H"
-#include "dictionary.H"
-
-// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
-
-defineTypeNameAndDebug(Foam::pressureCoefficient, 0);
-
-
-// * * * * * * * * * * * * * Private Member Functions  * * * * * * * * * * * //
-
-Foam::tmp<Foam::volScalarField> Foam::pressureCoefficient::rho
-(
-    const volScalarField& p
-) const
-{
-    if (p.dimensions() == dimPressure)
-    {
-        return(obr_.lookupObject<volScalarField>(rhoName_));
-    }
-    else
-    {
-        const fvMesh& mesh = refCast<const fvMesh>(obr_);
-
-        return tmp<volScalarField>
-        (
-            new volScalarField
-            (
-                IOobject
-                (
-                    "rho",
-                    mesh.time().timeName(),
-                    mesh
-                ),
-                mesh,
-                dimensionedScalar("rho", dimless, 1.0)
-            )
-        );
-    }
-}
-
-
-// * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
-
-Foam::pressureCoefficient::pressureCoefficient
-(
-    const word& name,
-    const objectRegistry& obr,
-    const dictionary& dict,
-    const bool loadFromFiles
-)
-:
-    name_(name),
-    obr_(obr),
-    active_(true),
-    pName_("p"),
-    rhoName_("rho"),
-    magUinf_(0.0)
-{
-    // Check if the available mesh is an fvMesh, otherwise deactivate
-    if (!isA<fvMesh>(obr_))
-    {
-        active_ = false;
-        WarningIn
-        (
-            "pressureCoefficient::pressureCoefficient"
-            "("
-                "const word&, "
-                "const objectRegistry&, "
-                "const dictionary&, "
-                "const bool"
-            ")"
-        )   << "No fvMesh available, deactivating." << nl
-            << endl;
-    }
-
-    read(dict);
-}
-
-
-// * * * * * * * * * * * * * * * * Destructor  * * * * * * * * * * * * * * * //
-
-Foam::pressureCoefficient::~pressureCoefficient()
-{}
-
-
-// * * * * * * * * * * * * * * * Member Functions  * * * * * * * * * * * * * //
-
-void Foam::pressureCoefficient::read(const dictionary& dict)
-{
-    if (active_)
-    {
-        pName_ = dict.lookupOrDefault<word>("pName", "p");
-        rhoName_ = dict.lookupOrDefault<word>("rhoName", "rho");
-
-        dict.lookup("magUinf") >> magUinf_;
-    }
-}
-
-
-void Foam::pressureCoefficient::execute()
-{
-    // Do nothing - only valid on write
-}
-
-
-void Foam::pressureCoefficient::end()
-{
-    // Do nothing - only valid on write
-}
-
-
-void Foam::pressureCoefficient::write()
-{
-    if (active_)
-    {
-        const volScalarField& p = obr_.lookupObject<volScalarField>(pName_);
-
-        volScalarField pressureCoefficient
-        (
-            IOobject
-            (
-                "pressureCoefficient",
-                obr_.time().timeName(),
-                obr_,
-                IOobject::NO_READ
-            ),
-            p/(0.5*rho(p)*sqr(magUinf_))
-        );
-
-        pressureCoefficient.write();
-    }
-}
-
-
-// ************************************************************************* //
diff --git a/src/postProcessing/functionObjects/utilities/pressureCoefficient/pressureCoefficient.H b/src/postProcessing/functionObjects/utilities/pressureCoefficient/pressureCoefficient.H
deleted file mode 100644
index 7d72e3b7842..00000000000
--- a/src/postProcessing/functionObjects/utilities/pressureCoefficient/pressureCoefficient.H
+++ /dev/null
@@ -1,158 +0,0 @@
-/*---------------------------------------------------------------------------*\
-  =========                 |
-  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
-   \\    /   O peration     |
-    \\  /    A nd           | Copyright (C) 2012 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 <http://www.gnu.org/licenses/>.
-
-Class
-    Foam::pressureCoefficient
-
-Description
-    Calculates pressure coefficient, c_p
-
-        c_p = p/p_dyn,inf
-
-    where:
-
-        p_dyn,inf = 0.5*rho*mag(U_inf)^2
-
-SourceFiles
-    pressureCoefficient.C
-    IOpressureCoefficient.H
-
-\*---------------------------------------------------------------------------*/
-
-#ifndef pressureCoefficient_H
-#define pressureCoefficient_H
-
-#include "volFieldsFwd.H"
-#include "pointFieldFwd.H"
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-
-namespace Foam
-{
-
-// Forward declaration of classes
-class objectRegistry;
-class dictionary;
-class mapPolyMesh;
-
-/*---------------------------------------------------------------------------*\
-                  Class pressureCoefficient Declaration
-\*---------------------------------------------------------------------------*/
-
-class pressureCoefficient
-{
-    // Private data
-
-        //- Name of this set of pressureCoefficient objects
-        word name_;
-
-        const objectRegistry& obr_;
-
-        //- on/off switch
-        bool active_;
-
-        //- Name of pressure field, default is "p"
-        word pName_;
-
-        //- Name of density field (optional)
-        word rhoName_;
-
-        //- Free stream velocity magnitude [m/s]
-        scalar magUinf_;
-
-
-    // Private Member Functions
-
-        //- Return 1 if the pressure field is kinematic, i.e. p/rho
-        //  otherwise return rho from database
-        tmp<volScalarField> rho(const volScalarField& p) const;
-
-        //- Disallow default bitwise copy construct
-        pressureCoefficient(const pressureCoefficient&);
-
-        //- Disallow default bitwise assignment
-        void operator=(const pressureCoefficient&);
-
-
-public:
-
-    //- Runtime type information
-    TypeName("pressureCoefficient");
-
-
-    // Constructors
-
-        //- Construct for given objectRegistry and dictionary.
-        //  Allow the possibility to load fields from files
-        pressureCoefficient
-        (
-            const word& name,
-            const objectRegistry&,
-            const dictionary&,
-            const bool loadFromFiles = false
-        );
-
-
-    //- Destructor
-    virtual ~pressureCoefficient();
-
-
-    // Member Functions
-
-        //- Return name of the set of pressureCoefficient
-        virtual const word& name() const
-        {
-            return name_;
-        }
-
-        //- Read the pressureCoefficient data
-        virtual void read(const dictionary&);
-
-        //- Execute, currently does nothing
-        virtual void execute();
-
-        //- Execute at the final time-loop, currently does nothing
-        virtual void end();
-
-        //- Calculate the pressureCoefficient and write
-        virtual void write();
-
-        //- Update for changes of mesh
-        virtual void updateMesh(const mapPolyMesh&)
-        {}
-
-        //- Update for changes of mesh
-        virtual void movePoints(const pointField&)
-        {}
-};
-
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-
-} // End namespace Foam
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-
-#endif
-
-// ************************************************************************* //
diff --git a/src/postProcessing/functionObjects/utilities/pressureCoefficient/pressureCoefficientFunctionObject.C b/src/postProcessing/functionObjects/utilities/pressureCoefficient/pressureCoefficientFunctionObject.C
deleted file mode 100644
index 7d75af07f0c..00000000000
--- a/src/postProcessing/functionObjects/utilities/pressureCoefficient/pressureCoefficientFunctionObject.C
+++ /dev/null
@@ -1,42 +0,0 @@
-/*---------------------------------------------------------------------------*\
-  =========                 |
-  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
-   \\    /   O peration     |
-    \\  /    A nd           | Copyright (C) 2012 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 <http://www.gnu.org/licenses/>.
-
-\*---------------------------------------------------------------------------*/
-
-#include "pressureCoefficientFunctionObject.H"
-
-// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
-
-namespace Foam
-{
-    defineNamedTemplateTypeNameAndDebug(pressureCoefficientFunctionObject, 0);
-
-    addToRunTimeSelectionTable
-    (
-        functionObject,
-        pressureCoefficientFunctionObject,
-        dictionary
-    );
-}
-
-// ************************************************************************* //
diff --git a/src/postProcessing/functionObjects/utilities/pressureCoefficient/pressureCoefficientFunctionObject.H b/src/postProcessing/functionObjects/utilities/pressureCoefficient/pressureCoefficientFunctionObject.H
deleted file mode 100644
index d658646e96b..00000000000
--- a/src/postProcessing/functionObjects/utilities/pressureCoefficient/pressureCoefficientFunctionObject.H
+++ /dev/null
@@ -1,54 +0,0 @@
-/*---------------------------------------------------------------------------*\
-  =========                 |
-  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
-   \\    /   O peration     |
-    \\  /    A nd           | Copyright (C) 2012 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 <http://www.gnu.org/licenses/>.
-
-Typedef
-    Foam::pressureCoefficientFunctionObject
-
-Description
-    FunctionObject wrapper around pressureCoefficient to allow it to be created
-    via the functions entry within controlDict.
-
-SourceFiles
-    pressureCoefficientFunctionObject.C
-
-\*---------------------------------------------------------------------------*/
-
-#ifndef pressureCoefficientFunctionObject_H
-#define pressureCoefficientFunctionObject_H
-
-#include "pressureCoefficient.H"
-#include "OutputFilterFunctionObject.H"
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-
-namespace Foam
-{
-    typedef OutputFilterFunctionObject<pressureCoefficient>
-        pressureCoefficientFunctionObject;
-}
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-
-#endif
-
-// ************************************************************************* //
diff --git a/src/postProcessing/functionObjects/utilities/staticPressure/IOstaticPressure.H b/src/postProcessing/functionObjects/utilities/staticPressure/IOstaticPressure.H
deleted file mode 100644
index a2e41e3d0d5..00000000000
--- a/src/postProcessing/functionObjects/utilities/staticPressure/IOstaticPressure.H
+++ /dev/null
@@ -1,49 +0,0 @@
-/*---------------------------------------------------------------------------*\
-  =========                 |
-  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
-   \\    /   O peration     |
-    \\  /    A nd           | Copyright (C) 2011 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 <http://www.gnu.org/licenses/>.
-
-Typedef
-    Foam::IOstaticPressure
-
-Description
-    Instance of the generic IOOutputFilter for staticPressure.
-
-\*---------------------------------------------------------------------------*/
-
-#ifndef IOstaticPressure_H
-#define IOstaticPressure_H
-
-#include "staticPressure.H"
-#include "IOOutputFilter.H"
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-
-namespace Foam
-{
-    typedef IOOutputFilter<staticPressure> IOstaticPressure;
-}
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-
-#endif
-
-// ************************************************************************* //
diff --git a/src/postProcessing/functionObjects/utilities/staticPressure/staticPressure.C b/src/postProcessing/functionObjects/utilities/staticPressure/staticPressure.C
deleted file mode 100644
index aa2b4ebab38..00000000000
--- a/src/postProcessing/functionObjects/utilities/staticPressure/staticPressure.C
+++ /dev/null
@@ -1,154 +0,0 @@
-/*---------------------------------------------------------------------------*\
-  =========                 |
-  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
-   \\    /   O peration     |
-    \\  /    A nd           | Copyright (C) 2011 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 <http://www.gnu.org/licenses/>.
-
-\*---------------------------------------------------------------------------*/
-
-#include "staticPressure.H"
-#include "volFields.H"
-#include "dictionary.H"
-
-// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
-
-defineTypeNameAndDebug(Foam::staticPressure, 0);
-
-
-// * * * * * * * * * * * * * Private Member Functions  * * * * * * * * * * * //
-
-bool Foam::staticPressure::isKinematicPressure()
-{
-    const volScalarField& p = obr_.lookupObject<volScalarField>(pName_);
-
-    return p.dimensions() == sqr(dimLength)/sqr(dimTime);
-}
-
-
-// * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
-
-Foam::staticPressure::staticPressure
-(
-    const word& name,
-    const objectRegistry& obr,
-    const dictionary& dict,
-    const bool loadFromFiles
-)
-:
-    name_(name),
-    obr_(obr),
-    active_(true),
-    pName_(dict.lookupOrDefault<word>("p", "p")),
-    rho_(readScalar(dict.lookup("rho")))
-{
-    // Check if the available mesh is an fvMesh, otherwise deactivate
-    if (!isA<fvMesh>(obr_))
-    {
-        active_ = false;
-        WarningIn
-        (
-            "staticPressure::staticPressure"
-            "("
-                "const word&, "
-                "const objectRegistry&, "
-                "const dictionary&, "
-                "const bool"
-            ")"
-        )   << "No fvMesh available, deactivating." << nl
-            << endl;
-    }
-    else
-    {
-        // Check if the pressure is kinematic pressure, otherwise deactivate
-        if (!isKinematicPressure())
-        {
-            active_ = false;
-            WarningIn
-            (
-                "staticPressure::staticPressure"
-                "("
-                    "const word&, "
-                    "const objectRegistry&, "
-                    "const dictionary&, "
-                    "const bool"
-                ")"
-            )   << "Pressure is not kinematic pressure, deactivating." << nl
-                << endl;
-        }
-    }
-
-    read(dict);
-}
-
-
-// * * * * * * * * * * * * * * * * Destructor  * * * * * * * * * * * * * * * //
-
-Foam::staticPressure::~staticPressure()
-{}
-
-
-// * * * * * * * * * * * * * * * Member Functions  * * * * * * * * * * * * * //
-
-void Foam::staticPressure::read(const dictionary& dict)
-{
-    if (active_)
-    {
-        dict.readIfPresent("p", pName_);
-        dict.lookup("rho") >> rho_;
-    }
-}
-
-
-void Foam::staticPressure::execute()
-{
-    // Do nothing - only valid on write
-}
-
-
-void Foam::staticPressure::end()
-{
-    // Do nothing - only valid on write
-}
-
-
-void Foam::staticPressure::write()
-{
-    if (active_)
-    {
-        const volScalarField& p = obr_.lookupObject<volScalarField>(pName_);
-
-        volScalarField pStatic
-        (
-            IOobject
-            (
-                "pStatic",
-                obr_.time().timeName(),
-                obr_,
-                IOobject::NO_READ
-            ),
-            dimensionedScalar("rho", dimDensity, rho_)*p
-        );
-
-        pStatic.write();
-    }
-}
-
-
-// ************************************************************************* //
diff --git a/src/postProcessing/functionObjects/utilities/staticPressure/staticPressure.H b/src/postProcessing/functionObjects/utilities/staticPressure/staticPressure.H
deleted file mode 100644
index 34e1a0fda67..00000000000
--- a/src/postProcessing/functionObjects/utilities/staticPressure/staticPressure.H
+++ /dev/null
@@ -1,150 +0,0 @@
-/*---------------------------------------------------------------------------*\
-  =========                 |
-  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
-   \\    /   O peration     |
-    \\  /    A nd           | Copyright (C) 2011 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 <http://www.gnu.org/licenses/>.
-
-Class
-    Foam::staticPressure
-
-Description
-    Converts kinematic pressure to static pressure, from the name of the
-    pressure field, and density, i.e.
-
-        p_static = density*p_kinematic
-
-SourceFiles
-    staticPressure.C
-    IOstaticPressure.H
-
-\*---------------------------------------------------------------------------*/
-
-#ifndef staticPressure_H
-#define staticPressure_H
-
-#include "pointFieldFwd.H"
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-
-namespace Foam
-{
-
-// Forward declaration of classes
-class objectRegistry;
-class dictionary;
-class mapPolyMesh;
-
-/*---------------------------------------------------------------------------*\
-                           Class staticPressure Declaration
-\*---------------------------------------------------------------------------*/
-
-class staticPressure
-{
-    // Private data
-
-        //- Name of this set of staticPressure objects
-        word name_;
-
-        const objectRegistry& obr_;
-
-        //- on/off switch
-        bool active_;
-
-        //- Name of pressure field, default is "p"
-        word pName_;
-
-        //- Density value
-        scalar rho_;
-
-
-    // Private Member Functions
-
-        //- Return true if the pressure field corresponds to kinematic pressure
-        bool isKinematicPressure();
-
-        //- Disallow default bitwise copy construct
-        staticPressure(const staticPressure&);
-
-        //- Disallow default bitwise assignment
-        void operator=(const staticPressure&);
-
-
-public:
-
-    //- Runtime type information
-    TypeName("staticPressure");
-
-
-    // Constructors
-
-        //- Construct for given objectRegistry and dictionary.
-        //  Allow the possibility to load fields from files
-        staticPressure
-        (
-            const word& name,
-            const objectRegistry&,
-            const dictionary&,
-            const bool loadFromFiles = false
-        );
-
-
-    //- Destructor
-    virtual ~staticPressure();
-
-
-    // Member Functions
-
-        //- Return name of the set of staticPressure
-        virtual const word& name() const
-        {
-            return name_;
-        }
-
-        //- Read the staticPressure data
-        virtual void read(const dictionary&);
-
-        //- Execute, currently does nothing
-        virtual void execute();
-
-        //- Execute at the final time-loop, currently does nothing
-        virtual void end();
-
-        //- Calculate the staticPressure and write
-        virtual void write();
-
-        //- Update for changes of mesh
-        virtual void updateMesh(const mapPolyMesh&)
-        {}
-
-        //- Update for changes of mesh
-        virtual void movePoints(const pointField&)
-        {}
-};
-
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-
-} // End namespace Foam
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-
-#endif
-
-// ************************************************************************* //
diff --git a/src/postProcessing/functionObjects/utilities/staticPressure/staticPressureFunctionObject.C b/src/postProcessing/functionObjects/utilities/staticPressure/staticPressureFunctionObject.C
deleted file mode 100644
index 1cd5007cba5..00000000000
--- a/src/postProcessing/functionObjects/utilities/staticPressure/staticPressureFunctionObject.C
+++ /dev/null
@@ -1,42 +0,0 @@
-/*---------------------------------------------------------------------------*\
-  =========                 |
-  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
-   \\    /   O peration     |
-    \\  /    A nd           | Copyright (C) 2011 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 <http://www.gnu.org/licenses/>.
-
-\*---------------------------------------------------------------------------*/
-
-#include "staticPressureFunctionObject.H"
-
-// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
-
-namespace Foam
-{
-    defineNamedTemplateTypeNameAndDebug(staticPressureFunctionObject, 0);
-
-    addToRunTimeSelectionTable
-    (
-        functionObject,
-        staticPressureFunctionObject,
-        dictionary
-    );
-}
-
-// ************************************************************************* //
diff --git a/src/postProcessing/functionObjects/utilities/staticPressure/staticPressureFunctionObject.H b/src/postProcessing/functionObjects/utilities/staticPressure/staticPressureFunctionObject.H
deleted file mode 100644
index 1b4d20e3f0b..00000000000
--- a/src/postProcessing/functionObjects/utilities/staticPressure/staticPressureFunctionObject.H
+++ /dev/null
@@ -1,54 +0,0 @@
-/*---------------------------------------------------------------------------*\
-  =========                 |
-  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
-   \\    /   O peration     |
-    \\  /    A nd           | Copyright (C) 2011 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 <http://www.gnu.org/licenses/>.
-
-Typedef
-    Foam::staticPressureFunctionObject
-
-Description
-    FunctionObject wrapper around staticPressure to allow it to be created via
-    the functions entry within controlDict.
-
-SourceFiles
-    staticPressureFunctionObject.C
-
-\*---------------------------------------------------------------------------*/
-
-#ifndef staticPressureFunctionObject_H
-#define staticPressureFunctionObject_H
-
-#include "staticPressure.H"
-#include "OutputFilterFunctionObject.H"
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-
-namespace Foam
-{
-    typedef OutputFilterFunctionObject<staticPressure>
-        staticPressureFunctionObject;
-}
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-
-#endif
-
-// ************************************************************************* //
-- 
GitLab