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")),
Various (local, not parallel) searches on polyMesh; uses (demand driven) octree to search...
#define forAll(list, i)
Loop across all elements in list.
A list of keyword definitions, which are a keyword followed by any number of values (e...
labelList identity(const label len)
Create identity map (map[i] == i) of given length.
Macros for easy insertion into run-time selection tables.
vectorField pointField
pointField is a vectorField.
Holds list of sampling points which is filled at construction time. Various implementations of this b...
A class for handling words, derived from string.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
List< scalar > scalarList
A List of scalars.
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.
addToRunTimeSelectionTable(sampledSet, arcUniform, word)
dimensioned< scalar > mag(const dimensioned< Type > &)
Mesh consisting of general polyhedral cells.
defineTypeNameAndDebug(arcUniform, 0)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.