diff --git a/applications/utilities/mesh/manipulation/createBaffles/createBafflesDict b/applications/utilities/mesh/manipulation/createBaffles/createBafflesDict index 99c03b4cfc7429af81364a42f2613eec1ee21bb9..b392f0764278002f565c875be900379d73f6e039 100644 --- a/applications/utilities/mesh/manipulation/createBaffles/createBafflesDict +++ b/applications/utilities/mesh/manipulation/createBaffles/createBafflesDict @@ -138,6 +138,8 @@ baffles //- Select faces and orientation through a searchableSurface type searchableSurface; surface searchablePlate; + //name sphere.stl; // name if surface=triSurfaceMesh + origin (0.099 -0.006 0.004); span (0 0.012 0.012); diff --git a/applications/utilities/mesh/manipulation/createBaffles/faceSelection/searchableSurfaceSelection.C b/applications/utilities/mesh/manipulation/createBaffles/faceSelection/searchableSurfaceSelection.C index 04dbe07929ed96a0474109c32fdd149baf0a88ee..e7439d52f68ed987b84f1bddbb799ca3706eb58c 100644 --- a/applications/utilities/mesh/manipulation/createBaffles/faceSelection/searchableSurfaceSelection.C +++ b/applications/utilities/mesh/manipulation/createBaffles/faceSelection/searchableSurfaceSelection.C @@ -28,6 +28,7 @@ License #include "syncTools.H" #include "searchableSurface.H" #include "fvMesh.H" +#include "Time.H" // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // @@ -61,7 +62,15 @@ Foam::faceSelections::searchableSurfaceSelection::searchableSurfaceSelection searchableSurface::New ( word(dict.lookup("surface")), - mesh.objectRegistry::db(), + IOobject + ( + dict.lookupOrDefault("name", mesh.objectRegistry::db().name()), + mesh.time().constant(), + "triSurface", + mesh.objectRegistry::db(), + IOobject::MUST_READ, + IOobject::NO_WRITE + ), dict ) ) diff --git a/applications/utilities/mesh/manipulation/topoSet/topoSetDict b/applications/utilities/mesh/manipulation/topoSet/topoSetDict index 57514a205352c76e8b6f0e167a8a8739c436c808..11dccf942b0f35486f18d55f8fca470b437c465f 100644 --- a/applications/utilities/mesh/manipulation/topoSet/topoSetDict +++ b/applications/utilities/mesh/manipulation/topoSet/topoSetDict @@ -378,6 +378,7 @@ FoamFile // surface searchableSphere; // centre (0.05 0.05 0.005); // radius 0.025; +// //name sphere.stl; // Optional name if surface triSurfaceMesh // } // } // diff --git a/src/meshTools/sets/faceZoneSources/searchableSurfaceToFaceZone/searchableSurfaceToFaceZone.C b/src/meshTools/sets/faceZoneSources/searchableSurfaceToFaceZone/searchableSurfaceToFaceZone.C index 039e14555f8515fa01346f9cc2a643d563606bab..d19f41fd776870a48dbca539ff8899969dc5d0d0 100644 --- a/src/meshTools/sets/faceZoneSources/searchableSurfaceToFaceZone/searchableSurfaceToFaceZone.C +++ b/src/meshTools/sets/faceZoneSources/searchableSurfaceToFaceZone/searchableSurfaceToFaceZone.C @@ -69,7 +69,15 @@ Foam::searchableSurfaceToFaceZone::searchableSurfaceToFaceZone searchableSurface::New ( word(dict.lookup("surface")), - mesh.objectRegistry::db(), + IOobject + ( + dict.lookupOrDefault("name", mesh.objectRegistry::db().name()), + mesh.time().constant(), + "triSurface", + mesh.objectRegistry::db(), + IOobject::MUST_READ, + IOobject::NO_WRITE + ) dict ) )