49 void Foam::sampledSets::boxUniform::calcSamples
51 DynamicList<point>& samplingPts,
52 DynamicList<label>& samplingCells,
53 DynamicList<label>& samplingFaces,
54 DynamicList<label>& samplingSegments,
55 DynamicList<scalar>& samplingCurveDist
58 for (
label k = 0;
k < nPoints_.z(); ++
k)
60 for (
label j = 0; j < nPoints_.y(); ++ j)
62 for (
label i = 0; i < nPoints_.x(); ++ i)
75 samplingPts.append(pt);
76 samplingCells.append(celli);
77 samplingFaces.append(-1);
78 samplingSegments.append(0);
79 samplingCurveDist.append(scalar(i));
87 void Foam::sampledSets::boxUniform::genSamples()
90 DynamicList<point> samplingPts;
91 DynamicList<label> samplingCells;
92 DynamicList<label> samplingFaces;
93 DynamicList<label> samplingSegments;
94 DynamicList<scalar> samplingCurveDist;
105 samplingPts.shrink();
106 samplingCells.shrink();
107 samplingFaces.shrink();
108 samplingSegments.shrink();
109 samplingCurveDist.shrink();
134 nPoints_(dict.
lookup(
"nPoints"))
Various (local, not parallel) searches on polyMesh; uses (demand driven) octree to search...
intWM_LABEL_SIZE_t 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.
virtual bool write()
Sample and write.
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.