Go to the documentation of this file.
63 if (iter().keyword() !=
"type")
68 && iter().stream().size()
103 ) <<
"\n token following 'nonuniform' "
105 <<
"\n on patch " << this->patch().name()
128 if (fPtr->size() != this->size())
133 ) <<
"\n size of field " << iter().keyword()
134 <<
" (" << fPtr->size() <<
')'
135 <<
" is not the same size as the patch ("
136 << this->size() <<
')'
137 <<
"\n on patch " << this->patch().name()
145 scalarFields_.insert(iter().keyword(), fPtr);
162 if (fPtr->size() != this->size())
167 ) <<
"\n size of field " << iter().keyword()
168 <<
" (" << fPtr->size() <<
')'
169 <<
" is not the same size as the patch ("
170 << this->size() <<
')'
171 <<
"\n on patch " << this->patch().name()
179 vectorFields_.insert(iter().keyword(), fPtr);
199 if (fPtr->size() != this->size())
204 ) <<
"\n size of field " << iter().keyword()
205 <<
" (" << fPtr->size() <<
')'
206 <<
" is not the same size as the patch ("
207 << this->size() <<
')'
208 <<
"\n on patch " << this->patch().name()
216 sphericalTensorFields_.insert(iter().keyword(), fPtr);
236 if (fPtr->size() != this->size())
241 ) <<
"\n size of field " << iter().keyword()
242 <<
" (" << fPtr->size() <<
')'
243 <<
" is not the same size as the patch ("
244 << this->size() <<
')'
245 <<
"\n on patch " << this->patch().name()
253 symmTensorFields_.insert(iter().keyword(), fPtr);
270 if (fPtr->size() != this->size())
275 ) <<
"\n size of field " << iter().keyword()
276 <<
" (" << fPtr->size() <<
')'
277 <<
" is not the same size as the patch ("
278 << this->size() <<
')'
279 <<
"\n on patch " << this->patch().name()
287 tensorFields_.insert(iter().keyword(), fPtr);
296 <<
"\n on patch " << this->patch().name()
358 sphericalTensorFields_.insert
372 symmTensorFields_.insert
444 sphericalTensorFields_,
481 refCast<const genericPointPatchField<Type> >(ptf);
493 if (dptfIter != scalarFields_.end())
495 iter()->rmap(*dptfIter(), addr);
509 if (dptfIter != vectorFields_.end())
511 iter()->rmap(*dptfIter(), addr);
518 sphericalTensorFields_,
525 if (dptfIter != sphericalTensorFields_.end())
527 iter()->rmap(*dptfIter(), addr);
541 if (dptfIter != symmTensorFields_.end())
543 iter()->rmap(*dptfIter(), addr);
557 if (dptfIter != tensorFields_.end())
559 iter()->rmap(*dptfIter(), addr);
572 if (iter().keyword() !=
"type")
577 && iter().stream().size()
578 && iter().stream()[0].isWord()
579 && iter().stream()[0].wordToken() ==
"nonuniform"
582 if (scalarFields_.found(iter().keyword()))
584 scalarFields_.find(iter().keyword())()
585 ->writeEntry(iter().keyword(), os);
587 else if (vectorFields_.found(iter().keyword()))
589 vectorFields_.find(iter().keyword())()
590 ->writeEntry(iter().keyword(), os);
592 else if (sphericalTensorFields_.found(iter().keyword()))
594 sphericalTensorFields_.find(iter().keyword())()
595 ->writeEntry(iter().keyword(), os);
597 else if (symmTensorFields_.found(iter().keyword()))
599 symmTensorFields_.find(iter().keyword())()
600 ->writeEntry(iter().keyword(), os);
602 else if (tensorFields_.found(iter().keyword()))
604 tensorFields_.find(iter().keyword())()
605 ->writeEntry(iter().keyword(), os);
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
A templated class for holding compound tokens.
#define forAllIter(Container, container, iter)
Iterate across all elements in the container object of type.
rDeltaT dimensionedInternalField()
const word & wordToken() const
An STL-conforming const_iterator.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
HashPtrTable< symmTensorField > symmTensorFields_
Field< tensor > tensorField
Specialisation of Field<T> for tensor.
virtual void write(Ostream &) const
Write.
A token holds items read from Istream.
Basic pointPatch represents a set of points from the mesh.
const compound & compoundToken() const
virtual void autoMap(const pointPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
HashPtrTable< scalarField > scalarFields_
Foam::pointPatchFieldMapper.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
Field< symmTensor > symmTensorField
Specialisation of Field<T> for symmTensor.
Field< vector > vectorField
Specialisation of Field<T> for vector.
genericPointPatchField(const pointPatch &, const DimensionedField< Type, pointMesh > &)
Construct from patch and internal field.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Pre-declare SubField and related Field type.
A calculated boundary condition for pointField.
compound & transferCompoundToken(const Istream &is)
A list of keyword definitions, which are a keyword followed by any number of values (e....
Field< sphericalTensor > sphericalTensorField
Specialisation of Field<T> for sphericalTensor.
virtual void rmap(const pointPatchField< Type > &, const labelList &)
Reverse map the given pointPatchField onto this pointPatchField.
A generic version of calculatedPointPatchField, useful as a fallback for handling unknown patch types...
HashPtrTable< tensorField > tensorFields_
errorManipArg< error, int > exit(error &err, const int errNo=1)
A HashTable specialization for hashing pointers.
HashPtrTable< sphericalTensorField > sphericalTensorFields_
To & dynamicCast(From &r)
Reference type cast template function,.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
HashPtrTable< vectorField > vectorFields_
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...