56 (samplingCells.
size() != samplingPositions.
size())
57 || (samplingFaces.
size() != samplingPositions.
size())
58 || (samplingSegments.
size() != samplingPositions.
size())
62 <<
"sizes not equal : " 63 <<
" positions:" << samplingPositions.
size()
64 <<
" segments:" << samplingSegments.
size()
65 <<
" cells:" << samplingCells.
size()
66 <<
" faces:" << samplingFaces.
size()
70 (*this).coordSet::operator=
77 axisTypeNames_[axisType::DISTANCE],
83 cells_ = samplingCells;
84 faces_ = samplingFaces;
99 (samplingDistances.
size() != samplingPositions.
size())
100 || (samplingCells.
size() != samplingPositions.
size())
101 || (samplingFaces.
size() != samplingPositions.
size())
102 || (samplingSegments.
size() != samplingPositions.
size())
106 <<
"sizes not equal : " 107 <<
" positions:" << samplingPositions.
size()
108 <<
" distances:" << samplingDistances.
size()
109 <<
" segments:" << samplingSegments.
size()
110 <<
" cells:" << samplingCells.
size()
111 <<
" faces:" << samplingFaces.
size()
115 (*this).coordSet::operator=
122 axisTypeNames_[axisType::DISTANCE],
124 axisTypeNames_[axis_]
128 cells_ = samplingCells;
129 faces_ = samplingFaces;
146 searchEngine_(searchEngine),
150 axis_ = axisTypeNames_[axis];
165 searchEngine_(searchEngine),
175 axisTypeNames_[axisType::DEFAULT]
205 sampledSets::lineCellFace::typeName
211 if (oldToNewType.found(sampleType))
213 const word newSampleType = oldToNewType[sampleType];
216 <<
"Unknown sample set type " 217 << sampleType <<
nl <<
nl 218 <<
"The sample set type " << sampleType <<
" has been renamed " 219 << newSampleType <<
nl <<
nl 220 <<
"Replace \"type " << sampleType <<
";\" with \"type " 221 << newSampleType <<
";\" for the set " << name <<
" in " 225 wordConstructorTable::iterator cstrIter =
226 wordConstructorTablePtr_->find(sampleType);
228 if (cstrIter == wordConstructorTablePtr_->end())
231 <<
"Unknown sample set type " 232 << sampleType <<
nl <<
nl 233 <<
"Valid sample set types : " <<
endl 234 << wordConstructorTablePtr_->sortedToc()
Various (local, not parallel) searches on polyMesh; uses (demand driven) octree to search...
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.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void setSamples(const List< point > &samplingPositions, const labelList &samplingSegments, const labelList &samplingCells, const labelList &samplingFaces)
Sets sample data.
void size(const label)
Override size to be inconsistent with allocated storage.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual ~sampledSet()
Destructor.
vectorField pointField
pointField is a vectorField.
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.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
static const word null
An empty word.
An STL-conforming hash table.
errorManip< error > abort(error &err)
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.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
static const Field< scalar > & null()
Return a null field.
Mesh consisting of general polyhedral cells.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.