62 void Foam::sampledSets::triSurface::calcSamples
64 DynamicList<point>& samplingPositions,
65 DynamicList<label>& samplingSegments,
66 DynamicList<label>& samplingCells,
67 DynamicList<label>& samplingFaces
72 const point& pt = points_[i];
77 samplingPositions.append(pt);
78 samplingSegments.append(i);
79 samplingCells.append(celli);
80 samplingFaces.append(-1);
86 void Foam::sampledSets::triSurface::genSamples()
88 DynamicList<point> samplingPositions;
89 DynamicList<label> samplingSegments;
90 DynamicList<label> samplingCells;
91 DynamicList<label> samplingFaces;
101 samplingPositions.shrink();
102 samplingSegments.shrink();
103 samplingCells.shrink();
104 samplingFaces.shrink();
127 surface_(
dict.lookup(
"surface")),
143 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.
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 triSurface. Surface files are read from constant/triSurface.
virtual ~triSurface()
Destructor.
triSurface(const word &name, const polyMesh &mesh, const meshSearch &searchEngine, const dictionary &dict)
Construct from dictionary.
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.