mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
Reference in New Issue
Block a user