48 void Foam::sampledSets::triSurfaceMeshSampledSet::calcSamples
50 DynamicList<point>& samplingPositions,
51 DynamicList<label>& samplingSegments,
52 DynamicList<label>& samplingCells,
53 DynamicList<label>& samplingFaces
58 const point& pt = points_[i];
63 samplingPositions.append(pt);
64 samplingSegments.append(i);
65 samplingCells.append(celli);
66 samplingFaces.append(-1);
72 void Foam::sampledSets::triSurfaceMeshSampledSet::genSamples()
74 DynamicList<point> samplingPositions;
75 DynamicList<label> samplingSegments;
76 DynamicList<label> samplingCells;
77 DynamicList<label> samplingFaces;
87 samplingPositions.shrink();
88 samplingSegments.shrink();
89 samplingCells.shrink();
90 samplingFaces.shrink();
113 surface_(
dict.lookup(
"surface")),
123 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 keyword definitions, which are a keyword followed by any number of values (e....
Various (local, not parallel) searches on polyMesh; uses (demand driven) octree to search.
label findCell(const point &location, const label seedCelli=-1, const bool useTreeSearch=true) const
Find cell containing location.
Mesh consisting of general polyhedral cells.
Holds list of sampling points which is filled at construction time. Various implementations of this b...
const meshSearch & searchEngine() const
Access the search engine.
Specified point samples. Optionally ordered into a continuous path. Ordering is an optimisation; it e...
Samples from all the points of a triSurfaceMesh. Surface files are read from constant/triSurface.
triSurfaceMeshSampledSet(const word &name, const polyMesh &mesh, const meshSearch &searchEngine, const dictionary &dict)
Construct from dictionary.
virtual ~triSurfaceMeshSampledSet()
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 surface geometry formed of discrete facets, e.g. triangles and/or quadrilaterals,...
A class for handling words, derived from string.
defineTypeNameAndDebug(arcUniform, 0)
addToRunTimeSelectionTable(sampledSet, arcUniform, word)
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 bool)
Return a word representation of a bool.
vector point
Point is a vector.