ENH: optional innerRadius for searchable disk

- can be used directly, or in special cases like a searchable plane
  with a gap of things in the centre that are not to be sampled.
This commit is contained in:
Mark Olesen
2020-12-08 13:55:47 +01:00
parent 56b5234fbc
commit 8ad61f8e9d
4 changed files with 111 additions and 25 deletions

View File

@ -45,6 +45,25 @@ sampled
${_sampleMesh}
surface plane-0.55.stl;
}
outerplane-0.45
{
type distanceSurface;
// defaults:
distance 0;
signed true;
isoMethod topo;
surfaceType disk;
origin (0.45 0 0);
normal (1 0 0);
radius 0.09;
innerRadius 0.05;
topology largestRegion;
store true;
}
}
}

View File

@ -0,0 +1,66 @@
// -*- C++ -*-
// ************************************************************************* //
samplingDebug
{
type surfaces;
libs (sampling);
log true;
writeControl timeStep;
writeInterval 1;
fields (tracer0 U);
sampleScheme cellPoint;
interpolationScheme cellPoint;
surfaceFormat vtk;
formatOptions
{
ensight
{
collateTimes true;
// collateTimes false;
}
}
_sampleMesh
{
type meshedSurface;
source cells;
}
_diskOuter
{
surfaceType disk;
origin (0 0 0);
normal (1 0 0);
radius 0.09;
}
_distanceSurface
{
type distanceSurface;
distance 0;
signed true;
isoMethod topo;
}
surfaces
{
diskOuter
{
${_distanceSurface}
${_diskOuter}
origin (0.45 0 0);
innerRadius 0.05;
topology largestRegion;
}
}
}
// ************************************************************************* //