From 5f8638bc74e1a191eb9a4cc877a389287bb64ab7 Mon Sep 17 00:00:00 2001 From: Will Bainbridge Date: Thu, 21 Jun 2018 11:59:32 +0100 Subject: [PATCH 1/3] sampledSet: Put sets in a namespace --- src/sampling/Make/files | 24 +++++++++---------- .../{arcUniformSet.C => arcUniform.C} | 17 +++++++------ .../{arcUniformSet.H => arcUniform.H} | 19 ++++++++------- .../{boundaryPointsSet.C => boundaryPoints.C} | 17 +++++++------ .../{boundaryPointsSet.H => boundaryPoints.H} | 19 ++++++++------- .../{boundaryRandomSet.C => boundaryRandom.C} | 17 +++++++------ .../{boundaryRandomSet.H => boundaryRandom.H} | 19 ++++++++------- .../{boxUniformSet.C => boxUniform.C} | 17 +++++++------ .../{boxUniformSet.H => boxUniform.H} | 20 +++++++++------- .../{circleRandomSet.C => circleRandom.C} | 17 +++++++------ .../{circleRandomSet.H => circleRandom.H} | 19 ++++++++------- .../lineCell/{lineCellSet.C => lineCell.C} | 21 +++++++++------- .../lineCell/{lineCellSet.H => lineCell.H} | 21 +++++++++------- .../{lineCellFaceSet.C => lineCellFace.C} | 23 ++++++++++-------- .../{lineCellFaceSet.H => lineCellFace.H} | 23 ++++++++++-------- .../lineFace/{lineFaceSet.C => lineFace.C} | 19 ++++++++------- .../lineFace/{lineFaceSet.H => lineFace.H} | 19 ++++++++------- .../{lineUniformSet.C => lineUniform.C} | 17 +++++++------ .../{lineUniformSet.H => lineUniform.H} | 21 +++++++++------- .../points/{pointsSet.C => points.C} | 21 +++++++++------- .../points/{pointsSet.H => points.H} | 19 ++++++++------- .../sampledSet/sampledSet/sampledSet.C | 20 +++++++++------- .../{sphereRandomSet.C => sphereRandom.C} | 17 +++++++------ .../{sphereRandomSet.H => sphereRandom.H} | 19 ++++++++------- .../triSurfaceMeshSampledSet.C} | 17 +++++++------ .../triSurfaceMeshSampledSet.H} | 19 ++++++++------- 26 files changed, 289 insertions(+), 212 deletions(-) rename src/sampling/sampledSet/arcUniform/{arcUniformSet.C => arcUniform.C} (92%) rename src/sampling/sampledSet/arcUniform/{arcUniformSet.H => arcUniform.H} (94%) rename src/sampling/sampledSet/boundaryPoints/{boundaryPointsSet.C => boundaryPoints.C} (95%) rename src/sampling/sampledSet/boundaryPoints/{boundaryPointsSet.H => boundaryPoints.H} (92%) rename src/sampling/sampledSet/boundaryRandom/{boundaryRandomSet.C => boundaryRandom.C} (94%) rename src/sampling/sampledSet/boundaryRandom/{boundaryRandomSet.H => boundaryRandom.H} (92%) rename src/sampling/sampledSet/boxUniform/{boxUniformSet.C => boxUniform.C} (91%) rename src/sampling/sampledSet/boxUniform/{boxUniformSet.H => boxUniform.H} (93%) rename src/sampling/sampledSet/circleRandom/{circleRandomSet.C => circleRandom.C} (91%) rename src/sampling/sampledSet/circleRandom/{circleRandomSet.H => circleRandom.H} (92%) rename src/sampling/sampledSet/lineCell/{lineCellSet.C => lineCell.C} (93%) rename src/sampling/sampledSet/lineCell/{lineCellSet.H => lineCell.H} (93%) rename src/sampling/sampledSet/lineCellFace/{lineCellFaceSet.C => lineCellFace.C} (91%) rename src/sampling/sampledSet/lineCellFace/{lineCellFaceSet.H => lineCellFace.H} (91%) rename src/sampling/sampledSet/lineFace/{lineFaceSet.C => lineFace.C} (94%) rename src/sampling/sampledSet/lineFace/{lineFaceSet.H => lineFace.H} (94%) rename src/sampling/sampledSet/lineUniform/{lineUniformSet.C => lineUniform.C} (92%) rename src/sampling/sampledSet/lineUniform/{lineUniformSet.H => lineUniform.H} (92%) rename src/sampling/sampledSet/points/{pointsSet.C => points.C} (92%) rename src/sampling/sampledSet/points/{pointsSet.H => points.H} (95%) rename src/sampling/sampledSet/sphereRandom/{sphereRandomSet.C => sphereRandom.C} (91%) rename src/sampling/sampledSet/sphereRandom/{sphereRandomSet.H => sphereRandom.H} (92%) rename src/sampling/sampledSet/{triSurfaceMesh/triSurfaceMeshSet.C => triSurfaceMeshSampledSet/triSurfaceMeshSampledSet.C} (89%) rename src/sampling/sampledSet/{triSurfaceMesh/triSurfaceMeshSet.H => triSurfaceMeshSampledSet/triSurfaceMeshSampledSet.H} (90%) diff --git a/src/sampling/Make/files b/src/sampling/Make/files index 60c824d7c..31fe506ae 100644 --- a/src/sampling/Make/files +++ b/src/sampling/Make/files @@ -5,18 +5,18 @@ probes/probesGrouping.C sampledSet/sampledSet/sampledSet.C sampledSet/sampledSets/sampledSets.C sampledSet/sampledSets/sampledSetsGrouping.C -sampledSet/arcUniform/arcUniformSet.C -sampledSet/boxUniform/boxUniformSet.C -sampledSet/circleRandom/circleRandomSet.C -sampledSet/lineCell/lineCellSet.C -sampledSet/lineCellFace/lineCellFaceSet.C -sampledSet/lineFace/lineFaceSet.C -sampledSet/lineUniform/lineUniformSet.C -sampledSet/boundaryPoints/boundaryPointsSet.C -sampledSet/boundaryRandom/boundaryRandomSet.C -sampledSet/points/pointsSet.C -sampledSet/sphereRandom/sphereRandomSet.C -sampledSet/triSurfaceMesh/triSurfaceMeshSet.C +sampledSet/arcUniform/arcUniform.C +sampledSet/boxUniform/boxUniform.C +sampledSet/circleRandom/circleRandom.C +sampledSet/lineCell/lineCell.C +sampledSet/lineCellFace/lineCellFace.C +sampledSet/lineFace/lineFace.C +sampledSet/lineUniform/lineUniform.C +sampledSet/boundaryPoints/boundaryPoints.C +sampledSet/boundaryRandom/boundaryRandom.C +sampledSet/points/points.C +sampledSet/sphereRandom/sphereRandom.C +sampledSet/triSurfaceMeshSampledSet/triSurfaceMeshSampledSet.C cuttingPlane/cuttingPlane.C diff --git a/src/sampling/sampledSet/arcUniform/arcUniformSet.C b/src/sampling/sampledSet/arcUniform/arcUniform.C similarity index 92% rename from src/sampling/sampledSet/arcUniform/arcUniformSet.C rename to src/sampling/sampledSet/arcUniform/arcUniform.C index 0957f4f30..0fe6cc193 100644 --- a/src/sampling/sampledSet/arcUniform/arcUniformSet.C +++ b/src/sampling/sampledSet/arcUniform/arcUniform.C @@ -23,7 +23,7 @@ License \*---------------------------------------------------------------------------*/ -#include "arcUniformSet.H" +#include "arcUniform.H" #include "sampledSet.H" #include "meshSearch.H" #include "DynamicList.H" @@ -36,14 +36,17 @@ License namespace Foam { - defineTypeNameAndDebug(arcUniformSet, 0); - addToRunTimeSelectionTable(sampledSet, arcUniformSet, word); +namespace sampledSets +{ + defineTypeNameAndDebug(arcUniform, 0); + addToRunTimeSelectionTable(sampledSet, arcUniform, word); +} } // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // -void Foam::arcUniformSet::calcSamples +void Foam::sampledSets::arcUniform::calcSamples ( DynamicList& samplingPts, DynamicList