Commit bbb20771 authored by mattijs's avatar mattijs
Browse files

ENH: searhcableSurfacetoFaceZone: allow triSurfaceMesh specification

parent da535a44
...@@ -138,6 +138,8 @@ baffles ...@@ -138,6 +138,8 @@ baffles
//- Select faces and orientation through a searchableSurface //- Select faces and orientation through a searchableSurface
type searchableSurface; type searchableSurface;
surface searchablePlate; surface searchablePlate;
//name sphere.stl; // name if surface=triSurfaceMesh
origin (0.099 -0.006 0.004); origin (0.099 -0.006 0.004);
span (0 0.012 0.012); span (0 0.012 0.012);
......
...@@ -28,6 +28,7 @@ License ...@@ -28,6 +28,7 @@ License
#include "syncTools.H" #include "syncTools.H"
#include "searchableSurface.H" #include "searchableSurface.H"
#include "fvMesh.H" #include "fvMesh.H"
#include "Time.H"
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
...@@ -61,7 +62,15 @@ Foam::faceSelections::searchableSurfaceSelection::searchableSurfaceSelection ...@@ -61,7 +62,15 @@ Foam::faceSelections::searchableSurfaceSelection::searchableSurfaceSelection
searchableSurface::New searchableSurface::New
( (
word(dict.lookup("surface")), 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 dict
) )
) )
......
...@@ -378,6 +378,7 @@ FoamFile ...@@ -378,6 +378,7 @@ FoamFile
// surface searchableSphere; // surface searchableSphere;
// centre (0.05 0.05 0.005); // centre (0.05 0.05 0.005);
// radius 0.025; // radius 0.025;
// //name sphere.stl; // Optional name if surface triSurfaceMesh
// } // }
// } // }
// //
......
...@@ -69,7 +69,15 @@ Foam::searchableSurfaceToFaceZone::searchableSurfaceToFaceZone ...@@ -69,7 +69,15 @@ Foam::searchableSurfaceToFaceZone::searchableSurfaceToFaceZone
searchableSurface::New searchableSurface::New
( (
word(dict.lookup("surface")), 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 dict
) )
) )
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment