61 bool Foam::sampledSets::triSurface::calcSamples
63 DynamicList<point>& samplingPositions,
65 DynamicList<label>& samplingSegments,
66 DynamicList<label>& samplingCells,
67 DynamicList<label>& samplingFaces
74 const point& pt = points_[i];
75 const label celli = searchEngine.findCell(pt);
79 samplingPositions.append(pt);
80 samplingSegments.append(i);
81 samplingCells.append(celli);
82 samplingFaces.append(-1);
101 surface_(
dict.lookup(
"surface")),
117 mesh.time().constant(),
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
static const meshSearch & New(const polyMesh &mesh, const pointInCellShapes=pointInCellShapes::tets)
Lookup or construct from mesh and cell decomposition option.
Mesh consisting of general polyhedral cells.
Holds list of sampling points which is filled at construction time. Various implementations of this b...
const polyMesh & mesh() const
Access the mesh.
Specified point samples. Optionally ordered into a continuous path. Ordering is an optimisation; it e...
Samples from all the points of a triSurface. Surface files are read from constant/triSurface.
triSurface(const word &name, const polyMesh &mesh, const dictionary &dict)
Construct from dictionary.
virtual ~triSurface()
Destructor.
Set of sets to sample. Call sampledSets.write() to sample&write files.
Base class of (analytical or triangulated) surface. Encapsulates all the search routines....
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
defineTypeNameAndDebug(arcUniform, 0)
addToRunTimeSelectionTable(sampledSet, arcUniform, word)
addBackwardCompatibleToRunTimeSelectionTable(sampledSet, triSurface, word, triSurfaceMesh, "triSurfaceMesh")
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.