50 void Foam::sampledSets::sphereRandom::calcSamples
52 DynamicList<point>& samplingPositions,
53 DynamicList<label>& samplingSegments,
54 DynamicList<label>& samplingCells,
55 DynamicList<label>& samplingFaces
60 for (
label i = 0; i < nPoints_; ++ i)
71 const point pt = centre_ + dpt;
76 samplingPositions.append(pt);
77 samplingSegments.append(i);
78 samplingCells.append(celli);
79 samplingFaces.append(-1);
85 void Foam::sampledSets::sphereRandom::genSamples()
87 DynamicList<point> samplingPositions;
88 DynamicList<label> samplingSegments;
89 DynamicList<label> samplingCells;
90 DynamicList<label> samplingFaces;
100 samplingPositions.shrink();
101 samplingSegments.shrink();
102 samplingCells.shrink();
103 samplingFaces.shrink();
126 centre_(dict.
lookup(
"centre")),
127 radius_(dict.
lookup<scalar>(
"radius")),
Various (local, not parallel) searches on polyMesh; uses (demand driven) octree to search...
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...
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Vector< scalar > vector
A scalar version of the templated Vector.
Macros for easy insertion into run-time selection tables.
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)
dimensioned< scalar > magSqr(const dimensioned< Type > &)
vector point
Point is a vector.
static Vector< scalar > uniform(const scalar &s)
Return a VectorSpace with all elements = s.
Mesh consisting of general polyhedral cells.
defineTypeNameAndDebug(arcUniform, 0)
sphereRandom(const word &name, const polyMesh &mesh, const meshSearch &searchEngine, const dictionary &dict)
Construct from dictionary.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.