diff --git a/applications/test/fieldDependency/fieldDependency.C b/applications/test/fieldDependency/fieldDependency.C index fa3c7b2e86..65812996ba 100644 --- a/applications/test/fieldDependency/fieldDependency.C +++ b/applications/test/fieldDependency/fieldDependency.C @@ -75,7 +75,7 @@ int main(int argc, char *argv[]) Info<< "p.eventNo:" << p.eventNo() << endl; - Info<< "p.uptodate:" << p.upToDate("T")<< endl; + Info<< "p.uptodate:" << p.upToDate(T)<< endl; // Change T and mark as uptodate. Info<< "Changing T" << endl; @@ -84,12 +84,12 @@ int main(int argc, char *argv[]) Info<< "T.eventNo:" << T.eventNo() << endl; // Check p dependency: - Info<< "p.uptodate:" << p.upToDate("T")<< endl; + Info<< "p.uptodate:" << p.upToDate(T)<< endl; // Change p and mark as uptodate. Info<< "Changing p." << endl; p.setUpToDate(); - Info<< "p.uptodate:" << p.upToDate("T")<< endl; + Info<< "p.uptodate:" << p.upToDate(T)<< endl; Info<< "p.eventNo:" << p.eventNo() << endl; diff --git a/applications/utilities/mesh/advanced/combinePatchFaces/combinePatchFaces.C b/applications/utilities/mesh/advanced/combinePatchFaces/combinePatchFaces.C index d16f4f23cc..5e240daff1 100644 --- a/applications/utilities/mesh/advanced/combinePatchFaces/combinePatchFaces.C +++ b/applications/utilities/mesh/advanced/combinePatchFaces/combinePatchFaces.C @@ -53,7 +53,7 @@ Description #include "removePoints.H" #include "polyMesh.H" #include "mapPolyMesh.H" -#include "mathematicalConstants.H" +#include "unitConversion.H" using namespace Foam; diff --git a/applications/utilities/mesh/advanced/splitCells/splitCells.C b/applications/utilities/mesh/advanced/splitCells/splitCells.C index f9f47c815a..c916be8daa 100644 --- a/applications/utilities/mesh/advanced/splitCells/splitCells.C +++ b/applications/utilities/mesh/advanced/splitCells/splitCells.C @@ -49,7 +49,7 @@ Description #include "cellSet.H" #include "cellModeller.H" #include "meshCutter.H" -#include "mathematicalConstants.H" +#include "unitConversion.H" #include "geomCellLooper.H" #include "plane.H" #include "edgeVertex.H" diff --git a/applications/utilities/mesh/conversion/kivaToFoam/kivaToFoam.C b/applications/utilities/mesh/conversion/kivaToFoam/kivaToFoam.C index 1da7ba049e..f76e4dae46 100644 --- a/applications/utilities/mesh/conversion/kivaToFoam/kivaToFoam.C +++ b/applications/utilities/mesh/conversion/kivaToFoam/kivaToFoam.C @@ -43,7 +43,7 @@ Description #include "symmetryPolyPatch.H" #include "wedgePolyPatch.H" #include "cyclicPolyPatch.H" -#include "mathematicalConstants.H" +#include "unitConversion.H" using namespace Foam; diff --git a/applications/utilities/mesh/conversion/polyDualMesh/polyDualMeshApp.C b/applications/utilities/mesh/conversion/polyDualMesh/polyDualMeshApp.C index af2c429bdc..a1bb6a7431 100644 --- a/applications/utilities/mesh/conversion/polyDualMesh/polyDualMeshApp.C +++ b/applications/utilities/mesh/conversion/polyDualMesh/polyDualMeshApp.C @@ -59,7 +59,7 @@ Usage #include "Time.H" #include "timeSelector.H" #include "fvMesh.H" -#include "mathematicalConstants.H" +#include "unitConversion.H" #include "polyTopoChange.H" #include "mapPolyMesh.H" #include "PackedBoolList.H" diff --git a/applications/utilities/mesh/conversion/starToFoam/createCoupleMatches.C b/applications/utilities/mesh/conversion/starToFoam/createCoupleMatches.C index da0f868388..5857f03e24 100644 --- a/applications/utilities/mesh/conversion/starToFoam/createCoupleMatches.C +++ b/applications/utilities/mesh/conversion/starToFoam/createCoupleMatches.C @@ -33,7 +33,7 @@ Description #include "IOmanip.H" #include "boundBox.H" #include "Map.H" -#include "mathematicalConstants.H" +#include "unitConversion.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/applications/utilities/mesh/generation/extrudeMesh/extrudeModel/wedge/wedge.C b/applications/utilities/mesh/generation/extrudeMesh/extrudeModel/wedge/wedge.C index 67abf36564..a6fc986a74 100644 --- a/applications/utilities/mesh/generation/extrudeMesh/extrudeModel/wedge/wedge.C +++ b/applications/utilities/mesh/generation/extrudeMesh/extrudeModel/wedge/wedge.C @@ -26,7 +26,7 @@ License #include "wedge.H" #include "addToRunTimeSelectionTable.H" -#include "mathematicalConstants.H" +#include "unitConversion.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/applications/utilities/mesh/manipulation/autoPatch/autoPatch.C b/applications/utilities/mesh/manipulation/autoPatch/autoPatch.C index 15affd66e0..a753d03c54 100644 --- a/applications/utilities/mesh/manipulation/autoPatch/autoPatch.C +++ b/applications/utilities/mesh/manipulation/autoPatch/autoPatch.C @@ -33,7 +33,7 @@ Description #include "Time.H" #include "boundaryMesh.H" #include "repatchPolyTopoChanger.H" -#include "mathematicalConstants.H" +#include "unitConversion.H" #include "OFstream.H" #include "ListOps.H" diff --git a/src/OpenFOAM/db/regIOobject/regIOobject.C b/src/OpenFOAM/db/regIOobject/regIOobject.C index 6e2682e199..543bee59e8 100644 --- a/src/OpenFOAM/db/regIOobject/regIOobject.C +++ b/src/OpenFOAM/db/regIOobject/regIOobject.C @@ -173,9 +173,9 @@ bool Foam::regIOobject::checkOut() } -bool Foam::regIOobject::upToDate(const word& a) const +bool Foam::regIOobject::upToDate(const regIOobject& a) const { - if (db().lookupObject(a).eventNo() >= eventNo_) + if (a.eventNo() >= eventNo_) { return false; } @@ -186,12 +186,16 @@ bool Foam::regIOobject::upToDate(const word& a) const } -bool Foam::regIOobject::upToDate(const word& a, const word& b) const +bool Foam::regIOobject::upToDate +( + const regIOobject& a, + const regIOobject& b +) const { if ( - db().lookupObject(a).eventNo() >= eventNo_ - || db().lookupObject(b).eventNo() >= eventNo_ + a.eventNo() >= eventNo_ + || b.eventNo() >= eventNo_ ) { return false; @@ -205,16 +209,16 @@ bool Foam::regIOobject::upToDate(const word& a, const word& b) const bool Foam::regIOobject::upToDate ( - const word& a, - const word& b, - const word& c + const regIOobject& a, + const regIOobject& b, + const regIOobject& c ) const { if ( - db().lookupObject(a).eventNo() >= eventNo_ - || db().lookupObject(b).eventNo() >= eventNo_ - || db().lookupObject(c).eventNo() >= eventNo_ + a.eventNo() >= eventNo_ + || b.eventNo() >= eventNo_ + || c.eventNo() >= eventNo_ ) { return false; @@ -228,18 +232,18 @@ bool Foam::regIOobject::upToDate bool Foam::regIOobject::upToDate ( - const word& a, - const word& b, - const word& c, - const word& d + const regIOobject& a, + const regIOobject& b, + const regIOobject& c, + const regIOobject& d ) const { if ( - db().lookupObject(a).eventNo() >= eventNo_ - || db().lookupObject(b).eventNo() >= eventNo_ - || db().lookupObject(c).eventNo() >= eventNo_ - || db().lookupObject(d).eventNo() >= eventNo_ + a.eventNo() >= eventNo_ + || b.eventNo() >= eventNo_ + || c.eventNo() >= eventNo_ + || d.eventNo() >= eventNo_ ) { return false; diff --git a/src/OpenFOAM/db/regIOobject/regIOobject.H b/src/OpenFOAM/db/regIOobject/regIOobject.H index d2c9a3dcbe..cae92919b2 100644 --- a/src/OpenFOAM/db/regIOobject/regIOobject.H +++ b/src/OpenFOAM/db/regIOobject/regIOobject.H @@ -154,19 +154,38 @@ public: //- Event number at last update. inline label& eventNo(); - //- Am I uptodate with respect to other regIOobjects - bool upToDate(const word&) const; - bool upToDate(const word&, const word&) const; - bool upToDate(const word&, const word&, const word&) const; + //- Return true if up-to-date with respect to given object + // otherwise false + bool upToDate(const regIOobject&) const; + + //- Return true if up-to-date with respect to given objects + // otherwise false bool upToDate ( - const word&, - const word&, - const word&, - const word& + const regIOobject&, + const regIOobject& ) const; - //- Flag me as up to date + //- Return true if up-to-date with respect to given objects + // otherwise false + bool upToDate + ( + const regIOobject&, + const regIOobject&, + const regIOobject& + ) const; + + //- Return true if up-to-date with respect to given objects + // otherwise false + bool upToDate + ( + const regIOobject&, + const regIOobject&, + const regIOobject&, + const regIOobject& + ) const; + + //- Set up to date (obviously) void setUpToDate(); diff --git a/src/OpenFOAM/global/constants/math/mathematicalConstants.H b/src/OpenFOAM/global/constants/mathematical/mathematicalConstants.H similarity index 84% rename from src/OpenFOAM/global/constants/math/mathematicalConstants.H rename to src/OpenFOAM/global/constants/mathematical/mathematicalConstants.H index 64811272d8..41f3793036 100644 --- a/src/OpenFOAM/global/constants/math/mathematicalConstants.H +++ b/src/OpenFOAM/global/constants/mathematical/mathematicalConstants.H @@ -26,7 +26,7 @@ Namespace Foam::constant::mathematical Description - mathematical constants and conversion functions + mathematical constants. \*---------------------------------------------------------------------------*/ @@ -60,20 +60,6 @@ namespace mathematical // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -//- Conversion from degrees to radians -inline scalar degToRad(const scalar& deg) -{ - return (deg*constant::mathematical::pi/180.0); -} - -//- Conversion from radians to degrees -inline scalar radToDeg(const scalar& rad) -{ - return (rad*180.0/constant::mathematical::pi); -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - } // End namespace Foam // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/OpenFOAM/global/unitConversion/unitConversion.H b/src/OpenFOAM/global/unitConversion/unitConversion.H new file mode 100644 index 0000000000..0ab93f1a50 --- /dev/null +++ b/src/OpenFOAM/global/unitConversion/unitConversion.H @@ -0,0 +1,67 @@ +/*---------------------------------------------------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | + \\ / A nd | Copyright (C) 2009-2009 OpenCFD Ltd. + \\/ 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 2 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, write to the Free Software Foundation, + Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +Namespace + Foam + +Description + Unit conversion functions + +\*---------------------------------------------------------------------------*/ + +#ifndef unitConversion_H +#define unitConversion_H + +#include "mathematicalConstants.H" + +using namespace Foam::constant::mathematical; + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +namespace Foam +{ + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +//- Conversion from degrees to radians +inline scalar degToRad(const scalar& deg) +{ + return (deg*pi/180.0); +} + +//- Conversion from radians to degrees +inline scalar radToDeg(const scalar& rad) +{ + return (rad*180.0/pi); +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +} // End namespace Foam + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +#endif + +// ************************************************************************* // diff --git a/src/OpenFOAM/meshes/primitiveMesh/primitiveMeshCheck/primitiveMeshCheck.C b/src/OpenFOAM/meshes/primitiveMesh/primitiveMeshCheck/primitiveMeshCheck.C index 95fcad6ed8..e1350c3733 100644 --- a/src/OpenFOAM/meshes/primitiveMesh/primitiveMeshCheck/primitiveMeshCheck.C +++ b/src/OpenFOAM/meshes/primitiveMesh/primitiveMeshCheck/primitiveMeshCheck.C @@ -27,7 +27,7 @@ License #include "primitiveMesh.H" #include "pyramidPointFaceRef.H" #include "ListOps.H" -#include "mathematicalConstants.H" +#include "unitConversion.H" #include "SortableList.H" diff --git a/src/OpenFOAM/meshes/primitiveMesh/primitiveMeshCheck/primitiveMeshCheckMotion.C b/src/OpenFOAM/meshes/primitiveMesh/primitiveMeshCheck/primitiveMeshCheckMotion.C index 8fce92f3c8..521f3dd261 100644 --- a/src/OpenFOAM/meshes/primitiveMesh/primitiveMeshCheck/primitiveMeshCheckMotion.C +++ b/src/OpenFOAM/meshes/primitiveMesh/primitiveMeshCheck/primitiveMeshCheckMotion.C @@ -31,10 +31,7 @@ Description #include "primitiveMesh.H" #include "pyramidPointFaceRef.H" #include "cell.H" -#include "mathematicalConstants.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - +#include "unitConversion.H" // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // diff --git a/src/dynamicMesh/meshCut/cellLooper/topoCellLooper.C b/src/dynamicMesh/meshCut/cellLooper/topoCellLooper.C index f17e07c323..1fef7573ab 100644 --- a/src/dynamicMesh/meshCut/cellLooper/topoCellLooper.C +++ b/src/dynamicMesh/meshCut/cellLooper/topoCellLooper.C @@ -27,7 +27,7 @@ License #include "topoCellLooper.H" #include "cellFeatures.H" #include "polyMesh.H" -#include "mathematicalConstants.H" +#include "unitConversion.H" #include "DynamicList.H" #include "ListOps.H" #include "meshTools.H" diff --git a/src/dynamicMesh/meshCut/meshModifiers/undoableMeshCutter/undoableMeshCutter.C b/src/dynamicMesh/meshCut/meshModifiers/undoableMeshCutter/undoableMeshCutter.C index 16606233d0..3df18121c9 100644 --- a/src/dynamicMesh/meshCut/meshModifiers/undoableMeshCutter/undoableMeshCutter.C +++ b/src/dynamicMesh/meshCut/meshModifiers/undoableMeshCutter/undoableMeshCutter.C @@ -32,7 +32,7 @@ License #include "cellCuts.H" #include "splitCell.H" #include "mapPolyMesh.H" -#include "mathematicalConstants.H" +#include "unitConversion.H" #include "meshTools.H" // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // diff --git a/src/dynamicMesh/motionSmoother/polyMeshGeometry/polyMeshGeometry.C b/src/dynamicMesh/motionSmoother/polyMeshGeometry/polyMeshGeometry.C index 83d0000ea3..9c4030ed81 100644 --- a/src/dynamicMesh/motionSmoother/polyMeshGeometry/polyMeshGeometry.C +++ b/src/dynamicMesh/motionSmoother/polyMeshGeometry/polyMeshGeometry.C @@ -27,7 +27,7 @@ License #include "polyMeshGeometry.H" #include "pyramidPointFaceRef.H" #include "syncTools.H" -#include "mathematicalConstants.H" +#include "unitConversion.H" namespace Foam { diff --git a/src/engine/engineTime/engineTime.C b/src/engine/engineTime/engineTime.C index 8adf64fdcd..84218a8803 100644 --- a/src/engine/engineTime/engineTime.C +++ b/src/engine/engineTime/engineTime.C @@ -25,7 +25,7 @@ License \*---------------------------------------------------------------------------*/ #include "engineTime.H" -#include "mathematicalConstants.H" +#include "unitConversion.H" // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // diff --git a/src/finiteVolume/finiteVolume/fvSchemes/fvSchemes.C b/src/finiteVolume/finiteVolume/fvSchemes/fvSchemes.C index f9354e3d84..696a60647b 100644 --- a/src/finiteVolume/finiteVolume/fvSchemes/fvSchemes.C +++ b/src/finiteVolume/finiteVolume/fvSchemes/fvSchemes.C @@ -52,7 +52,6 @@ void Foam::fvSchemes::clear() defaultLaplacianScheme_.clear(); fluxRequired_.clear(); defaultFluxRequired_ = false; - cacheFields_.clear(); } // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // @@ -169,15 +168,7 @@ Foam::fvSchemes::fvSchemes(const objectRegistry& obr) tokenList() )() ), - defaultFluxRequired_(false), - cacheFields_ - ( - ITstream - ( - objectPath() + "::cacheFields", - tokenList() - )() - ) + defaultFluxRequired_(false) { read(); } @@ -381,11 +372,6 @@ bool Foam::fvSchemes::read() } } - if (dict.found("cacheFields")) - { - cacheFields_ = dict.subDict("cacheFields"); - } - return true; } else @@ -563,22 +549,4 @@ bool Foam::fvSchemes::fluxRequired(const word& name) const } -bool Foam::fvSchemes::cache(const word& name) const -{ - if (debug) - { - Info<< "Lookup cache for " << name << endl; - } - - if (cacheFields_.found(name)) - { - return true; - } - else - { - return false; - } -} - - // ************************************************************************* // diff --git a/src/finiteVolume/finiteVolume/fvSchemes/fvSchemes.H b/src/finiteVolume/finiteVolume/fvSchemes/fvSchemes.H index 25a9da32c9..06bdadea90 100644 --- a/src/finiteVolume/finiteVolume/fvSchemes/fvSchemes.H +++ b/src/finiteVolume/finiteVolume/fvSchemes/fvSchemes.H @@ -79,8 +79,6 @@ class fvSchemes dictionary fluxRequired_; bool defaultFluxRequired_; - dictionary cacheFields_; - // Private Member Functions @@ -128,8 +126,6 @@ public: bool fluxRequired(const word& name) const; - bool cache(const word& name) const; - // Read diff --git a/src/finiteVolume/interpolation/surfaceInterpolation/surfaceInterpolation/surfaceInterpolation.C b/src/finiteVolume/interpolation/surfaceInterpolation/surfaceInterpolation/surfaceInterpolation.C index 5bcb692065..bd66f20ea1 100644 --- a/src/finiteVolume/interpolation/surfaceInterpolation/surfaceInterpolation/surfaceInterpolation.C +++ b/src/finiteVolume/interpolation/surfaceInterpolation/surfaceInterpolation/surfaceInterpolation.C @@ -32,7 +32,7 @@ Description #include "surfaceFields.H" #include "demandDrivenData.H" #include "coupledFvPatch.H" -#include "mathematicalConstants.H" +#include "unitConversion.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/lagrangian/dieselSpray/injector/multiHoleInjector/multiHoleInjector.C b/src/lagrangian/dieselSpray/injector/multiHoleInjector/multiHoleInjector.C index 9f8f595ea5..4b2367c41a 100644 --- a/src/lagrangian/dieselSpray/injector/multiHoleInjector/multiHoleInjector.C +++ b/src/lagrangian/dieselSpray/injector/multiHoleInjector/multiHoleInjector.C @@ -27,7 +27,7 @@ License #include "multiHoleInjector.H" #include "addToRunTimeSelectionTable.H" #include "Random.H" -#include "mathematicalConstants.H" +#include "unitConversion.H" // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // namespace Foam diff --git a/src/lagrangian/dieselSpray/spray/spray.C b/src/lagrangian/dieselSpray/spray/spray.C index 2f24587bb7..e7725acd2c 100644 --- a/src/lagrangian/dieselSpray/spray/spray.C +++ b/src/lagrangian/dieselSpray/spray/spray.C @@ -41,7 +41,7 @@ License #include "symmetryPolyPatch.H" #include "wedgePolyPatch.H" -#include "mathematicalConstants.H" +#include "unitConversion.H" // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // diff --git a/src/lagrangian/dieselSpray/spraySubModels/injectorModel/blobsSwirl/blobsSwirlInjector.C b/src/lagrangian/dieselSpray/spraySubModels/injectorModel/blobsSwirl/blobsSwirlInjector.C index c78b872e2b..7c996a0cf9 100644 --- a/src/lagrangian/dieselSpray/spraySubModels/injectorModel/blobsSwirl/blobsSwirlInjector.C +++ b/src/lagrangian/dieselSpray/spraySubModels/injectorModel/blobsSwirl/blobsSwirlInjector.C @@ -26,7 +26,7 @@ License #include "blobsSwirlInjector.H" #include "addToRunTimeSelectionTable.H" -#include "mathematicalConstants.H" +#include "unitConversion.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/autoLayerDriver.C b/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/autoLayerDriver.C index 7799663505..cc49e48939 100644 --- a/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/autoLayerDriver.C +++ b/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/autoLayerDriver.C @@ -34,7 +34,7 @@ Description #include "removePoints.H" #include "pointFields.H" #include "motionSmoother.H" -#include "mathematicalConstants.H" +#include "unitConversion.H" #include "pointSet.H" #include "faceSet.H" #include "cellSet.H" diff --git a/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/autoRefineDriver.C b/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/autoRefineDriver.C index f799881e93..a1346b4e8e 100644 --- a/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/autoRefineDriver.C +++ b/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/autoRefineDriver.C @@ -35,6 +35,7 @@ License #include "refinementSurfaces.H" #include "shellSurfaces.H" #include "mapDistributePolyMesh.H" +#include "unitConversion.H" // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // diff --git a/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/layerParameters/layerParameters.C b/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/layerParameters/layerParameters.C index 8a71825221..ebc75c79a8 100644 --- a/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/layerParameters/layerParameters.C +++ b/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/layerParameters/layerParameters.C @@ -26,7 +26,7 @@ License #include "layerParameters.H" #include "polyBoundaryMesh.H" -#include "mathematicalConstants.H" +#include "unitConversion.H" #include "refinementSurfaces.H" #include "searchableSurfaces.H" #include "regExp.H" diff --git a/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/refinementParameters/refinementParameters.C b/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/refinementParameters/refinementParameters.C index bf1d6ec6c0..a181662b27 100644 --- a/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/refinementParameters/refinementParameters.C +++ b/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/refinementParameters/refinementParameters.C @@ -25,7 +25,7 @@ License \*---------------------------------------------------------------------------*/ #include "refinementParameters.H" -#include "mathematicalConstants.H" +#include "unitConversion.H" #include "polyMesh.H" #include "globalIndex.H" diff --git a/src/mesh/autoMesh/autoHexMesh/meshRefinement/meshRefinementProblemCells.C b/src/mesh/autoMesh/autoHexMesh/meshRefinement/meshRefinementProblemCells.C index f72dcc3131..7f2d0cd617 100644 --- a/src/mesh/autoMesh/autoHexMesh/meshRefinement/meshRefinementProblemCells.C +++ b/src/mesh/autoMesh/autoHexMesh/meshRefinement/meshRefinementProblemCells.C @@ -37,7 +37,7 @@ License #include "searchableSurfaces.H" #include "polyMeshGeometry.H" #include "IOmanip.H" -#include "mathematicalConstants.H" +#include "unitConversion.H" // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // diff --git a/src/mesh/blockMesh/curvedEdges/arcEdge.C b/src/mesh/blockMesh/curvedEdges/arcEdge.C index 985caef831..bb7b3b7a8c 100644 --- a/src/mesh/blockMesh/curvedEdges/arcEdge.C +++ b/src/mesh/blockMesh/curvedEdges/arcEdge.C @@ -25,7 +25,7 @@ License \*---------------------------------------------------------------------------*/ #include "arcEdge.H" -#include "mathematicalConstants.H" +#include "unitConversion.H" #include "addToRunTimeSelectionTable.H" // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // diff --git a/src/meshTools/cellQuality/cellQuality.C b/src/meshTools/cellQuality/cellQuality.C index dfbab90f05..cd12d26f52 100644 --- a/src/meshTools/cellQuality/cellQuality.C +++ b/src/meshTools/cellQuality/cellQuality.C @@ -26,11 +26,10 @@ License \*---------------------------------------------------------------------------*/ #include "cellQuality.H" -#include "mathematicalConstants.H" +#include "unitConversion.H" // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // -// Construct from mesh Foam::cellQuality::cellQuality(const polyMesh& mesh) : mesh_(mesh) diff --git a/src/meshTools/coordinateSystems/toroidalCS.C b/src/meshTools/coordinateSystems/toroidalCS.C index 3e912007a5..5dd56d1945 100644 --- a/src/meshTools/coordinateSystems/toroidalCS.C +++ b/src/meshTools/coordinateSystems/toroidalCS.C @@ -26,7 +26,7 @@ License #include "toroidalCS.H" #include "addToRunTimeSelectionTable.H" -#include "mathematicalConstants.H" +#include "unitConversion.H" // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // diff --git a/src/meshTools/primitiveMeshGeometry/primitiveMeshGeometry.C b/src/meshTools/primitiveMeshGeometry/primitiveMeshGeometry.C index 9924eb0a9c..91afa7c23e 100644 --- a/src/meshTools/primitiveMeshGeometry/primitiveMeshGeometry.C +++ b/src/meshTools/primitiveMeshGeometry/primitiveMeshGeometry.C @@ -26,7 +26,7 @@ License #include "primitiveMeshGeometry.H" #include "pyramidPointFaceRef.H" -#include "mathematicalConstants.H" +#include "unitConversion.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/meshTools/sets/cellSources/shapeToCell/shapeToCell.C b/src/meshTools/sets/cellSources/shapeToCell/shapeToCell.C index b36997f208..c63c196f3d 100644 --- a/src/meshTools/sets/cellSources/shapeToCell/shapeToCell.C +++ b/src/meshTools/sets/cellSources/shapeToCell/shapeToCell.C @@ -26,7 +26,7 @@ License #include "shapeToCell.H" #include "polyMesh.H" -#include "mathematicalConstants.H" +#include "unitConversion.H" #include "hexMatcher.H" #include "cellFeatures.H" diff --git a/src/meshTools/triSurface/booleanOps/surfaceIntersection/edgeIntersections.C b/src/meshTools/triSurface/booleanOps/surfaceIntersection/edgeIntersections.C index a8a979af4e..47c31f04bf 100644 --- a/src/meshTools/triSurface/booleanOps/surfaceIntersection/edgeIntersections.C +++ b/src/meshTools/triSurface/booleanOps/surfaceIntersection/edgeIntersections.C @@ -36,7 +36,7 @@ License #include "meshTools.H" #include "plane.H" #include "Random.H" -#include "mathematicalConstants.H" +#include "unitConversion.H" #include "treeBoundBox.H" // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // diff --git a/src/meshTools/triSurface/surfaceFeatures/surfaceFeatures.C b/src/meshTools/triSurface/surfaceFeatures/surfaceFeatures.C index 4383c30a2f..1a1f2baf1d 100644 --- a/src/meshTools/triSurface/surfaceFeatures/surfaceFeatures.C +++ b/src/meshTools/triSurface/surfaceFeatures/surfaceFeatures.C @@ -33,7 +33,7 @@ License #include "linePointRef.H" #include "OFstream.H" #include "IFstream.H" -#include "mathematicalConstants.H" +#include "unitConversion.H" // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // diff --git a/tutorials/compressible/rhoCentralFoam/biconic25-55Run35/datToFoam/datToFoam.C b/tutorials/compressible/rhoCentralFoam/biconic25-55Run35/datToFoam/datToFoam.C index bd5f890ee5..09c2a247f3 100644 --- a/tutorials/compressible/rhoCentralFoam/biconic25-55Run35/datToFoam/datToFoam.C +++ b/tutorials/compressible/rhoCentralFoam/biconic25-55Run35/datToFoam/datToFoam.C @@ -43,7 +43,7 @@ Description #include "cellShape.H" #include "cellModeller.H" #include "mergePoints.H" -#include "mathematicalConstants.H" +#include "unitConversion.H" using namespace Foam;