From 5f556ffb4a220d587e33ed05b4e117c97981edd0 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Wed, 7 Nov 2018 10:33:36 +0100 Subject: [PATCH] ENH: make sourceInfo sub-dictionary optional for topoSet (#1060) - helps reduce clutter in the topoSetDict files. Caveats when using this. The older specification styles using "name" will conflict with the set name. Eg, { name f0 type faceSet; action add; source patchToFace; sourceInfo { name inlet; } } would flattened to the following { name f0 type faceSet; action add; source patchToFace; name inlet; } which overwrites the "name" used for the faceSet. The solution is to use the updated syntax: { name f0 type faceSet; action add; source patchToFace; patch inlet; } --- .../mesh/manipulation/topoSet/topoSet.C | 24 +-- .../heatTransfer/system/topoSetDict | 20 +- .../cylinderAndBackground/system/topoSetDict | 10 +- .../system/topoSetDict | 29 +-- .../LES/compartmentFire/system/topoSetDict | 102 +++-------- .../system/filmRegion/topoSetDict | 24 +-- .../system/topoSetDict | 15 +- .../system/cRefine.topoSetDict | 5 +- .../system/f.topoSetDict | 21 +-- .../system/fBurner.topoSetDict | 5 +- .../LES/simplePMMApanel/system/topoSetDict | 26 +-- .../LES/smallPoolFire2D/system/topoSetDict | 5 +- .../LES/smallPoolFire3D/system/topoSetDict | 5 +- .../twoSimpleRotors/system/topoSetDict | 47 ++--- .../cylinderAndBackground/system/topoSetDict | 10 +- .../externalCoupledHeater/system/topoSetDict | 70 ++----- .../externalSolarLoad/system/topoSetDict | 47 +---- .../multiRegionHeater/system/topoSetDict | 70 ++----- .../reverseBurner/system/gas/topoSetDict | 5 +- .../system/cabin/topoSetDict | 15 +- .../system/cabin/topoSetDictRegister | 26 +-- .../windshieldCondensation/system/topoSetDict | 15 +- .../windshieldDefrost/system/topoSetDict | 15 +- .../externalCoupledHeater/system/topoSetDict | 70 ++----- .../heatExchanger/system/air/topoSetDict.1 | 47 +---- .../heatExchanger/system/air/topoSetDict.2 | 15 +- .../system/topoSetDict | 70 ++----- .../cylinderAndBackground/system/topoSetDict | 10 +- .../simpleRotor/system/topoSetDict | 20 +- .../twoSimpleRotors/system/topoSetDict | 53 ++---- .../background_overset/system/topoSetDict | 13 +- .../RAS/TJunctionFan/system/topoSetDict | 32 +--- .../RAS/elipsekkLOmega/system/topoSetDict | 5 +- .../oscillatingInletACMI2D/system/topoSetDict | 30 +-- .../system/createInletOutletSets.topoSetDict | 29 +-- .../mixerVesselAMI2D/system/topoSetDict | 5 +- .../laminar/porousBlockage/system/topoSetDict | 10 +- .../simpleFoam/pipeCyclic/system/topoSetDict | 29 +-- .../simpleFoam/simpleCar/system/topoSetDict | 10 +- .../turbineSiting/system/topoSetDict | 20 +- .../simplifiedSiwek/system/topoSetDict | 9 +- .../cylinder/system/topoSetDict | 10 +- .../filter/system/topoSetDict | 69 ++----- .../hotBoxes/system/topoSetDict | 20 +- .../system/wallFilmRegion.topoSet | 10 +- .../splashPanel/system/wallFilmRegion.topoSet | 10 +- .../createWallFilmRegionPatches.topoSet | 20 +- .../mesh/foamyHexMesh/blob/system/topoSetDict | 59 ++---- .../flange/system/topoSetDict-background | 16 +- .../flange/system/topoSetDict-slices | 57 ++---- .../simpleShapes/system/topoSetDict | 57 ++---- .../mesh/parallel/filter/system/topoSetDict | 68 ++----- .../refineFieldDirs/system/topoSetDict.range1 | 11 +- .../refineFieldDirs/system/topoSetDict.range2 | 11 +- .../refineFieldDirs/system/topoSetDict.range3 | 11 +- .../refineFieldDirs/system/topoSetDict.tier1 | 11 +- .../refineFieldDirs/system/topoSetDict.tier2 | 11 +- .../refineFieldDirs/system/topoSetDict.tier3 | 11 +- .../refineFieldDirs/system/topoSetDict.tier4 | 11 +- .../refineFieldDirs/system/topoSetDict.tier5 | 11 +- .../refineFieldDirs/system/topoSetDict.tier6 | 11 +- .../addLayersToFaceZone/system/topoSetDict | 34 +--- .../simple-cube1/system/topoSetDict | 41 +---- .../simple-cube1/system/topoSetDict.patches | 25 +-- .../twoPhasePachuka/system/topoSetDict | 10 +- .../LES/throttle/system/topoSetDict.1 | 5 +- .../LES/throttle/system/topoSetDict.2 | 5 +- .../LES/throttle/system/topoSetDict.3 | 5 +- .../LES/throttle3D/system/topoSetDict.1 | 5 +- .../LES/throttle3D/system/topoSetDict.2 | 5 +- .../LES/throttle3D/system/topoSetDict.3 | 5 +- .../RAS/throttle/system/topoSetDict.1 | 5 +- .../RAS/throttle/system/topoSetDict.2 | 5 +- .../RAS/throttle/system/topoSetDict.3 | 5 +- .../laminar/sphereDrop/system/topoSetDict | 173 ++++++------------ .../RAS/mixerVessel2D/system/topoSetDict | 5 +- .../LES/nozzleFlow2D/system/topoSetDict.1 | 5 +- .../LES/nozzleFlow2D/system/topoSetDict.2 | 5 +- .../RAS/DTCHull/system/topoSetDict.1 | 5 +- .../RAS/DTCHull/system/topoSetDict.2 | 5 +- .../RAS/DTCHull/system/topoSetDict.3 | 5 +- .../RAS/DTCHull/system/topoSetDict.4 | 5 +- .../RAS/DTCHull/system/topoSetDict.5 | 5 +- .../RAS/DTCHull/system/topoSetDict.6 | 5 +- .../RAS/DTCHullMoving/system/topoSetDict.1 | 5 +- .../RAS/DTCHullMoving/system/topoSetDict.2 | 5 +- .../RAS/DTCHullMoving/system/topoSetDict.3 | 5 +- .../RAS/DTCHullMoving/system/topoSetDict.4 | 5 +- .../RAS/DTCHullMoving/system/topoSetDict.5 | 5 +- .../RAS/DTCHullMoving/system/topoSetDict.6 | 6 +- .../damBreakPorousBaffle/system/topoSetDict | 18 +- .../RAS/floatingObject/system/topoSetDict | 5 +- .../damBreakWithObstacle/system/topoSetDict | 5 +- .../laminar/mixerVessel2D/system/topoSetDict | 5 +- .../system/topoSetDict.createBlockage | 14 +- .../system/topoSetDict.createCollector | 10 +- .../system/topoSetDict.createPatch | 21 +-- .../system/topoSetDict | 10 +- .../damBreakWithObstacle/system/topoSetDict | 5 +- .../system/topoSetDict | 15 +- .../system/topoSetDict2 | 11 +- .../standingWave/system/topoSetDict1 | 5 +- .../standingWave/system/topoSetDict2 | 5 +- .../system/createInletOutletSets.topoSetDict | 29 +-- .../mixerVessel2D/system/topoSetDict | 5 +- .../mixerVesselAMI2D/system/topoSetDict | 5 +- .../laminar/mixerVessel2D/system/topoSetDict | 5 +- .../boatAndPropeller/system/topoSetDictHull | 57 ++---- .../system/topoSetDictPropeller | 54 ++---- .../boatAndPropeller/system/topoSetDictRefine | 11 +- .../boatAndPropeller/system/topoSetDictRudder | 54 ++---- .../background/system/topoSetDict | 10 +- .../floatingBody/system/topoSetDict | 5 +- .../twoSimpleRotors/system/topoSetDict | 45 ++--- .../oscillatingBox/system/topoSetDict | 20 +- .../system/topoSetDict-selectBottom | 12 +- .../oscillatingBox/system/topoSetDict | 20 +- .../laminar/mixerVessel2D/system/topoSetDict | 5 +- .../laminar/mixerVessel2D/system/topoSetDict | 5 +- .../laminar/mixerVessel2D/system/topoSetDict | 5 +- 120 files changed, 612 insertions(+), 1851 deletions(-) diff --git a/applications/utilities/mesh/manipulation/topoSet/topoSet.C b/applications/utilities/mesh/manipulation/topoSet/topoSet.C index a9cd056c58..abc0cccfda 100644 --- a/applications/utilities/mesh/manipulation/topoSet/topoSet.C +++ b/applications/utilities/mesh/manipulation/topoSet/topoSet.C @@ -251,8 +251,8 @@ int main(int argc, char *argv[]) || action == topoSetSource::CLEAR ) { - currentSet = topoSet::New(setType, mesh, setName, 10000); - Info<< "Created " << currentSet().type() << " " + currentSet = topoSet::New(setType, mesh, setName, 16384); + Info<< "Created " << currentSet().type() << ' ' << setName << endl; } else if (action == topoSetSource::REMOVE) @@ -268,7 +268,7 @@ int main(int argc, char *argv[]) setName, IOobject::MUST_READ ); - Info<< "Read set " << currentSet().type() << " " + Info<< "Read set " << currentSet().type() << ' ' << setName << " with size " << returnReduce(currentSet().size(), sumOp