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=
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),
165 searchEngine_(searchEngine),
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()
static const Field< scalar > & null()
Return a null field.
An STL-conforming hash table.
bool found(const Key &) const
Return true if hashedEntry is found in table.
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.
A 2-tuple for storing two objects of different types.
Holds list of sampling positions.
static const NamedEnum< axisType, 6 > axisTypeNames_
String representation of axis enums.
word axis() const
Return the axis name.
coordSet()
Construct null.
const fileName & name() const
Return the dictionary name.
A list of keyword definitions, which are a keyword followed by any number of values (e....
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
const dictionary & optionalSubDict(const word &) const
Find and return a sub-dictionary if found.
Various (local, not parallel) searches on polyMesh; uses (demand driven) octree to search.
Mesh consisting of general polyhedral cells.
Holds list of sampling points which is filled at construction time. Various implementations of this b...
labelList faces_
Face numbers (-1 if not known)
sampledSet(const word &name, const polyMesh &mesh, const meshSearch &searchEngine, const word &axis)
Construct from components.
labelList cells_
Cell numbers.
virtual ~sampledSet()
Destructor.
void setSamples(const List< point > &samplingPositions, const labelList &samplingSegments, const labelList &samplingCells, const labelList &samplingFaces)
Sets sample data.
static autoPtr< sampledSet > New(const word &name, const polyMesh &mesh, const meshSearch &searchEngine, const dictionary &dict)
Return a reference to the selected sampledSet.
A class for handling words, derived from string.
static const word null
An empty word.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
errorManip< error > abort(error &err)
vectorField pointField
pointField is a vectorField.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
defineTypeNameAndDebug(combustionModel, 0)