56 actualTypeName_(
dict.get<
word>(
"type")),
59 const label patchSize = this->size();
61 for (
const entry& dEntry : dict_)
63 const keyType& key = dEntry.keyword();
68 || !dEntry.isStream() || dEntry.stream().empty()
101 <<
"\n token following 'nonuniform' "
103 <<
"\n on patch " << this->
patch().name()
105 << this->internalField().name()
107 << this->internalField().objectPath() <<
nl
127 if (fPtr->size() != patchSize)
130 <<
"\n size of field " << key
131 <<
" (" << fPtr->size() <<
')'
132 <<
" is not the same size as the patch ("
134 <<
"\n on patch " << this->
patch().name()
136 << this->internalField().name()
138 << this->internalField().objectPath() <<
nl
142 scalarFields_.insert(key, fPtr);
160 if (fPtr->size() != patchSize)
163 <<
"\n size of field " << key
164 <<
" (" << fPtr->size() <<
')'
165 <<
" is not the same size as the patch ("
167 <<
"\n on patch " << this->
patch().name()
169 << this->internalField().name()
171 << this->internalField().objectPath() <<
nl
175 vectorFields_.insert(key, fPtr);
193 if (fPtr->size() != patchSize)
196 <<
"\n size of field " << key
197 <<
" (" << fPtr->size() <<
')'
198 <<
" is not the same size as the patch ("
200 <<
"\n on patch " << this->
patch().name()
202 << this->internalField().name()
204 << this->internalField().objectPath() <<
nl
208 sphTensorFields_.insert(key, fPtr);
226 if (fPtr->size() != patchSize)
229 <<
"\n size of field " << key
230 <<
" (" << fPtr->size() <<
')'
231 <<
" is not the same size as the patch ("
233 <<
"\n on patch " << this->
patch().name()
235 << this->internalField().name()
237 << this->internalField().objectPath() <<
nl
241 symmTensorFields_.insert(key, fPtr);
259 if (fPtr->size() != patchSize)
262 <<
"\n size of field " << key
263 <<
" (" << fPtr->size() <<
')'
264 <<
" is not the same size as the patch ("
266 <<
"\n on patch " << this->
patch().name()
268 << this->internalField().name()
270 << this->internalField().objectPath() <<
nl
274 tensorFields_.insert(key, fPtr);
281 <<
"\n on patch " << this->
patch().name()
283 << this->internalField().name()
285 << this->internalField().objectPath() <<
nl
303 actualTypeName_(ptf.actualTypeName_),
326 sphTensorFields_.insert
335 symmTensorFields_.insert
361 actualTypeName_(ptf.actualTypeName_),
363 scalarFields_(ptf.scalarFields_),
364 vectorFields_(ptf.vectorFields_),
365 sphTensorFields_(ptf.sphTensorFields_),
366 symmTensorFields_(ptf.symmTensorFields_),
367 tensorFields_(ptf.tensorFields_)
414 refCast<const genericPointPatchField<Type>>(ptf);
418 const auto iter2 = dptf.scalarFields_.cfind(iter.key());
422 (*iter)->rmap(*iter2(), addr);
428 const auto iter2 = dptf.vectorFields_.cfind(iter.key());
432 (*iter)->rmap(*iter2(), addr);
438 const auto iter2 = dptf.sphTensorFields_.find(iter.key());
442 (*iter)->rmap(*iter2(), addr);
448 const auto iter2 = dptf.symmTensorFields_.find(iter.key());
452 (*iter)->rmap(*iter2(), addr);
458 const auto iter2 = dptf.tensorFields_.find(iter.key());
462 (*iter)->rmap(*iter2(), addr);
471 return actualTypeName_;
480 for (
const entry& dEntry : dict_)
482 const keyType& key = dEntry.keyword();
492 && dEntry.stream().size()
493 && dEntry.stream()[0].isWord()
494 && dEntry.stream()[0].wordToken() ==
"nonuniform"
497 if (scalarFields_.found(key))
499 scalarFields_.cfind(key)()->writeEntry(key, os);
501 else if (vectorFields_.found(key))
503 vectorFields_.cfind(key)()->writeEntry(key, os);
505 else if (sphTensorFields_.found(key))
507 sphTensorFields_.cfind(key)()->writeEntry(key, os);
509 else if (symmTensorFields_.found(key))
511 symmTensorFields_.cfind(key)()->writeEntry(key, os);
513 else if (tensorFields_.found(key))
515 tensorFields_.cfind(key)()->writeEntry(key, os);