56 cells_.setSize(samplingCells.
size());
57 faces_.setSize(samplingFaces.
size());
58 segments_.setSize(samplingSegments.
size());
59 curveDist_.setSize(samplingCurveDist.
size());
63 (cells_.size() != size())
64 || (faces_.size() != size())
65 || (segments_.size() != size())
66 || (curveDist_.size() != size())
70 <<
"sizes not equal : " 71 <<
" points:" << size()
72 <<
" cells:" << cells_.size()
73 <<
" faces:" << faces_.size()
74 <<
" segments:" << segments_.size()
75 <<
" curveDist:" << curveDist_.size()
79 forAll(samplingPts, sampleI)
81 operator[](sampleI) = samplingPts[sampleI];
83 curveDist_ = samplingCurveDist;
85 cells_ = samplingCells;
86 faces_ = samplingFaces;
87 segments_ = samplingSegments;
103 searchEngine_(searchEngine),
120 searchEngine_(searchEngine),
157 if (oldToNewType.found(sampleType))
159 const word newSampleType = oldToNewType[sampleType];
162 <<
"Unknown sample set type " 163 << sampleType <<
nl <<
nl 164 <<
"The sample set type " << sampleType <<
" has been renamed " 165 << newSampleType <<
nl <<
nl 166 <<
"Replace \"type " << sampleType <<
";\" with \"type " 167 << newSampleType <<
";\" for the set " << name <<
" in " 171 wordConstructorTable::iterator cstrIter =
172 wordConstructorTablePtr_->find(sampleType);
174 if (cstrIter == wordConstructorTablePtr_->end())
177 <<
"Unknown sample set type " 178 << sampleType <<
nl <<
nl 179 <<
"Valid sample set types : " <<
endl 180 << wordConstructorTablePtr_->sortedToc()
201 os <<
endl <<
"\t(celli)\t(facei)" <<
endl;
205 os <<
'\t' << cells_[sampleI]
206 <<
'\t' << faces_[sampleI]
Various (local, not parallel) searches on polyMesh; uses (demand driven) octree to search...
#define forAll(list, i)
Loop across all elements in list.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
static autoPtr< sampledSet > New(const word &name, const polyMesh &mesh, const meshSearch &searchEngine, const dictionary &dict)
Return a reference to the selected sampledSet.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A 2-tuple for storing two objects of different types.
static const char *const typeName
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void size(const label)
Override size to be inconsistent with allocated storage.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual ~sampledSet()
Destructor.
void setSamples(const List< point > &samplingPts, const labelList &samplingCells, const labelList &samplingFaces, const labelList &samplingSegments, const scalarList &samplingCurveDist)
Sets sample data.
points setSize(newPointi)
Ostream & write(Ostream &) const
Output for debugging.
Holds list of sampling positions.
const fileName & name() const
Return the dictionary name.
const dictionary & optionalSubDict(const word &) const
Find and return a sub-dictionary if found.
A class for handling words, derived from string.
Ostream & write(Ostream &os) const
An STL-conforming hash table.
errorManip< error > abort(error &err)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
defineTypeNameAndDebug(combustionModel, 0)
word name(const complex &)
Return a string representation of a complex.
sampledSet(const word &name, const polyMesh &mesh, const meshSearch &searchEngine, const word &axis)
Construct from components.
Mesh consisting of general polyhedral cells.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.