49 void Foam::sampledSets::boxUniform::calcSamples
51 DynamicList<point>& samplingPositions,
52 DynamicList<label>& samplingSegments,
53 DynamicList<label>& samplingCells,
54 DynamicList<label>& samplingFaces
57 for (
label k = 0;
k < nPoints_.z(); ++
k)
59 for (
label j = 0; j < nPoints_.y(); ++ j)
61 for (
label i = 0; i < nPoints_.x(); ++ i)
74 samplingPositions.append(pt);
75 samplingSegments.append
77 i + j*nPoints_.x() +
k*nPoints_.x()*nPoints_.y()
79 samplingCells.append(celli);
80 samplingFaces.append(-1);
88 void Foam::sampledSets::boxUniform::genSamples()
90 DynamicList<point> samplingPositions;
91 DynamicList<label> samplingSegments;
92 DynamicList<label> samplingCells;
93 DynamicList<label> samplingFaces;
103 samplingPositions.shrink();
104 samplingSegments.shrink();
105 samplingCells.shrink();
106 samplingFaces.shrink();
130 nPoints_(dict.
lookup(
"nPoints"))
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...
Vector< scalar > vector
A scalar version of the templated Vector.
label k
Boltzmann constant.
Macros for easy insertion into run-time selection tables.
dimensioned< Type > cmptDivide(const dimensioned< Type > &, const dimensioned< Type > &)
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.
dimensioned< Type > cmptMultiply(const dimensioned< Type > &, const dimensioned< Type > &)
addToRunTimeSelectionTable(sampledSet, arcUniform, word)
vector point
Point is a vector.
static const Vector< scalar > one
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.