45 if (iter().keyword() !=
"type")
50 && iter().stream().
size()
85 ) <<
"\n token following 'nonuniform' "
110 if (fPtr->
size() != this->size())
115 ) <<
"\n size of field " << iter().keyword()
116 <<
" (" << fPtr->
size() <<
')'
117 <<
" is not the same size as the patch ("
118 << this->
size() <<
')'
119 <<
"\n on patch " << this->
patch().
name()
127 scalarFields_.insert(iter().keyword(), fPtr);
144 if (fPtr->
size() != this->size())
149 ) <<
"\n size of field " << iter().keyword()
150 <<
" (" << fPtr->
size() <<
')'
151 <<
" is not the same size as the patch ("
152 << this->
size() <<
')'
153 <<
"\n on patch " << this->
patch().
name()
161 vectorFields_.insert(iter().keyword(), fPtr);
181 if (fPtr->
size() != this->size())
186 ) <<
"\n size of field " << iter().keyword()
187 <<
" (" << fPtr->
size() <<
')'
188 <<
" is not the same size as the patch ("
189 << this->
size() <<
')'
190 <<
"\n on patch " << this->
patch().
name()
198 sphericalTensorFields_.insert(iter().keyword(), fPtr);
218 if (fPtr->
size() != this->size())
223 ) <<
"\n size of field " << iter().keyword()
224 <<
" (" << fPtr->
size() <<
')'
225 <<
" is not the same size as the patch ("
226 << this->
size() <<
')'
227 <<
"\n on patch " << this->
patch().
name()
235 symmTensorFields_.insert(iter().keyword(), fPtr);
252 if (fPtr->
size() != this->size())
257 ) <<
"\n size of field " << iter().keyword()
258 <<
" (" << fPtr->
size() <<
')'
259 <<
" is not the same size as the patch ("
260 << this->
size() <<
')'
261 <<
"\n on patch " << this->
patch().
name()
269 tensorFields_.insert(iter().keyword(), fPtr);
278 <<
"\n on patch " << this->
patch().
name()
315 mapper(*iter()).ptr()
329 mapper(*iter()).ptr()
336 ptf.sphericalTensorFields_,
340 sphericalTensorFields_.insert
343 mapper(*iter()).ptr()
350 ptf.symmTensorFields_,
354 symmTensorFields_.insert
357 mapper(*iter()).ptr()
371 mapper(*iter()).ptr()
387 scalarFields_(ptf.scalarFields_),
388 vectorFields_(ptf.vectorFields_),
389 sphericalTensorFields_(ptf.sphericalTensorFields_),
390 symmTensorFields_(ptf.symmTensorFields_),
391 tensorFields_(ptf.tensorFields_)
405 refCast<const genericPointPatchField<Type>>(ptf);
415 dptf.scalarFields_.find(iter.key());
417 if (dptfIter != scalarFields_.end())
419 mapper(*iter(), *dptfIter());
431 dptf.vectorFields_.find(iter.key());
433 if (dptfIter != vectorFields_.end())
435 mapper(*iter(), *dptfIter());
442 sphericalTensorFields_,
447 dptf.sphericalTensorFields_.find(iter.key());
449 if (dptfIter != sphericalTensorFields_.end())
451 mapper(*iter(), *dptfIter());
463 dptf.symmTensorFields_.find(iter.key());
465 if (dptfIter != symmTensorFields_.end())
467 mapper(*iter(), *dptfIter());
479 dptf.tensorFields_.find(iter.key());
481 if (dptfIter != tensorFields_.end())
483 mapper(*iter(), *dptfIter());
496 refCast<const genericPointPatchField<Type>>(ptf);
506 dptf.scalarFields_.find(iter.key());
508 if (dptfIter != scalarFields_.end())
510 iter()->reset(*dptfIter());
522 dptf.vectorFields_.find(iter.key());
524 if (dptfIter != vectorFields_.end())
526 iter()->reset(*dptfIter());
533 sphericalTensorFields_,
538 dptf.sphericalTensorFields_.find(iter.key());
540 if (dptfIter != sphericalTensorFields_.end())
542 iter()->reset(*dptfIter());
554 dptf.symmTensorFields_.find(iter.key());
556 if (dptfIter != symmTensorFields_.end())
558 iter()->reset(*dptfIter());
570 dptf.tensorFields_.find(iter.key());
572 if (dptfIter != tensorFields_.end())
574 iter()->reset(*dptfIter());
587 if (iter().keyword() !=
"type")
592 && iter().stream().size()
593 && iter().stream()[0].isWord()
594 && iter().stream()[0].wordToken() ==
"nonuniform"
597 if (scalarFields_.found(iter().keyword()))
603 *scalarFields_.find(iter().keyword())()
606 else if (vectorFields_.found(iter().keyword()))
612 *vectorFields_.find(iter().keyword())()
615 else if (sphericalTensorFields_.found(iter().keyword()))
621 *sphericalTensorFields_.find(iter().keyword())()
624 else if (symmTensorFields_.found(iter().keyword()))
630 *symmTensorFields_.find(iter().keyword())()
633 else if (tensorFields_.found(iter().keyword()))
639 *tensorFields_.find(iter().keyword())()
#define forAllIter(Container, container, iter)
Iterate across all elements in the container object of type.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
A HashTable specialisation for hashing pointers.
An STL-conforming const_iterator.
void transfer(List< T > &)
Transfer the contents of the argument List into this list.
void size(const label)
Override size to be inconsistent with allocated storage.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A calculated boundary condition for pointField.
A list of keyword definitions, which are a keyword followed by any number of values (e....
A generic version of calculatedPointPatchField, useful as a fallback for handling unknown patch types...
virtual void write(Ostream &) const
Write.
virtual void reset(const pointPatchField< Type > &)
Reset the pointPatchField to the given pointPatchField.
genericPointPatchField(const pointPatch &, const DimensionedField< Type, pointMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
virtual void map(const pointPatchField< Type > &, const pointPatchFieldMapper &)
Map the given pointPatchField onto this pointPatchField.
Foam::pointPatchFieldMapper.
Abstract base class for point-mesh patch fields.
const DimensionedField< Type, pointMesh > & internalField() const
Return dimensioned internal field reference.
const pointPatch & patch() const
Return patch.
label size() const
Return size.
Basic pointPatch represents a set of points from the mesh.
virtual const word & name() const =0
Return name.
A templated class for holding compound tokens.
A token holds items read from Istream.
compound & transferCompoundToken(const Istream &is)
const compound & compoundToken() const
const word & wordToken() const
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
To & dynamicCast(From &r)
Reference type cast template function,.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
Field< sphericalTensor > sphericalTensorField
Specialisation of Field<T> for sphericalTensor.
Field< vector > vectorField
Specialisation of Field<T> for vector.
Field< symmTensor > symmTensorField
Specialisation of Field<T> for symmTensor.
Field< tensor > tensorField
Specialisation of Field<T> for tensor.