From 66cb99e696bf29e0c1d747b85a9daab36523ecae Mon Sep 17 00:00:00 2001 From: Henry <Henry> Date: Mon, 9 Feb 2015 14:43:11 +0000 Subject: [PATCH] Updated headers to ensure the class name declared to Doxygen is in the appropriate namespace Also moved global classes which should be in the Foam namespace into it. --- .../adjointOutletPressureFvPatchScalarField.H | 4 +- .../adjointOutletVelocityFvPatchVectorField.H | 4 +- .../incompressibleThreePhaseMixture.H | 4 +- .../threePhaseInterfaceProperties.H | 4 +- .../conversion/sammToFoam/calcPointCells.C | 6 +- .../sammToFoam/createBoundaryFaces.C | 8 +- .../sammToFoam/createPolyBoundary.C | 9 ++- .../conversion/sammToFoam/createPolyCells.C | 4 +- .../sammToFoam/fillSammAddressingTable.C | 8 +- .../sammToFoam/fillSammCellShapeTable.C | 9 +-- .../conversion/sammToFoam/fixCollapsedEdges.C | 4 +- .../conversion/sammToFoam/purgeCellShapes.C | 4 +- .../mesh/conversion/sammToFoam/readBoundary.C | 4 +- .../mesh/conversion/sammToFoam/readCells.C | 8 +- .../mesh/conversion/sammToFoam/readCouples.C | 4 +- .../mesh/conversion/sammToFoam/sammMesh.C | 63 ++++++++------- .../mesh/conversion/sammToFoam/sammMesh.H | 24 ++---- .../mesh/conversion/sammToFoam/sammToFoam.C | 6 +- .../mesh/conversion/sammToFoam/writeMesh.C | 4 +- .../conversion/star3ToFoam/calcPointCells.C | 6 +- .../conversion/star3ToFoam/coupledFacePair.C | 21 +---- .../star3ToFoam/createBoundaryFaces.C | 8 +- .../star3ToFoam/createCoupleMatches.C | 4 +- .../star3ToFoam/createPolyBoundary.C | 7 +- .../conversion/star3ToFoam/createPolyCells.C | 4 +- .../star3ToFoam/fixCollapsedEdges.C | 4 +- .../star3ToFoam/mergeCoupleFacePoints.C | 4 +- .../conversion/star3ToFoam/purgeCellShapes.C | 4 +- .../conversion/star3ToFoam/readBoundary.C | 4 +- .../mesh/conversion/star3ToFoam/readCells.C | 8 +- .../mesh/conversion/star3ToFoam/readCouples.C | 4 +- .../mesh/conversion/star3ToFoam/readPoints.C | 18 ++--- .../star3ToFoam/readSeparatedPoints.C | 4 +- .../mesh/conversion/star3ToFoam/star3ToFoam.C | 4 +- .../mesh/conversion/star3ToFoam/starMesh.C | 76 ++++++++++--------- .../mesh/conversion/star3ToFoam/starMesh.H | 13 ++-- .../mesh/conversion/star3ToFoam/writeMesh.C | 4 +- .../pointFeatureEdgesTypes.H | 2 +- .../indexedCell/indexedCell.H | 2 +- .../indexedCell/indexedCellEnum.H | 2 +- .../indexedCell/indexedCellOps.H | 4 +- .../indexedVertex/indexedVertex.H | 2 +- .../indexedVertex/indexedVertexEnum.H | 2 +- .../indexedVertex/indexedVertexOps.H | 4 +- .../conformalVoronoiMesh/pointConversion.H | 2 +- .../pointPairs/pointPairs.H | 2 +- .../generation/foamyMesh/foamyQuadMesh/CV2D.H | 2 +- .../foamyMesh/foamyQuadMesh/indexedFace.H | 2 +- .../foamyMesh/foamyQuadMesh/indexedVertex.H | 2 +- .../manipulation/polyDualMesh/meshDualiser.H | 6 +- src/OSspecific/POSIX/fileMonitor.H | 4 +- src/OpenFOAM/db/IOstreams/Pstreams/UPstream.C | 52 +++++++------ src/OpenFOAM/db/regIOobject/regIOobject.C | 59 +++++++------- src/OpenFOAM/global/debug/registerSwitch.H | 24 +++++- .../matrices/scalarMatrices/scalarMatrices.H | 4 +- src/OpenFOAM/primitives/Scalar/Scalar.H | 10 ++- .../Scalar/doubleScalar/doubleScalar.H | 15 +++- .../Scalar/floatScalar/floatScalar.H | 15 +++- .../primitives/VectorSpace/VectorSpaceI.H | 2 +- .../{VectorSpaceM.H => VectorSpaceOps.H} | 51 +++++++++++++ .../temperatureCoupledBase.H | 2 +- ...tureCoupledBaffleMixedFvPatchScalarField.H | 5 +- ...eratureRadCoupledMixedFvPatchScalarField.H | 5 +- .../extrudePatchMesh/extrudePatchMesh.H | 5 +- .../polyTopoChange/tetDecomposer.H | 4 +- .../schemes/pointLinear/pointLinear.H | 4 +- ...surfaceDisplacementPointPatchVectorField.H | 4 +- .../coalCombustion/coalCloud/coalCloud.H | 4 +- .../coalCombustion/coalParcel/coalParcel.H | 4 +- .../COxidationDiffusionLimitedRate.H | 11 ++- .../COxidationHurtMitchell.H | 6 +- .../COxidationIntrinsicRate.H | 11 ++- .../COxidationKineticDiffusionLimitedRate.H | 4 +- .../COxidationMurphyShaddix.H | 4 +- .../kinematicParcelInjectionDataIOList.H | 4 +- ...ctingMultiphaseParcelInjectionDataIOList.H | 4 +- .../thermoParcelInjectionDataIOList.H | 4 +- .../momentOfInertia/momentOfInertia.H | 4 +- ...sRadiativeCoupledMixedFvPatchScalarField.H | 8 +- .../regionProperties/regionProperties.H | 4 +- .../radiationCoupledBase.H | 2 +- 81 files changed, 426 insertions(+), 325 deletions(-) rename src/OpenFOAM/primitives/VectorSpace/{VectorSpaceM.H => VectorSpaceOps.H} (55%) diff --git a/applications/solvers/incompressible/adjointShapeOptimizationFoam/adjointOutletPressure/adjointOutletPressureFvPatchScalarField.H b/applications/solvers/incompressible/adjointShapeOptimizationFoam/adjointOutletPressure/adjointOutletPressureFvPatchScalarField.H index 4b3d91b8383..aa64c4e1094 100644 --- a/applications/solvers/incompressible/adjointShapeOptimizationFoam/adjointOutletPressure/adjointOutletPressureFvPatchScalarField.H +++ b/applications/solvers/incompressible/adjointShapeOptimizationFoam/adjointOutletPressure/adjointOutletPressureFvPatchScalarField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - adjointOutletPressureFvPatchScalarField + Foam::adjointOutletPressureFvPatchScalarField Description diff --git a/applications/solvers/incompressible/adjointShapeOptimizationFoam/adjointOutletVelocity/adjointOutletVelocityFvPatchVectorField.H b/applications/solvers/incompressible/adjointShapeOptimizationFoam/adjointOutletVelocity/adjointOutletVelocityFvPatchVectorField.H index ad0a5179a3d..4778176581a 100644 --- a/applications/solvers/incompressible/adjointShapeOptimizationFoam/adjointOutletVelocity/adjointOutletVelocityFvPatchVectorField.H +++ b/applications/solvers/incompressible/adjointShapeOptimizationFoam/adjointOutletVelocity/adjointOutletVelocityFvPatchVectorField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - adjointOutletVelocityFvPatchVectorField + Foam::adjointOutletVelocityFvPatchVectorField Description diff --git a/applications/solvers/multiphase/interFoam/interMixingFoam/incompressibleThreePhaseMixture/incompressibleThreePhaseMixture.H b/applications/solvers/multiphase/interFoam/interMixingFoam/incompressibleThreePhaseMixture/incompressibleThreePhaseMixture.H index 766e06215ef..58341e6cad0 100644 --- a/applications/solvers/multiphase/interFoam/interMixingFoam/incompressibleThreePhaseMixture/incompressibleThreePhaseMixture.H +++ b/applications/solvers/multiphase/interFoam/interMixingFoam/incompressibleThreePhaseMixture/incompressibleThreePhaseMixture.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - incompressibleThreePhaseMixture + Foam::incompressibleThreePhaseMixture Description diff --git a/applications/solvers/multiphase/interFoam/interMixingFoam/threePhaseInterfaceProperties/threePhaseInterfaceProperties.H b/applications/solvers/multiphase/interFoam/interMixingFoam/threePhaseInterfaceProperties/threePhaseInterfaceProperties.H index 266bedb470a..51a28ad80d7 100644 --- a/applications/solvers/multiphase/interFoam/interMixingFoam/threePhaseInterfaceProperties/threePhaseInterfaceProperties.H +++ b/applications/solvers/multiphase/interFoam/interMixingFoam/threePhaseInterfaceProperties/threePhaseInterfaceProperties.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - threePhaseInterfaceProperties + Foam::threePhaseInterfaceProperties Description Properties to aid interFoam : diff --git a/applications/utilities/mesh/conversion/sammToFoam/calcPointCells.C b/applications/utilities/mesh/conversion/sammToFoam/calcPointCells.C index 282e507058f..801b0a86391 100644 --- a/applications/utilities/mesh/conversion/sammToFoam/calcPointCells.C +++ b/applications/utilities/mesh/conversion/sammToFoam/calcPointCells.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -30,7 +30,7 @@ Description // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -void sammMesh::calcPointCells() const +void Foam::sammMesh::calcPointCells() const { static const label UNIT_POINT_CELLS = 12; @@ -125,7 +125,7 @@ void sammMesh::calcPointCells() const } -const labelListList& sammMesh::pointCells() const +const Foam::labelListList& Foam::sammMesh::pointCells() const { if (!pointCellsPtr_) { diff --git a/applications/utilities/mesh/conversion/sammToFoam/createBoundaryFaces.C b/applications/utilities/mesh/conversion/sammToFoam/createBoundaryFaces.C index 7511a8d2caf..a6ec4baf16d 100644 --- a/applications/utilities/mesh/conversion/sammToFoam/createBoundaryFaces.C +++ b/applications/utilities/mesh/conversion/sammToFoam/createBoundaryFaces.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -30,9 +30,7 @@ Description // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -// Specialist version of face comparison to deal with -// PROSTAR boundary format idiosyncracies -bool sammMesh::sammEqualFace +bool Foam::sammMesh::sammEqualFace ( const face& boundaryFace, const face& cellFace @@ -70,7 +68,7 @@ bool sammMesh::sammEqualFace } -void sammMesh::createBoundaryFaces() +void Foam::sammMesh::createBoundaryFaces() { forAll(boundary_, patchI) { diff --git a/applications/utilities/mesh/conversion/sammToFoam/createPolyBoundary.C b/applications/utilities/mesh/conversion/sammToFoam/createPolyBoundary.C index 25f09764a9e..1442909f3d7 100644 --- a/applications/utilities/mesh/conversion/sammToFoam/createPolyBoundary.C +++ b/applications/utilities/mesh/conversion/sammToFoam/createPolyBoundary.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -31,7 +31,7 @@ Description // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -void sammMesh::createPolyBoundary() +void Foam::sammMesh::createPolyBoundary() { label nBoundaryFacesFound = 0; @@ -115,7 +115,10 @@ void sammMesh::createPolyBoundary() } -List<polyPatch* > sammMesh::polyBoundaryPatches(const polyMesh& pMesh) +Foam::List<Foam::polyPatch* > Foam::sammMesh::polyBoundaryPatches +( + const polyMesh& pMesh +) { List<polyPatch* > p(boundary_.size()); diff --git a/applications/utilities/mesh/conversion/sammToFoam/createPolyCells.C b/applications/utilities/mesh/conversion/sammToFoam/createPolyCells.C index 90cf54162a2..ed1ecc23172 100644 --- a/applications/utilities/mesh/conversion/sammToFoam/createPolyCells.C +++ b/applications/utilities/mesh/conversion/sammToFoam/createPolyCells.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -30,7 +30,7 @@ Description // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -void sammMesh::createPolyCells() +void Foam::sammMesh::createPolyCells() { // loop through all cell faces and create connectivity. This will produce // a global face list and will describe all cells as lists of face labels diff --git a/applications/utilities/mesh/conversion/sammToFoam/fillSammAddressingTable.C b/applications/utilities/mesh/conversion/sammToFoam/fillSammAddressingTable.C index b2cdef93872..529d996d69d 100644 --- a/applications/utilities/mesh/conversion/sammToFoam/fillSammAddressingTable.C +++ b/applications/utilities/mesh/conversion/sammToFoam/fillSammAddressingTable.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -23,15 +23,11 @@ License \*---------------------------------------------------------------------------*/ -#include "error.H" #include "sammMesh.H" -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - - // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // -void sammMesh::fillSammAddressingTable() +void Foam::sammMesh::fillSammAddressingTable() { // SAMM trim type 1: 8 models static label SammTrim1Rot0[10] = {1, 5, 6, 2, 8, 10, 4, 7, 3, 9}; diff --git a/applications/utilities/mesh/conversion/sammToFoam/fillSammCellShapeTable.C b/applications/utilities/mesh/conversion/sammToFoam/fillSammCellShapeTable.C index 1784e2b275e..551d9aa7459 100644 --- a/applications/utilities/mesh/conversion/sammToFoam/fillSammCellShapeTable.C +++ b/applications/utilities/mesh/conversion/sammToFoam/fillSammCellShapeTable.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -26,16 +26,11 @@ Description \*---------------------------------------------------------------------------*/ -#include "error.H" - #include "sammMesh.H" -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - - // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // -void sammMesh::fillSammCellShapeTable() +void Foam::sammMesh::fillSammCellShapeTable() { // Fill the list by hand diff --git a/applications/utilities/mesh/conversion/sammToFoam/fixCollapsedEdges.C b/applications/utilities/mesh/conversion/sammToFoam/fixCollapsedEdges.C index ea8dd7e63f2..307c74e5771 100644 --- a/applications/utilities/mesh/conversion/sammToFoam/fixCollapsedEdges.C +++ b/applications/utilities/mesh/conversion/sammToFoam/fixCollapsedEdges.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -30,7 +30,7 @@ Description // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -void sammMesh::fixCollapsedEdges() +void Foam::sammMesh::fixCollapsedEdges() { cellFaces_.setSize(cellShapes_.size()); diff --git a/applications/utilities/mesh/conversion/sammToFoam/purgeCellShapes.C b/applications/utilities/mesh/conversion/sammToFoam/purgeCellShapes.C index c7694a54b29..f1a83194691 100644 --- a/applications/utilities/mesh/conversion/sammToFoam/purgeCellShapes.C +++ b/applications/utilities/mesh/conversion/sammToFoam/purgeCellShapes.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -30,7 +30,7 @@ Description // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // -void sammMesh::purgeCellShapes() +void Foam::sammMesh::purgeCellShapes() { forAll(cellFaces_, cellI) { diff --git a/applications/utilities/mesh/conversion/sammToFoam/readBoundary.C b/applications/utilities/mesh/conversion/sammToFoam/readBoundary.C index dc058f81c80..e81bbae2335 100644 --- a/applications/utilities/mesh/conversion/sammToFoam/readBoundary.C +++ b/applications/utilities/mesh/conversion/sammToFoam/readBoundary.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -36,7 +36,7 @@ Description // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -void sammMesh::readBoundary() +void Foam::sammMesh::readBoundary() { label nPatches=0, nFaces=0; labelList nPatchFaces(1000); diff --git a/applications/utilities/mesh/conversion/sammToFoam/readCells.C b/applications/utilities/mesh/conversion/sammToFoam/readCells.C index 81385923b84..ea65b78b208 100644 --- a/applications/utilities/mesh/conversion/sammToFoam/readCells.C +++ b/applications/utilities/mesh/conversion/sammToFoam/readCells.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -31,7 +31,7 @@ Description // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -void sammMesh::addRegularCell +void Foam::sammMesh::addRegularCell ( const labelList& labels, const label nCreatedCells @@ -135,7 +135,7 @@ void sammMesh::addRegularCell } -void sammMesh::addSAMMcell +void Foam::sammMesh::addSAMMcell ( const label typeFlag, const labelList& globalLabels, @@ -171,7 +171,7 @@ void sammMesh::addSAMMcell } -void sammMesh::readCells() +void Foam::sammMesh::readCells() { label nCells = 0; label maxLabel = -1; diff --git a/applications/utilities/mesh/conversion/sammToFoam/readCouples.C b/applications/utilities/mesh/conversion/sammToFoam/readCouples.C index b1bcec57a62..eee39a4d4df 100644 --- a/applications/utilities/mesh/conversion/sammToFoam/readCouples.C +++ b/applications/utilities/mesh/conversion/sammToFoam/readCouples.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -31,7 +31,7 @@ Description // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -void sammMesh::readCouples() +void Foam::sammMesh::readCouples() { fileName couplesFileName(casePrefix_ + ".cpl"); diff --git a/applications/utilities/mesh/conversion/sammToFoam/sammMesh.C b/applications/utilities/mesh/conversion/sammToFoam/sammMesh.C index 0680a855be2..3ec7358e067 100644 --- a/applications/utilities/mesh/conversion/sammToFoam/sammMesh.C +++ b/applications/utilities/mesh/conversion/sammToFoam/sammMesh.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -31,21 +31,33 @@ License // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // Cell shape models -const cellModel* sammMesh::unknownPtr_ = cellModeller::lookup("unknown"); -const cellModel* sammMesh::hexPtr_ = cellModeller::lookup("hex"); -const cellModel* sammMesh::wedgePtr_ = cellModeller::lookup("wedge"); -const cellModel* sammMesh::prismPtr_ = cellModeller::lookup("prism"); -const cellModel* sammMesh::pyrPtr_ = cellModeller::lookup("pyr"); -const cellModel* sammMesh::tetPtr_ = cellModeller::lookup("tet"); -const cellModel* sammMesh::tetWedgePtr_ = cellModeller::lookup("tetWedge"); - -const cellModel* sammMesh::sammTrim1Ptr_ = cellModeller::lookup("sammTrim1"); -const cellModel* sammMesh::sammTrim2Ptr_ = cellModeller::lookup("sammTrim2"); -const cellModel* sammMesh::sammTrim3Ptr_ = cellModeller::lookup("sammTrim3"); -const cellModel* sammMesh::sammTrim4Ptr_ = cellModeller::lookup("sammTrim4"); -const cellModel* sammMesh::sammTrim5Ptr_ = cellModeller::lookup("sammTrim5"); -const cellModel* sammMesh::sammTrim8Ptr_ = - cellModeller::lookup("hexagonalPrism"); +const Foam::cellModel* Foam::sammMesh::unknownPtr_ = + Foam::cellModeller::lookup("unknown"); +const Foam::cellModel* Foam::sammMesh::hexPtr_ = + Foam::cellModeller::lookup("hex"); +const Foam::cellModel* Foam::sammMesh::wedgePtr_ = + Foam::cellModeller::lookup("wedge"); +const Foam::cellModel* Foam::sammMesh::prismPtr_ = + Foam::cellModeller::lookup("prism"); +const Foam::cellModel* Foam::sammMesh::pyrPtr_ = + Foam::cellModeller::lookup("pyr"); +const Foam::cellModel* Foam::sammMesh::tetPtr_ = + Foam::cellModeller::lookup("tet"); +const Foam::cellModel* Foam::sammMesh::tetWedgePtr_ = + Foam::cellModeller::lookup("tetWedge"); + +const Foam::cellModel* Foam::sammMesh::sammTrim1Ptr_ = + Foam::cellModeller::lookup("sammTrim1"); +const Foam::cellModel* Foam::sammMesh::sammTrim2Ptr_ = + Foam::cellModeller::lookup("sammTrim2"); +const Foam::cellModel* Foam::sammMesh::sammTrim3Ptr_ = + Foam::cellModeller::lookup("sammTrim3"); +const Foam::cellModel* Foam::sammMesh::sammTrim4Ptr_ = + Foam::cellModeller::lookup("sammTrim4"); +const Foam::cellModel* Foam::sammMesh::sammTrim5Ptr_ = + Foam::cellModeller::lookup("sammTrim5"); +const Foam::cellModel* Foam::sammMesh::sammTrim8Ptr_ = + Foam::cellModeller::lookup("hexagonalPrism"); // lookup table giving OpenFOAM face number when looked up with shape index // (first index) and STAR face number @@ -59,7 +71,7 @@ const cellModel* sammMesh::sammTrim8Ptr_ = // However, at the moment I haven't got enough info to complete the toble and // there are no cases that break it. Please reconsider in the light of mode // information. -const label sammMesh::shapeFaceLookup[19][9] = +const Foam::label Foam::sammMesh::shapeFaceLookup[19][9] = { {-1, -1, -1, -1, -1, -1, -1, -1, -1}, // shape 0 - empty+ {-1, -1, -1, -1, -1, -1, -1, -1, -1}, // shape 1 - empty+ @@ -87,22 +99,22 @@ const label sammMesh::shapeFaceLookup[19][9] = // List of pointers used instead of pointer list o avoid // de-allocation problems -List<const cellModel*> sammMesh::sammShapeLookup +Foam::List<const Foam::cellModel*> Foam::sammMesh::sammShapeLookup ( 256, reinterpret_cast<cellModel*>(0) ); -List<const label*> sammMesh::sammAddressingTable +Foam::List<const Foam::label*> Foam::sammMesh::sammAddressingTable ( 256, reinterpret_cast<label*>(0) ); + // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // -// Make polyhedral mesh data (packing) -void sammMesh::createPolyMeshData() +void Foam::sammMesh::createPolyMeshData() { Info<< "Creating a polyMesh" << endl; @@ -146,10 +158,10 @@ void sammMesh::createPolyMeshData() } } + // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // -// Construct from components -sammMesh::sammMesh +Foam::sammMesh::sammMesh ( const fileName& prefix, const Time& rt, @@ -199,13 +211,10 @@ sammMesh::sammMesh // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // -sammMesh::~sammMesh() +Foam::sammMesh::~sammMesh() { deleteDemandDrivenData(pointCellsPtr_); } -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - - // ************************************************************************* // diff --git a/applications/utilities/mesh/conversion/sammToFoam/sammMesh.H b/applications/utilities/mesh/conversion/sammToFoam/sammMesh.H index 8c7c018c0a8..a00ff8d7e99 100644 --- a/applications/utilities/mesh/conversion/sammToFoam/sammMesh.H +++ b/applications/utilities/mesh/conversion/sammToFoam/sammMesh.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -42,14 +42,10 @@ SourceFiles #include "cellList.H" #include "polyPatchList.H" -#ifndef namespaceFoam -#define namespaceFoam - using namespace Foam; -#endif - // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -// Forward declaration of classes +namespace Foam +{ /*---------------------------------------------------------------------------*\ Class sammMesh Declaration @@ -224,9 +220,6 @@ class sammMesh public: - // Static data members - - // Constructors //- Construct from case name @@ -246,17 +239,12 @@ public: //- Write mesh void writeMesh(); +}; - // Member Operators - - // Friend Functions - - // Friend Operators - // IOstream Operators - // Ostream Operator -}; +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // +} // End namespace Foam // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/applications/utilities/mesh/conversion/sammToFoam/sammToFoam.C b/applications/utilities/mesh/conversion/sammToFoam/sammToFoam.C index 55745b958ce..5bceed621fc 100644 --- a/applications/utilities/mesh/conversion/sammToFoam/sammToFoam.C +++ b/applications/utilities/mesh/conversion/sammToFoam/sammToFoam.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -33,6 +33,8 @@ Description #include "Time.H" #include "sammMesh.H" +using namespace Foam; + // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // int main(int argc, char *argv[]) @@ -55,7 +57,7 @@ int main(int argc, char *argv[]) const scalar scaleFactor = args.optionLookupOrDefault("scale", 1.0); -# include "createTime.H" + #include "createTime.H" sammMesh makeMesh(args[1], runTime, scaleFactor); diff --git a/applications/utilities/mesh/conversion/sammToFoam/writeMesh.C b/applications/utilities/mesh/conversion/sammToFoam/writeMesh.C index f570552ce99..0afee5e84ac 100644 --- a/applications/utilities/mesh/conversion/sammToFoam/writeMesh.C +++ b/applications/utilities/mesh/conversion/sammToFoam/writeMesh.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -32,7 +32,7 @@ Description // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -void sammMesh::writeMesh() +void Foam::sammMesh::writeMesh() { if (isShapeMesh_) { diff --git a/applications/utilities/mesh/conversion/star3ToFoam/calcPointCells.C b/applications/utilities/mesh/conversion/star3ToFoam/calcPointCells.C index 2f0056d0153..668a452425f 100644 --- a/applications/utilities/mesh/conversion/star3ToFoam/calcPointCells.C +++ b/applications/utilities/mesh/conversion/star3ToFoam/calcPointCells.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -30,7 +30,7 @@ Description // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -void starMesh::calcPointCells() const +void Foam::starMesh::calcPointCells() const { static const label UNIT_POINT_CELLS = 12; @@ -125,7 +125,7 @@ void starMesh::calcPointCells() const } -const labelListList& starMesh::pointCells() const +const Foam::labelListList& Foam::starMesh::pointCells() const { if (!pointCellsPtr_) { diff --git a/applications/utilities/mesh/conversion/star3ToFoam/coupledFacePair.C b/applications/utilities/mesh/conversion/star3ToFoam/coupledFacePair.C index e9b90ac80b3..73490bd38d4 100644 --- a/applications/utilities/mesh/conversion/star3ToFoam/coupledFacePair.C +++ b/applications/utilities/mesh/conversion/star3ToFoam/coupledFacePair.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -28,17 +28,11 @@ Description \*---------------------------------------------------------------------------*/ #include "coupledFacePair.H" -#include "error.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam -{ +#include "IOstreams.H" // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // -// Construct from components -coupledFacePair::coupledFacePair +Foam::coupledFacePair::coupledFacePair ( const label coupleNo, const label mC, const label mF, @@ -55,12 +49,9 @@ coupledFacePair::coupledFacePair {} -// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // - - // * * * * * * * * * * * * * * * Friend Operators * * * * * * * * * * * * * // -Ostream& operator<<(Ostream& os, const coupledFacePair& c) +Foam::Ostream& Foam::operator<<(Ostream& os, const coupledFacePair& c) { os << "Master cell: " << c.masterCellID_ << " face: " << c.masterFaceID_ << endl @@ -72,8 +63,4 @@ Ostream& operator<<(Ostream& os, const coupledFacePair& c) } -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace Foam - // ************************************************************************* // diff --git a/applications/utilities/mesh/conversion/star3ToFoam/createBoundaryFaces.C b/applications/utilities/mesh/conversion/star3ToFoam/createBoundaryFaces.C index fc1ed0dbd04..61dd9f7a0fb 100644 --- a/applications/utilities/mesh/conversion/star3ToFoam/createBoundaryFaces.C +++ b/applications/utilities/mesh/conversion/star3ToFoam/createBoundaryFaces.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -32,7 +32,7 @@ Description // Specialist version of face comparison to deal with // PROSTAR boundary format idiosyncracies -bool starMesh::starEqualFace +bool Foam::starMesh::starEqualFace ( const face& boundaryFace, const face& cellFace @@ -91,7 +91,7 @@ bool starMesh::starEqualFace } -void starMesh::markBoundaryFaces() +void Foam::starMesh::markBoundaryFaces() { // set size of mark lists for the boundary boundaryCellIDs_.setSize(boundary_.size()); @@ -175,7 +175,7 @@ void starMesh::markBoundaryFaces() } -void starMesh::collectBoundaryFaces() +void Foam::starMesh::collectBoundaryFaces() { Info<< "Collecting boundary faces" << endl; forAll(boundary_, patchI) diff --git a/applications/utilities/mesh/conversion/star3ToFoam/createCoupleMatches.C b/applications/utilities/mesh/conversion/star3ToFoam/createCoupleMatches.C index 139aa65f9b3..6ded0c84260 100644 --- a/applications/utilities/mesh/conversion/star3ToFoam/createCoupleMatches.C +++ b/applications/utilities/mesh/conversion/star3ToFoam/createCoupleMatches.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -36,7 +36,7 @@ Description // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -void starMesh::createCoupleMatches() +void Foam::starMesh::createCoupleMatches() { // Loop through all couples and create intersection faces. Add all points // of intersection faces to the couple points lists. The numbering of diff --git a/applications/utilities/mesh/conversion/star3ToFoam/createPolyBoundary.C b/applications/utilities/mesh/conversion/star3ToFoam/createPolyBoundary.C index ae73ef28b48..25b7bd9e4e5 100644 --- a/applications/utilities/mesh/conversion/star3ToFoam/createPolyBoundary.C +++ b/applications/utilities/mesh/conversion/star3ToFoam/createPolyBoundary.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -31,7 +31,7 @@ Description // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -void starMesh::createPolyBoundary() +void Foam::starMesh::createPolyBoundary() { label nBoundaryFacesFound = 0; @@ -294,7 +294,8 @@ void starMesh::createPolyBoundary() } -List<polyPatch*> starMesh::polyBoundaryPatches(const polyMesh& pMesh) +Foam::List<Foam::polyPatch*> +Foam::starMesh::polyBoundaryPatches(const polyMesh& pMesh) { List<polyPatch*> p(boundary_.size()); diff --git a/applications/utilities/mesh/conversion/star3ToFoam/createPolyCells.C b/applications/utilities/mesh/conversion/star3ToFoam/createPolyCells.C index 5aba4dbe77d..c74fcccd913 100644 --- a/applications/utilities/mesh/conversion/star3ToFoam/createPolyCells.C +++ b/applications/utilities/mesh/conversion/star3ToFoam/createPolyCells.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -30,7 +30,7 @@ Description // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -void starMesh::createPolyCells() +void Foam::starMesh::createPolyCells() { // loop through all cell faces and create connectivity. This will produce // a global face list and will describe all cells as lists of face labels diff --git a/applications/utilities/mesh/conversion/star3ToFoam/fixCollapsedEdges.C b/applications/utilities/mesh/conversion/star3ToFoam/fixCollapsedEdges.C index 4f067a42937..422866f44c1 100644 --- a/applications/utilities/mesh/conversion/star3ToFoam/fixCollapsedEdges.C +++ b/applications/utilities/mesh/conversion/star3ToFoam/fixCollapsedEdges.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -30,7 +30,7 @@ Description // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -void starMesh::fixCollapsedEdges() +void Foam::starMesh::fixCollapsedEdges() { cellFaces_.setSize(cellShapes_.size()); diff --git a/applications/utilities/mesh/conversion/star3ToFoam/mergeCoupleFacePoints.C b/applications/utilities/mesh/conversion/star3ToFoam/mergeCoupleFacePoints.C index 2efd1c4c0c8..2e7a3cfa9c6 100644 --- a/applications/utilities/mesh/conversion/star3ToFoam/mergeCoupleFacePoints.C +++ b/applications/utilities/mesh/conversion/star3ToFoam/mergeCoupleFacePoints.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -32,7 +32,7 @@ Description // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // -void starMesh::mergeCoupleFacePoints() +void Foam::starMesh::mergeCoupleFacePoints() { // mark all used points by looping through all faces in two goes. // First, go into every cell and find min edge length. Use a diff --git a/applications/utilities/mesh/conversion/star3ToFoam/purgeCellShapes.C b/applications/utilities/mesh/conversion/star3ToFoam/purgeCellShapes.C index 0f4b26669e0..dbaf5b9f51a 100644 --- a/applications/utilities/mesh/conversion/star3ToFoam/purgeCellShapes.C +++ b/applications/utilities/mesh/conversion/star3ToFoam/purgeCellShapes.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -30,7 +30,7 @@ Description // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // -void starMesh::purgeCellShapes() +void Foam::starMesh::purgeCellShapes() { forAll(cellFaces_, cellI) { diff --git a/applications/utilities/mesh/conversion/star3ToFoam/readBoundary.C b/applications/utilities/mesh/conversion/star3ToFoam/readBoundary.C index 0b4fd11ddbc..63aa38e0282 100644 --- a/applications/utilities/mesh/conversion/star3ToFoam/readBoundary.C +++ b/applications/utilities/mesh/conversion/star3ToFoam/readBoundary.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -36,7 +36,7 @@ Description // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -void starMesh::readBoundary() +void Foam::starMesh::readBoundary() { label nPatches=0, nFaces=0; labelList nPatchFaces(1000); diff --git a/applications/utilities/mesh/conversion/star3ToFoam/readCells.C b/applications/utilities/mesh/conversion/star3ToFoam/readCells.C index 9fba892ad1c..b485a6115d5 100644 --- a/applications/utilities/mesh/conversion/star3ToFoam/readCells.C +++ b/applications/utilities/mesh/conversion/star3ToFoam/readCells.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -31,7 +31,7 @@ Description // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -void starMesh::addRegularCell +void Foam::starMesh::addRegularCell ( const labelList& labels, const label nCreatedCells @@ -116,7 +116,7 @@ void starMesh::addRegularCell } -void starMesh::addSAMMcell +void Foam::starMesh::addSAMMcell ( const labelList& labels, const label nCreatedCells @@ -205,7 +205,7 @@ void starMesh::addSAMMcell } -void starMesh::readCells() +void Foam::starMesh::readCells() { label nCells = 0; label maxLabel = -1; diff --git a/applications/utilities/mesh/conversion/star3ToFoam/readCouples.C b/applications/utilities/mesh/conversion/star3ToFoam/readCouples.C index 1c3815c85e5..cca228ae167 100644 --- a/applications/utilities/mesh/conversion/star3ToFoam/readCouples.C +++ b/applications/utilities/mesh/conversion/star3ToFoam/readCouples.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -31,7 +31,7 @@ Description // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -void starMesh::readCouples() +void Foam::starMesh::readCouples() { fileName couplesFileName(casePrefix_ + ".cpl"); diff --git a/applications/utilities/mesh/conversion/star3ToFoam/readPoints.C b/applications/utilities/mesh/conversion/star3ToFoam/readPoints.C index 1e9084b3732..19138a30114 100644 --- a/applications/utilities/mesh/conversion/star3ToFoam/readPoints.C +++ b/applications/utilities/mesh/conversion/star3ToFoam/readPoints.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -31,7 +31,7 @@ Description // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -label starMesh::readVtxLabel(IFstream& is) +Foam::label Foam::starMesh::readVtxLabel(IFstream& is) { char lcs[16]; @@ -46,7 +46,7 @@ label starMesh::readVtxLabel(IFstream& is) } -scalar starMesh::readVtxCmpt(IFstream& is) +Foam::scalar Foam::starMesh::readVtxCmpt(IFstream& is) { char lcs[17]; @@ -61,7 +61,7 @@ scalar starMesh::readVtxCmpt(IFstream& is) } -void starMesh::readToNl(IFstream& is) +void Foam::starMesh::readToNl(IFstream& is) { char c; do @@ -71,7 +71,7 @@ void starMesh::readToNl(IFstream& is) } -void starMesh::readPoints(const scalar scaleFactor) +void Foam::starMesh::readPoints(const scalar scaleFactor) { label nPoints = 0; label maxLabel = -1; @@ -117,12 +117,12 @@ void starMesh::readPoints(const scalar scaleFactor) points_.setSize(nPoints); -# ifdef starMesh_H + #ifdef starMesh_H starPointID_.setSize(nPoints); // Reset STAR point ID, just in case starPointID_ = -1; -# endif + #endif starPointLabelLookup_.setSize(maxLabel+1); @@ -146,9 +146,9 @@ void starMesh::readPoints(const scalar scaleFactor) readToNl(pointsFile); -# ifdef starMesh_H + #ifdef starMesh_H starPointID_[p] = pointLabel; -# endif + #endif starPointLabelLookup_[pointLabel] = p; } diff --git a/applications/utilities/mesh/conversion/star3ToFoam/readSeparatedPoints.C b/applications/utilities/mesh/conversion/star3ToFoam/readSeparatedPoints.C index 5873cb1dc2e..c13376dfd2d 100644 --- a/applications/utilities/mesh/conversion/star3ToFoam/readSeparatedPoints.C +++ b/applications/utilities/mesh/conversion/star3ToFoam/readSeparatedPoints.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -31,7 +31,7 @@ Description // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -void starMesh::readPoints(const scalar scaleFactor) +void Foam::starMesh::readPoints(const scalar scaleFactor) { label nPoints = 0; label maxLabel = -1; diff --git a/applications/utilities/mesh/conversion/star3ToFoam/star3ToFoam.C b/applications/utilities/mesh/conversion/star3ToFoam/star3ToFoam.C index 75b6e09edc9..9668741305e 100644 --- a/applications/utilities/mesh/conversion/star3ToFoam/star3ToFoam.C +++ b/applications/utilities/mesh/conversion/star3ToFoam/star3ToFoam.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -33,6 +33,8 @@ Description #include "Time.H" #include "starMesh.H" +using namespace Foam; + // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // int main(int argc, char *argv[]) diff --git a/applications/utilities/mesh/conversion/star3ToFoam/starMesh.C b/applications/utilities/mesh/conversion/star3ToFoam/starMesh.C index 4e699a5ccb5..7f48b0518c3 100644 --- a/applications/utilities/mesh/conversion/star3ToFoam/starMesh.C +++ b/applications/utilities/mesh/conversion/star3ToFoam/starMesh.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -31,33 +31,41 @@ License // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // Merge tolerances -// Moni, tolerances: -const scalar starMesh::smallMergeTol_ = 1e-3; -const scalar starMesh::cpMergePointTol_ = 1e-4; - -// const scalar starMesh::smallMergeTol_ = 4e-4; -// const scalar starMesh::cpMergePointTol_ = 1e-3; +const Foam::scalar Foam::starMesh::smallMergeTol_ = 1e-3; +const Foam::scalar Foam::starMesh::cpMergePointTol_ = 1e-4; // Cell shape models -const cellModel* starMesh::unknownPtr_ = cellModeller::lookup("unknown"); -const cellModel* starMesh::tetPtr_ = cellModeller::lookup("tet"); -const cellModel* starMesh::pyrPtr_ = cellModeller::lookup("pyr"); -const cellModel* starMesh::tetWedgePtr_ = cellModeller::lookup("tetWedge"); -const cellModel* starMesh::prismPtr_ = cellModeller::lookup("prism"); -const cellModel* starMesh::wedgePtr_ = cellModeller::lookup("wedge"); -const cellModel* starMesh::hexPtr_ = cellModeller::lookup("hex"); - -const cellModel* starMesh::sammTrim1Ptr_ = cellModeller::lookup("sammTrim1"); -const cellModel* starMesh::sammTrim2Ptr_ = cellModeller::lookup("sammTrim2"); -const cellModel* starMesh::sammTrim3Ptr_ = cellModeller::lookup("sammTrim3"); -const cellModel* starMesh::sammTrim4Ptr_ = cellModeller::lookup("sammTrim4"); -const cellModel* starMesh::sammTrim5Ptr_ = cellModeller::lookup("sammTrim5"); -const cellModel* starMesh::sammTrim8Ptr_ = - cellModeller::lookup("hexagonalPrism"); +const Foam::cellModel* Foam::starMesh::unknownPtr_ = + Foam::cellModeller::lookup("unknown"); +const Foam::cellModel* Foam::starMesh::tetPtr_ = + Foam::cellModeller::lookup("tet"); +const Foam::cellModel* Foam::starMesh::pyrPtr_ = + Foam::cellModeller::lookup("pyr"); +const Foam::cellModel* Foam::starMesh::tetWedgePtr_ = + Foam::cellModeller::lookup("tetWedge"); +const Foam::cellModel* Foam::starMesh::prismPtr_ = + Foam::cellModeller::lookup("prism"); +const Foam::cellModel* Foam::starMesh::wedgePtr_ = + Foam::cellModeller::lookup("wedge"); +const Foam::cellModel* Foam::starMesh::hexPtr_ = + Foam::cellModeller::lookup("hex"); + +const Foam::cellModel* Foam::starMesh::sammTrim1Ptr_ = + Foam::cellModeller::lookup("sammTrim1"); +const Foam::cellModel* Foam::starMesh::sammTrim2Ptr_ = + Foam::cellModeller::lookup("sammTrim2"); +const Foam::cellModel* Foam::starMesh::sammTrim3Ptr_ = + Foam::cellModeller::lookup("sammTrim3"); +const Foam::cellModel* Foam::starMesh::sammTrim4Ptr_ = + Foam::cellModeller::lookup("sammTrim4"); +const Foam::cellModel* Foam::starMesh::sammTrim5Ptr_ = + Foam::cellModeller::lookup("sammTrim5"); +const Foam::cellModel* Foam::starMesh::sammTrim8Ptr_ = + Foam::cellModeller::lookup("hexagonalPrism"); // Regular cell point addressing // SAMM point addressing -const label starMesh::regularAddressingTable[6][8] = +const Foam::label Foam::starMesh::regularAddressingTable[6][8] = { { 0, 1, 2, 4, -1, -1, -1, -1}, // tet { 0, 1, 2, 3, 4, -1, -1, -1}, // pyramid @@ -69,7 +77,7 @@ const label starMesh::regularAddressingTable[6][8] = // SAMM point addressing -const label starMesh::sammAddressingTable[9][12] = +const Foam::label Foam::starMesh::sammAddressingTable[9][12] = { {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, // samm0 - empty { 3, 2, 6, 7, 11, 9, 1, 5, 4, 12, -1, -1}, // samm1+ @@ -97,7 +105,7 @@ const label starMesh::sammAddressingTable[9][12] = // Additionally, have in mind that this silliness does not allow matches // on face 7 and 8 of the samm cell. -const label starMesh::sammFacePermutationTable[24][8] = +const Foam::label Foam::starMesh::sammFacePermutationTable[24][8] = { {-1, 1, 2, 3, 4, 5, 6, 7}, // permutation 0 {-1, 3, 4, 5, 6, 1, 2, 7}, // permutation 1 @@ -125,7 +133,7 @@ const label starMesh::sammFacePermutationTable[24][8] = {-1, 6, 5, 2, 1, 3, 4, 7} // permutation 23 }; -const label starMesh::shapeFaceLookup[19][9] = +const Foam::label Foam::starMesh::shapeFaceLookup[19][9] = { {-1, -1, -1, -1, -1, -1, -1, -1, -1}, // shape 0 - empty+ {-1, -1, -1, -1, -1, -1, -1, -1, -1}, // shape 1 - empty+ @@ -185,8 +193,7 @@ const label starMesh::shapeFaceLookup[19][9] = // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // -// Make polyhedral mesh data (packing) -void starMesh::createPolyMeshData() +void Foam::starMesh::createPolyMeshData() { Info<< "Creating a polyMesh" << endl; @@ -199,9 +206,7 @@ void starMesh::createPolyMeshData() } -// Clear extra storage before creation of the mesh to remove -// a memory peak -void starMesh::clearExtraStorage() +void Foam::starMesh::clearExtraStorage() { Info<< "Clearing extra storage" << endl; @@ -218,10 +223,10 @@ void starMesh::clearExtraStorage() deleteDemandDrivenData(pointCellsPtr_); } + // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // -// Construct from components -starMesh::starMesh +Foam::starMesh::starMesh ( const fileName& prefix, const Time& rt, @@ -281,13 +286,10 @@ starMesh::starMesh // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // -starMesh::~starMesh() +Foam::starMesh::~starMesh() { deleteDemandDrivenData(pointCellsPtr_); } -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - - // ************************************************************************* // diff --git a/applications/utilities/mesh/conversion/star3ToFoam/starMesh.H b/applications/utilities/mesh/conversion/star3ToFoam/starMesh.H index 224bbb2d183..2bcec6115b8 100644 --- a/applications/utilities/mesh/conversion/star3ToFoam/starMesh.H +++ b/applications/utilities/mesh/conversion/star3ToFoam/starMesh.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -58,11 +58,8 @@ SourceFiles // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -#ifndef namespaceFoam -#define namespaceFoam - using namespace Foam; -#endif - +namespace Foam +{ /*---------------------------------------------------------------------------*\ Class starMesh Declaration @@ -310,6 +307,10 @@ public: }; +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +} // End namespace Foam + // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // #endif diff --git a/applications/utilities/mesh/conversion/star3ToFoam/writeMesh.C b/applications/utilities/mesh/conversion/star3ToFoam/writeMesh.C index 6a1311290cd..d78be005406 100644 --- a/applications/utilities/mesh/conversion/star3ToFoam/writeMesh.C +++ b/applications/utilities/mesh/conversion/star3ToFoam/writeMesh.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -32,7 +32,7 @@ Description // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -void starMesh::writeMesh() +void Foam::starMesh::writeMesh() { if (isShapeMesh_) { diff --git a/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/featurePointConformer/pointFeatureEdgesTypes.H b/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/featurePointConformer/pointFeatureEdgesTypes.H index 5e7f6a4ebb6..89703efdd86 100644 --- a/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/featurePointConformer/pointFeatureEdgesTypes.H +++ b/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/featurePointConformer/pointFeatureEdgesTypes.H @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - pointFeatureEdgesTypes + Foam::pointFeatureEdgesTypes Description Holds information on the types of feature edges attached to feature points. diff --git a/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/indexedCell/indexedCell.H b/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/indexedCell/indexedCell.H index 14298c3dc7b..a9f694ba29a 100644 --- a/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/indexedCell/indexedCell.H +++ b/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/indexedCell/indexedCell.H @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - indexedCell + CGAL::indexedCell Description An indexed form of CGAL::Triangulation_cell_base_3<K> used to keep diff --git a/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/indexedCell/indexedCellEnum.H b/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/indexedCell/indexedCellEnum.H index 2671a3bc134..d81deca00c9 100644 --- a/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/indexedCell/indexedCellEnum.H +++ b/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/indexedCell/indexedCellEnum.H @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - indexedCellEnum + Foam::indexedCellEnum Description diff --git a/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/indexedCell/indexedCellOps.H b/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/indexedCell/indexedCellOps.H index 2dbe4cb5fb7..09f42566cb1 100644 --- a/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/indexedCell/indexedCellOps.H +++ b/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/indexedCell/indexedCellOps.H @@ -21,8 +21,8 @@ License You should have received a copy of the GNU General Public License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. -Class - indexedCellOps +Namespace + CGAL::indexedCellOps Description diff --git a/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/indexedVertex/indexedVertex.H b/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/indexedVertex/indexedVertex.H index 3db67e8a11e..dd13623398e 100644 --- a/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/indexedVertex/indexedVertex.H +++ b/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/indexedVertex/indexedVertex.H @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - indexedVertex + CGAL::indexedVertex Description An indexed form of CGAL::Triangulation_vertex_base_3<K> used to keep diff --git a/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/indexedVertex/indexedVertexEnum.H b/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/indexedVertex/indexedVertexEnum.H index 8f283867052..cc3e2d85acb 100644 --- a/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/indexedVertex/indexedVertexEnum.H +++ b/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/indexedVertex/indexedVertexEnum.H @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - indexedVertexEnum + Foam::indexedVertexEnum Description diff --git a/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/indexedVertex/indexedVertexOps.H b/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/indexedVertex/indexedVertexOps.H index b18cd8e86e6..3794042d9c1 100644 --- a/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/indexedVertex/indexedVertexOps.H +++ b/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/indexedVertex/indexedVertexOps.H @@ -21,8 +21,8 @@ License You should have received a copy of the GNU General Public License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. -Class - indexedVertexOps +Namespace + CGAL::indexedVertexOps Description diff --git a/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/pointConversion.H b/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/pointConversion.H index acce9a0d8a6..fe799a31a31 100644 --- a/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/pointConversion.H +++ b/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/pointConversion.H @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - pointConversion + Foam::pointConversion Description Conversion functions between point (Foam::) and Point (CGAL::) diff --git a/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/pointPairs/pointPairs.H b/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/pointPairs/pointPairs.H index bb6480ea914..30d1ddfcf65 100644 --- a/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/pointPairs/pointPairs.H +++ b/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/pointPairs/pointPairs.H @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - pointPairs + Foam::pointPairs Description HashSet of unique edges. The edges are stored as a pair of pairs: diff --git a/applications/utilities/mesh/generation/foamyMesh/foamyQuadMesh/CV2D.H b/applications/utilities/mesh/generation/foamyMesh/foamyQuadMesh/CV2D.H index 0d9a4d0ebfa..da273a90d21 100644 --- a/applications/utilities/mesh/generation/foamyMesh/foamyQuadMesh/CV2D.H +++ b/applications/utilities/mesh/generation/foamyMesh/foamyQuadMesh/CV2D.H @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - CV2D + Foam::CV2D Description Conformal-Voronoi 2D automatic mesher with grid or read initial points diff --git a/applications/utilities/mesh/generation/foamyMesh/foamyQuadMesh/indexedFace.H b/applications/utilities/mesh/generation/foamyMesh/foamyQuadMesh/indexedFace.H index abada80dbc1..571273d1fdf 100644 --- a/applications/utilities/mesh/generation/foamyMesh/foamyQuadMesh/indexedFace.H +++ b/applications/utilities/mesh/generation/foamyMesh/foamyQuadMesh/indexedFace.H @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - indexedFace + CGAL::indexedFace Description An indexed form of CGAL::Triangulation_face_base_2<K> used to keep diff --git a/applications/utilities/mesh/generation/foamyMesh/foamyQuadMesh/indexedVertex.H b/applications/utilities/mesh/generation/foamyMesh/foamyQuadMesh/indexedVertex.H index 17cee7d9e5e..83013847157 100644 --- a/applications/utilities/mesh/generation/foamyMesh/foamyQuadMesh/indexedVertex.H +++ b/applications/utilities/mesh/generation/foamyMesh/foamyQuadMesh/indexedVertex.H @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - indexedVertex + CGAL::indexedVertex Description An indexed form of CGAL::Triangulation_vertex_base_2<K> used to keep diff --git a/applications/utilities/mesh/manipulation/polyDualMesh/meshDualiser.H b/applications/utilities/mesh/manipulation/polyDualMesh/meshDualiser.H index d1ac42b6150..ce3f98f3ec2 100644 --- a/applications/utilities/mesh/manipulation/polyDualMesh/meshDualiser.H +++ b/applications/utilities/mesh/manipulation/polyDualMesh/meshDualiser.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - meshDualiser + Foam::meshDualiser Description Creates dual of polyMesh. Every point becomes a cell (or multiple cells @@ -40,7 +40,7 @@ Description In same way you can also preserve internal faces (e.g. faceZones) SourceFiles - meshDualiser.C + Foam::meshDualiser.C \*---------------------------------------------------------------------------*/ diff --git a/src/OSspecific/POSIX/fileMonitor.H b/src/OSspecific/POSIX/fileMonitor.H index af0e4180744..18e4ab05ff6 100644 --- a/src/OSspecific/POSIX/fileMonitor.H +++ b/src/OSspecific/POSIX/fileMonitor.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - fileMonitor + Foam::fileMonitor Description Checking for changes to files. diff --git a/src/OpenFOAM/db/IOstreams/Pstreams/UPstream.C b/src/OpenFOAM/db/IOstreams/Pstreams/UPstream.C index 821c1dd7960..a721eb2a055 100644 --- a/src/OpenFOAM/db/IOstreams/Pstreams/UPstream.C +++ b/src/OpenFOAM/db/IOstreams/Pstreams/UPstream.C @@ -451,32 +451,40 @@ Foam::UPstream::commsTypes Foam::UPstream::defaultCommsType ( commsTypeNames.read(Foam::debug::optimisationSwitches().lookup("commsType")) ); -// Register re-reader -class addcommsTypeToOpt -: - public ::Foam::simpleRegIOobject + +namespace Foam { -public: - addcommsTypeToOpt(const char* name) + // Register re-reader + class addcommsTypeToOpt : - ::Foam::simpleRegIOobject(Foam::debug::addOptimisationObject, name) - {} - virtual ~addcommsTypeToOpt() - {} - virtual void readData(Foam::Istream& is) + public ::Foam::simpleRegIOobject { - Foam::UPstream::defaultCommsType = Foam::UPstream::commsTypeNames.read - ( - is - ); - } - virtual void writeData(Foam::Ostream& os) const - { - os << Foam::UPstream::commsTypeNames[Foam::UPstream::defaultCommsType]; - } -}; -addcommsTypeToOpt addcommsTypeToOpt_("commsType"); + public: + + addcommsTypeToOpt(const char* name) + : + ::Foam::simpleRegIOobject(Foam::debug::addOptimisationObject, name) + {} + + virtual ~addcommsTypeToOpt() + {} + virtual void readData(Foam::Istream& is) + { + UPstream::defaultCommsType = UPstream::commsTypeNames.read + ( + is + ); + } + + virtual void writeData(Foam::Ostream& os) const + { + os << UPstream::commsTypeNames[UPstream::defaultCommsType]; + } + }; + + addcommsTypeToOpt addcommsTypeToOpt_("commsType"); +} // Default communicator Foam::label Foam::UPstream::worldComm(0); diff --git a/src/OpenFOAM/db/regIOobject/regIOobject.C b/src/OpenFOAM/db/regIOobject/regIOobject.C index 847d7cdb32c..ac8cf38adff 100644 --- a/src/OpenFOAM/db/regIOobject/regIOobject.C +++ b/src/OpenFOAM/db/regIOobject/regIOobject.C @@ -74,35 +74,42 @@ Foam::regIOobject::fileCheckTypes Foam::regIOobject::fileModificationChecking ) ) ); -// Register re-reader -class addfileModificationCheckingToOpt -: - public ::Foam::simpleRegIOobject + +namespace Foam { -public: - addfileModificationCheckingToOpt(const char* name) + // Register re-reader + class addfileModificationCheckingToOpt : - ::Foam::simpleRegIOobject(Foam::debug::addOptimisationObject, name) - {} - virtual ~addfileModificationCheckingToOpt() - {} - virtual void readData(Foam::Istream& is) - { - Foam::regIOobject::fileModificationChecking = - Foam::regIOobject::fileCheckTypesNames.read(is); - } - virtual void writeData(Foam::Ostream& os) const + public ::Foam::simpleRegIOobject { - os << Foam::regIOobject::fileCheckTypesNames - [ - Foam::regIOobject::fileModificationChecking - ]; - } -}; -addfileModificationCheckingToOpt addfileModificationCheckingToOpt_ -( - "fileModificationChecking" -); + public: + + addfileModificationCheckingToOpt(const char* name) + : + ::Foam::simpleRegIOobject(Foam::debug::addOptimisationObject, name) + {} + + virtual ~addfileModificationCheckingToOpt() + {} + + virtual void readData(Foam::Istream& is) + { + regIOobject::fileModificationChecking = + regIOobject::fileCheckTypesNames.read(is); + } + + virtual void writeData(Foam::Ostream& os) const + { + os << regIOobject::fileCheckTypesNames + [regIOobject::fileModificationChecking]; + } + }; + + addfileModificationCheckingToOpt addfileModificationCheckingToOpt_ + ( + "fileModificationChecking" + ); +} bool Foam::regIOobject::masterOnlyReading = false; diff --git a/src/OpenFOAM/global/debug/registerSwitch.H b/src/OpenFOAM/global/debug/registerSwitch.H index 9c5cd26275c..9e6d3580e4c 100644 --- a/src/OpenFOAM/global/debug/registerSwitch.H +++ b/src/OpenFOAM/global/debug/registerSwitch.H @@ -21,6 +21,9 @@ License 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::RegisterSwitch + Description Class and registration macros for InfoSwitches and OptimisationSwitches to support reading from system/controlDict and dynamic update. @@ -34,10 +37,17 @@ Description // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // +namespace Foam +{ + +/*---------------------------------------------------------------------------*\ + Class RegisterSwitch Declaration +\*---------------------------------------------------------------------------*/ + template<class Type> class RegisterSwitch : - public ::Foam::simpleRegIOobject + public simpleRegIOobject { Type& optSwitch_; @@ -50,7 +60,7 @@ public: Type& optSwitch ) : - ::Foam::simpleRegIOobject(registryFn, name), + simpleRegIOobject(registryFn, name), optSwitch_(optSwitch) {} @@ -69,17 +79,23 @@ public: }; +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +} // End namespace Foam + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + #define CONCAT(x, y) x ## y #define CONCAT2(x, y) CONCAT(x, y) #define FILE_UNIQUE(x) CONCAT2(x, __LINE__) #define registerOptSwitch(Name, Type, Switch) \ - static RegisterSwitch<Type> FILE_UNIQUE(_addToOpt_) \ + static Foam::RegisterSwitch<Type> FILE_UNIQUE(_addToOpt_) \ (Foam::debug::addOptimisationObject, Name, Switch) #define registerInfoSwitch(Name, Type, Switch) \ - static RegisterSwitch<Type> FILE_UNIQUE(_addToOpt_) \ + static Foam::RegisterSwitch<Type> FILE_UNIQUE(_addToOpt_) \ (Foam::debug::addInfoObject, Name, Switch) diff --git a/src/OpenFOAM/matrices/scalarMatrices/scalarMatrices.H b/src/OpenFOAM/matrices/scalarMatrices/scalarMatrices.H index 9dbdb8b65d9..f01a46f1e0b 100644 --- a/src/OpenFOAM/matrices/scalarMatrices/scalarMatrices.H +++ b/src/OpenFOAM/matrices/scalarMatrices/scalarMatrices.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - scalarMatrices + Foam::scalarMatrices Description Scalar matrices diff --git a/src/OpenFOAM/primitives/Scalar/Scalar.H b/src/OpenFOAM/primitives/Scalar/Scalar.H index f4abc331feb..49f4072dd92 100644 --- a/src/OpenFOAM/primitives/Scalar/Scalar.H +++ b/src/OpenFOAM/primitives/Scalar/Scalar.H @@ -25,7 +25,7 @@ Typedef Foam::Scalar Description - Single floating point number + Single floating point number (float or double) SourceFiles Scalar.C @@ -34,6 +34,11 @@ SourceFiles // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // +namespace Foam +{ + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + // template specialisation for pTraits<Scalar> template<> class pTraits<Scalar> @@ -314,5 +319,8 @@ Scalar readScalar(Istream&); Istream& operator>>(Istream&, Scalar&); Ostream& operator<<(Ostream&, const Scalar); +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +} // End namespace Foam // ************************************************************************* // diff --git a/src/OpenFOAM/primitives/Scalar/doubleScalar/doubleScalar.H b/src/OpenFOAM/primitives/Scalar/doubleScalar/doubleScalar.H index 80687f6f072..2498f5f9cc8 100644 --- a/src/OpenFOAM/primitives/Scalar/doubleScalar/doubleScalar.H +++ b/src/OpenFOAM/primitives/Scalar/doubleScalar/doubleScalar.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -85,8 +85,21 @@ inline Scalar func(const Scalar s) \ return ::func(s); \ } +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +} // End namespace Foam + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + #include "Scalar.H" +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +namespace Foam +{ + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + inline Scalar hypot(const Scalar x, const Scalar y) { return ::hypot(x, y); diff --git a/src/OpenFOAM/primitives/Scalar/floatScalar/floatScalar.H b/src/OpenFOAM/primitives/Scalar/floatScalar/floatScalar.H index c379e0fbdab..31ae9891dd0 100644 --- a/src/OpenFOAM/primitives/Scalar/floatScalar/floatScalar.H +++ b/src/OpenFOAM/primitives/Scalar/floatScalar/floatScalar.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -85,8 +85,21 @@ inline Scalar func(const Scalar s) \ return ::func##f(s); \ } +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +} // End namespace Foam + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + #include "Scalar.H" +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +namespace Foam +{ + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + inline Scalar hypot(const Scalar x, const Scalar y) { return ::hypotf(x, y); diff --git a/src/OpenFOAM/primitives/VectorSpace/VectorSpaceI.H b/src/OpenFOAM/primitives/VectorSpace/VectorSpaceI.H index 3f79add31b3..eb313e51ec8 100644 --- a/src/OpenFOAM/primitives/VectorSpace/VectorSpaceI.H +++ b/src/OpenFOAM/primitives/VectorSpace/VectorSpaceI.H @@ -25,7 +25,7 @@ License #include "error.H" #include "products.H" -#include "VectorSpaceM.H" +#include "VectorSpaceOps.H" #include "ops.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/OpenFOAM/primitives/VectorSpace/VectorSpaceM.H b/src/OpenFOAM/primitives/VectorSpace/VectorSpaceOps.H similarity index 55% rename from src/OpenFOAM/primitives/VectorSpace/VectorSpaceM.H rename to src/OpenFOAM/primitives/VectorSpace/VectorSpaceOps.H index 45ba4f40cd8..7f6d3e1199b 100644 --- a/src/OpenFOAM/primitives/VectorSpace/VectorSpaceM.H +++ b/src/OpenFOAM/primitives/VectorSpace/VectorSpaceOps.H @@ -1,3 +1,43 @@ +/*---------------------------------------------------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | + \\ / A nd | Copyright (C) 2011-2015 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::VectorSpaceOps + +Description + Operator functions for VectorSpace. + +\*---------------------------------------------------------------------------*/ + +#ifndef VectorSpaceOps_H +#define VectorSpaceOps_H + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +namespace Foam +{ + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // template<int N, int I> class VectorSpaceOps @@ -81,3 +121,14 @@ public: static inline void op(V& vs, const V1&, const V1&, Op) {} }; + + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +} // End namespace Foam + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +#endif + +// ************************************************************************* // diff --git a/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/temperatureCoupledBase/temperatureCoupledBase.H b/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/temperatureCoupledBase/temperatureCoupledBase.H index 7385c39df26..186ed39eecc 100644 --- a/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/temperatureCoupledBase/temperatureCoupledBase.H +++ b/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/temperatureCoupledBase/temperatureCoupledBase.H @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - temperatureCoupledBase + Foam::temperatureCoupledBase Description Common functions for use in temperature coupled boundaries. For now only diff --git a/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/turbulentTemperatureCoupledBaffleMixed/turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.H b/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/turbulentTemperatureCoupledBaffleMixed/turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.H index 862abc18522..18d1d4cb4a0 100644 --- a/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/turbulentTemperatureCoupledBaffleMixed/turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.H +++ b/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/turbulentTemperatureCoupledBaffleMixed/turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.H @@ -22,9 +22,8 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - Foam:: - compressible:: - turbulentTemperatureCoupledBaffleMixedFvPatchScalarField + Foam::compressible:: + turbulentTemperatureCoupledBaffleMixedFvPatchScalarField Description Mixed boundary condition for temperature, to be used for heat-transfer diff --git a/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/turbulentTemperatureRadCoupledMixed/turbulentTemperatureRadCoupledMixedFvPatchScalarField.H b/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/turbulentTemperatureRadCoupledMixed/turbulentTemperatureRadCoupledMixedFvPatchScalarField.H index 8c332402e92..6bd2aaa6e99 100644 --- a/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/turbulentTemperatureRadCoupledMixed/turbulentTemperatureRadCoupledMixedFvPatchScalarField.H +++ b/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/turbulentTemperatureRadCoupledMixed/turbulentTemperatureRadCoupledMixedFvPatchScalarField.H @@ -22,9 +22,8 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - Foam:: - compressible:: - turbulentTemperatureRadCoupledMixedFvPatchScalarField + Foam::compressible:: + turbulentTemperatureRadCoupledMixedFvPatchScalarField Description Mixed boundary condition for temperature and radiation heat transfer diff --git a/src/dynamicMesh/extrudePatchMesh/extrudePatchMesh.H b/src/dynamicMesh/extrudePatchMesh/extrudePatchMesh.H index 6fc480b1bd2..4f0cb123b5c 100644 --- a/src/dynamicMesh/extrudePatchMesh/extrudePatchMesh.H +++ b/src/dynamicMesh/extrudePatchMesh/extrudePatchMesh.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - extrudePatchMesh + Foam::extrudePatchMesh Description Mesh at a patch created on the fly. The following entry should be used @@ -194,4 +194,3 @@ public: #endif // ************************************************************************* // - diff --git a/src/dynamicMesh/polyTopoChange/polyTopoChange/tetDecomposer.H b/src/dynamicMesh/polyTopoChange/polyTopoChange/tetDecomposer.H index 8485f3cd8db..eef84e25daf 100644 --- a/src/dynamicMesh/polyTopoChange/polyTopoChange/tetDecomposer.H +++ b/src/dynamicMesh/polyTopoChange/polyTopoChange/tetDecomposer.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2012 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - tetDecomposer + Foam::tetDecomposer Description Decomposes polyMesh into tets. diff --git a/src/finiteVolume/interpolation/surfaceInterpolation/schemes/pointLinear/pointLinear.H b/src/finiteVolume/interpolation/surfaceInterpolation/schemes/pointLinear/pointLinear.H index c4ec83ed4b8..e95997d55dd 100644 --- a/src/finiteVolume/interpolation/surfaceInterpolation/schemes/pointLinear/pointLinear.H +++ b/src/finiteVolume/interpolation/surfaceInterpolation/schemes/pointLinear/pointLinear.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - pointLinear + Foam::pointLinear Description Face-point interpolation scheme class derived from linear and diff --git a/src/fvMotionSolver/pointPatchFields/derived/surfaceDisplacement/surfaceDisplacementPointPatchVectorField.H b/src/fvMotionSolver/pointPatchFields/derived/surfaceDisplacement/surfaceDisplacementPointPatchVectorField.H index 786e452a46f..7fbe8c5ec05 100644 --- a/src/fvMotionSolver/pointPatchFields/derived/surfaceDisplacement/surfaceDisplacementPointPatchVectorField.H +++ b/src/fvMotionSolver/pointPatchFields/derived/surfaceDisplacement/surfaceDisplacementPointPatchVectorField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - surfaceDisplacementPointPatchVectorField + Foam::surfaceDisplacementPointPatchVectorField Description Displacement fixed by projection onto triSurface. diff --git a/src/lagrangian/coalCombustion/coalCloud/coalCloud.H b/src/lagrangian/coalCombustion/coalCloud/coalCloud.H index b7c21230bc9..2209801ed7d 100644 --- a/src/lagrangian/coalCombustion/coalCloud/coalCloud.H +++ b/src/lagrangian/coalCombustion/coalCloud/coalCloud.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - coalCloud + Foam::coalCloud Description Cloud class to introduce coal parcels diff --git a/src/lagrangian/coalCombustion/coalParcel/coalParcel.H b/src/lagrangian/coalCombustion/coalParcel/coalParcel.H index 8c4a0c7dc74..981539b9dab 100644 --- a/src/lagrangian/coalCombustion/coalParcel/coalParcel.H +++ b/src/lagrangian/coalCombustion/coalParcel/coalParcel.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - coalParcel + Foam::coalParcel Description Definition of coal parcel diff --git a/src/lagrangian/coalCombustion/submodels/surfaceReactionModel/COxidationDiffusionLimitedRate/COxidationDiffusionLimitedRate.H b/src/lagrangian/coalCombustion/submodels/surfaceReactionModel/COxidationDiffusionLimitedRate/COxidationDiffusionLimitedRate.H index 83a4c19d8ac..26a741062c1 100644 --- a/src/lagrangian/coalCombustion/submodels/surfaceReactionModel/COxidationDiffusionLimitedRate/COxidationDiffusionLimitedRate.H +++ b/src/lagrangian/coalCombustion/submodels/surfaceReactionModel/COxidationDiffusionLimitedRate/COxidationDiffusionLimitedRate.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - COxidationDiffusionLimitedRate + Foam::COxidationDiffusionLimitedRate Description Diffusion limited rate surface reaction model for coal parcels. Limited to: @@ -40,12 +40,15 @@ Description // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // +namespace Foam +{ + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + // Forward class declarations template<class CloudType> class COxidationDiffusionLimitedRate; -namespace Foam -{ /*---------------------------------------------------------------------------*\ Class COxidationDiffusionLimitedRate Declaration \*---------------------------------------------------------------------------*/ diff --git a/src/lagrangian/coalCombustion/submodels/surfaceReactionModel/COxidationHurtMitchell/COxidationHurtMitchell.H b/src/lagrangian/coalCombustion/submodels/surfaceReactionModel/COxidationHurtMitchell/COxidationHurtMitchell.H index cd7800328fe..08e20f74c87 100644 --- a/src/lagrangian/coalCombustion/submodels/surfaceReactionModel/COxidationHurtMitchell/COxidationHurtMitchell.H +++ b/src/lagrangian/coalCombustion/submodels/surfaceReactionModel/COxidationHurtMitchell/COxidationHurtMitchell.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2012 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - COxidationHurtMitchell + Foam::COxidationHurtMitchell Description Char oxidation model given by Hurt and Mitchell: @@ -41,7 +41,7 @@ Description Model validity: Gas temperature: Tc > 1500 K Particle sizes: 75 um -> 200 um - Pox > 0.3 atm + Pox > 0.3 atm \*---------------------------------------------------------------------------*/ diff --git a/src/lagrangian/coalCombustion/submodels/surfaceReactionModel/COxidationIntrinsicRate/COxidationIntrinsicRate.H b/src/lagrangian/coalCombustion/submodels/surfaceReactionModel/COxidationIntrinsicRate/COxidationIntrinsicRate.H index f868654ca32..ead8d85d26d 100644 --- a/src/lagrangian/coalCombustion/submodels/surfaceReactionModel/COxidationIntrinsicRate/COxidationIntrinsicRate.H +++ b/src/lagrangian/coalCombustion/submodels/surfaceReactionModel/COxidationIntrinsicRate/COxidationIntrinsicRate.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2014 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2014-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - COxidationIntrinsicRate + Foam::COxidationIntrinsicRate Description Intrinsic char surface reaction mndel @@ -40,12 +40,15 @@ Description // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // +namespace Foam +{ + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + // Forward class declarations template<class CloudType> class COxidationIntrinsicRate; -namespace Foam -{ /*---------------------------------------------------------------------------*\ Class COxidationIntrinsicRate Declaration \*---------------------------------------------------------------------------*/ diff --git a/src/lagrangian/coalCombustion/submodels/surfaceReactionModel/COxidationKineticDiffusionLimitedRate/COxidationKineticDiffusionLimitedRate.H b/src/lagrangian/coalCombustion/submodels/surfaceReactionModel/COxidationKineticDiffusionLimitedRate/COxidationKineticDiffusionLimitedRate.H index 2c9b2868351..a57c847799e 100644 --- a/src/lagrangian/coalCombustion/submodels/surfaceReactionModel/COxidationKineticDiffusionLimitedRate/COxidationKineticDiffusionLimitedRate.H +++ b/src/lagrangian/coalCombustion/submodels/surfaceReactionModel/COxidationKineticDiffusionLimitedRate/COxidationKineticDiffusionLimitedRate.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - COxidationKineticDiffusionLimitedRate + Foam::COxidationKineticDiffusionLimitedRate Description Kinetic/diffusion limited rate surface reaction model for coal parcels. diff --git a/src/lagrangian/coalCombustion/submodels/surfaceReactionModel/COxidationMurphyShaddix/COxidationMurphyShaddix.H b/src/lagrangian/coalCombustion/submodels/surfaceReactionModel/COxidationMurphyShaddix/COxidationMurphyShaddix.H index 319178dd47a..95dd8b2bcef 100644 --- a/src/lagrangian/coalCombustion/submodels/surfaceReactionModel/COxidationMurphyShaddix/COxidationMurphyShaddix.H +++ b/src/lagrangian/coalCombustion/submodels/surfaceReactionModel/COxidationMurphyShaddix/COxidationMurphyShaddix.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - COxidationMurphyShaddix + Foam::COxidationMurphyShaddix Description Limited to C(s) + O2 -> CO2 diff --git a/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/KinematicLookupTableInjection/kinematicParcelInjectionDataIOList.H b/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/KinematicLookupTableInjection/kinematicParcelInjectionDataIOList.H index 94a5195426f..6d2b964c889 100644 --- a/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/KinematicLookupTableInjection/kinematicParcelInjectionDataIOList.H +++ b/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/KinematicLookupTableInjection/kinematicParcelInjectionDataIOList.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - kinematicParcelInjectionDataIOList + Foam::kinematicParcelInjectionDataIOList Description diff --git a/src/lagrangian/intermediate/submodels/ReactingMultiphase/InjectionModel/ReactingMultiphaseLookupTableInjection/reactingMultiphaseParcelInjectionDataIOList.H b/src/lagrangian/intermediate/submodels/ReactingMultiphase/InjectionModel/ReactingMultiphaseLookupTableInjection/reactingMultiphaseParcelInjectionDataIOList.H index 1f88dc8ca1e..a5378cb4bdf 100644 --- a/src/lagrangian/intermediate/submodels/ReactingMultiphase/InjectionModel/ReactingMultiphaseLookupTableInjection/reactingMultiphaseParcelInjectionDataIOList.H +++ b/src/lagrangian/intermediate/submodels/ReactingMultiphase/InjectionModel/ReactingMultiphaseLookupTableInjection/reactingMultiphaseParcelInjectionDataIOList.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - reactingMultiphaseParcelInjectionDataIOList + Foam::reactingMultiphaseParcelInjectionDataIOList Description diff --git a/src/lagrangian/intermediate/submodels/Thermodynamic/InjectionModel/ThermoLookupTableInjection/thermoParcelInjectionDataIOList.H b/src/lagrangian/intermediate/submodels/Thermodynamic/InjectionModel/ThermoLookupTableInjection/thermoParcelInjectionDataIOList.H index e84d568919b..f38e6ef3caf 100644 --- a/src/lagrangian/intermediate/submodels/Thermodynamic/InjectionModel/ThermoLookupTableInjection/thermoParcelInjectionDataIOList.H +++ b/src/lagrangian/intermediate/submodels/Thermodynamic/InjectionModel/ThermoLookupTableInjection/thermoParcelInjectionDataIOList.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - thermoParcelInjectionDataIOList + Foam::thermoParcelInjectionDataIOList Description diff --git a/src/meshTools/momentOfInertia/momentOfInertia.H b/src/meshTools/momentOfInertia/momentOfInertia.H index e521d41c774..0f56e8b00b7 100644 --- a/src/meshTools/momentOfInertia/momentOfInertia.H +++ b/src/meshTools/momentOfInertia/momentOfInertia.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - momentOfInertia + Foam::momentOfInertia Description Calculates the inertia tensor and principal axes and moments of a diff --git a/src/regionModels/regionCoupling/derivedFvPatchFields/filmPyrolysisRadiativeCoupledMixed/filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.H b/src/regionModels/regionCoupling/derivedFvPatchFields/filmPyrolysisRadiativeCoupledMixed/filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.H index fb7e923309d..3bbdeb84917 100644 --- a/src/regionModels/regionCoupling/derivedFvPatchFields/filmPyrolysisRadiativeCoupledMixed/filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.H +++ b/src/regionModels/regionCoupling/derivedFvPatchFields/filmPyrolysisRadiativeCoupledMixed/filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -22,10 +22,8 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - - Foam:: - compressible:: - filmPyrolysisRadiativeCoupledMixedFvPatchScalarField + Foam::compressible:: + filmPyrolysisRadiativeCoupledMixedFvPatchScalarField Description Mixed boundary condition for temperature, to be used in the flow and diff --git a/src/regionModels/regionModel/regionProperties/regionProperties.H b/src/regionModels/regionModel/regionProperties/regionProperties.H index 09ebbf66d51..937285ace43 100644 --- a/src/regionModels/regionModel/regionProperties/regionProperties.H +++ b/src/regionModels/regionModel/regionProperties/regionProperties.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - regionProperties + Foam::regionProperties Description Simple class to hold region information for coupled region simulations. diff --git a/src/thermophysicalModels/radiation/derivedFvPatchFields/radiationCoupledBase/radiationCoupledBase.H b/src/thermophysicalModels/radiation/derivedFvPatchFields/radiationCoupledBase/radiationCoupledBase.H index f2ac45fc231..8ef3717246e 100644 --- a/src/thermophysicalModels/radiation/derivedFvPatchFields/radiationCoupledBase/radiationCoupledBase.H +++ b/src/thermophysicalModels/radiation/derivedFvPatchFields/radiationCoupledBase/radiationCoupledBase.H @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - radiationCoupledBase + Foam::radiationCoupledBase Description Common functions to emissivity. It gets supplied from lookup into a -- GitLab