48 void Foam::sampledSets::triSurfaceMeshSampledSet::calcSamples
50 DynamicList<point>& samplingPts,
51 DynamicList<label>& samplingCells,
52 DynamicList<label>& samplingFaces,
53 DynamicList<label>& samplingSegments,
54 DynamicList<scalar>& samplingCurveDist
59 const point& pt = points_[i];
64 samplingPts.append(pt);
65 samplingCells.append(celli);
66 samplingFaces.append(-1);
67 samplingSegments.append(0);
68 samplingCurveDist.append(scalar(i));
74 void Foam::sampledSets::triSurfaceMeshSampledSet::genSamples()
77 DynamicList<point> samplingPts;
78 DynamicList<label> samplingCells;
79 DynamicList<label> samplingFaces;
80 DynamicList<label> samplingSegments;
81 DynamicList<scalar> samplingCurveDist;
93 samplingCells.shrink();
94 samplingFaces.shrink();
95 samplingSegments.shrink();
96 samplingCurveDist.shrink();
120 surface_(dict.
lookup(
"surface")),
130 mesh.time().constant(),
Various (local, not parallel) searches on polyMesh; uses (demand driven) octree to search...
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A list of keyword definitions, which are a keyword followed by any number of values (e...
bool foundObject(const word &name) const
Is the named Type found?
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
virtual ~triSurfaceMeshSampledSet()
Destructor.
Macros for easy insertion into run-time selection tables.
IOoject and searching on triSurface.
Holds list of sampling points which is filled at construction time. Various implementations of this b...
label findCell(const point &location, const label seedCelli=-1, const bool useTreeSearch=true) const
Find cell containing location.
A class for handling words, derived from string.
addToRunTimeSelectionTable(sampledSet, arcUniform, word)
const Time & time() const
Return time.
vector point
Point is a vector.
triSurfaceMeshSampledSet(const word &name, const polyMesh &mesh, const meshSearch &searchEngine, const dictionary &dict)
Construct from dictionary.
virtual bool write()
Sample and write.
Mesh consisting of general polyhedral cells.
defineTypeNameAndDebug(arcUniform, 0)
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.