48 void Foam::sampledSets::lineUniform::calcSamples
50 DynamicList<point>& samplingPositions,
51 DynamicList<scalar>& samplingDistances,
52 DynamicList<label>& samplingSegments,
53 DynamicList<label>& samplingCells,
54 DynamicList<label>& samplingFaces
75 forAll(samplingPositions, i)
77 samplingDistances[i] =
mag(samplingPositions[i] - start_);
82 void Foam::sampledSets::lineUniform::genSamples()
84 DynamicList<point> samplingPositions;
85 DynamicList<scalar> samplingDistances;
86 DynamicList<label> samplingSegments;
87 DynamicList<label> samplingCells;
88 DynamicList<label> samplingFaces;
99 samplingPositions.shrink();
100 samplingDistances.shrink();
101 samplingSegments.shrink();
102 samplingCells.shrink();
103 samplingFaces.shrink();
127 start_(
dict.lookup(
"start")),
128 end_(
dict.lookup(
"end")),
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
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.
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.
const polyMesh & mesh() const
Access the mesh.
static void calcSamples(const polyMesh &mesh, const meshSearch &searchEngine, const pointField &points, DynamicList< point > &samplingPositons, DynamicList< scalar > &samplingDistances, DynamicList< label > &samplingSegments, DynamicList< label > &samplingCells, DynamicList< label > &samplingFaces)
Calculate all the sampling points.
Set of sets to sample. Call sampledSets.write() to sample&write files.
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.
vectorField pointField
pointField is a vectorField.
List< scalar > scalarList
A List of scalars.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
dimensioned< scalar > mag(const dimensioned< Type > &)
labelList identityMap(const label len)
Create identity map (map[i] == i) of given length.