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(),
Various (local, not parallel) searches on polyMesh; uses (demand driven) octree to search...
#define forAll(list, i)
Loop across all elements in list.
FvWallInfoData< WallInfo, label > 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?
Base class of (analytical or triangulated) surface. Encapsulates all the search routines. WIP.
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.
A surface geometry formed of discrete facets, e.g. triangles and/or quadrilaterals, defined in a file using formats such as Wavefront OBJ, or stereolithography STL.
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.
Specified point samples. Optionally ordered into a continuous path. Ordering is an optimisation; it e...
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.
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.