47 "genericPointPatchField<Type>::genericPointPatchField"
48 "(const pointPatch& p, const DimensionedField<Type, volMesh>& iF)"
62 actualTypeName_(dict.
lookup(
"type")),
72 if (iter().keyword() !=
"type")
77 && iter().stream().size()
111 "genericPointPatchField<Type>::"
112 "genericPointPatchField"
113 "(const pointPatch&, const Field<Type>&, "
114 "const dictionary&)",
116 ) <<
"\n token following 'nonuniform' "
118 <<
"\n on patch " << this->patch().name()
120 << this->dimensionedInternalField().name()
122 << this->dimensionedInternalField().objectPath()
141 if (fPtr->
size() != this->size())
145 "genericPointPatchField<Type>::"
146 "genericPointPatchField"
147 "(const pointPatch&, const Field<Type>&, "
148 "const dictionary&)",
150 ) <<
"\n size of field " << iter().keyword()
151 <<
" (" << fPtr->
size() <<
')'
152 <<
" is not the same size as the patch ("
153 << this->size() <<
')'
154 <<
"\n on patch " << this->patch().name()
156 << this->dimensionedInternalField().name()
158 << this->dimensionedInternalField().objectPath()
162 scalarFields_.insert(iter().keyword(), fPtr);
179 if (fPtr->
size() != this->size())
183 "genericPointPatchField<Type>::"
184 "genericPointPatchField"
185 "(const pointPatch&, const Field<Type>&, "
186 "const dictionary&)",
188 ) <<
"\n size of field " << iter().keyword()
189 <<
" (" << fPtr->
size() <<
')'
190 <<
" is not the same size as the patch ("
191 << this->size() <<
')'
192 <<
"\n on patch " << this->patch().name()
194 << this->dimensionedInternalField().name()
196 << this->dimensionedInternalField().objectPath()
200 vectorFields_.insert(iter().keyword(), fPtr);
220 if (fPtr->
size() != this->size())
224 "genericPointPatchField<Type>::"
225 "genericPointPatchField"
226 "(const pointPatch&, const Field<Type>&, "
227 "const dictionary&)",
229 ) <<
"\n size of field " << iter().keyword()
230 <<
" (" << fPtr->
size() <<
')'
231 <<
" is not the same size as the patch ("
232 << this->size() <<
')'
233 <<
"\n on patch " << this->patch().name()
235 << this->dimensionedInternalField().name()
237 << this->dimensionedInternalField().objectPath()
241 sphericalTensorFields_.insert(iter().keyword(), fPtr);
261 if (fPtr->
size() != this->size())
265 "genericPointPatchField<Type>::"
266 "genericPointPatchField"
267 "(const pointPatch&, const Field<Type>&, "
268 "const dictionary&)",
270 ) <<
"\n size of field " << iter().keyword()
271 <<
" (" << fPtr->
size() <<
')'
272 <<
" is not the same size as the patch ("
273 << this->size() <<
')'
274 <<
"\n on patch " << this->patch().name()
276 << this->dimensionedInternalField().name()
278 << this->dimensionedInternalField().objectPath()
282 symmTensorFields_.insert(iter().keyword(), fPtr);
299 if (fPtr->
size() != this->size())
303 "genericPointPatchField<Type>::"
304 "genericPointPatchField"
305 "(const pointPatch&, const Field<Type>&, "
306 "const dictionary&)",
308 ) <<
"\n size of field " << iter().keyword()
309 <<
" (" << fPtr->
size() <<
')'
310 <<
" is not the same size as the patch ("
311 << this->size() <<
')'
312 <<
"\n on patch " << this->patch().name()
314 << this->dimensionedInternalField().name()
316 << this->dimensionedInternalField().objectPath()
320 tensorFields_.insert(iter().keyword(), fPtr);
326 "genericPointPatchField<Type>::"
327 "genericPointPatchField"
328 "(const pointPatch&, const Field<Type>&, "
329 "const dictionary&)",
333 <<
"\n on patch " << this->patch().name()
335 << this->dimensionedInternalField().name()
337 << this->dimensionedInternalField().objectPath()
357 actualTypeName_(ptf.actualTypeName_),
363 ptf.scalarFields_.
begin();
364 iter != ptf.scalarFields_.
end();
368 scalarFields_.insert(iter.key(),
new scalarField(*iter(), mapper));
374 ptf.vectorFields_.
begin();
375 iter != ptf.vectorFields_.
end();
379 vectorFields_.insert(iter.key(),
new vectorField(*iter(), mapper));
385 ptf.sphericalTensorFields_.
begin();
386 iter != ptf.sphericalTensorFields_.
end();
390 sphericalTensorFields_.insert
400 ptf.symmTensorFields_.
begin();
401 iter != ptf.symmTensorFields_.
end();
405 symmTensorFields_.insert
415 ptf.tensorFields_.
begin();
416 iter != ptf.tensorFields_.
end();
420 tensorFields_.insert(iter.key(),
new tensorField(*iter(), mapper));
433 actualTypeName_(ptf.actualTypeName_),
435 scalarFields_(ptf.scalarFields_),
436 vectorFields_(ptf.vectorFields_),
437 sphericalTensorFields_(ptf.sphericalTensorFields_),
438 symmTensorFields_(ptf.symmTensorFields_),
439 tensorFields_(ptf.tensorFields_)
454 iter != scalarFields_.end();
464 iter != vectorFields_.end();
474 sphericalTensorFields_.
begin();
475 iter != sphericalTensorFields_.end();
485 symmTensorFields_.
begin();
486 iter != symmTensorFields_.end();
496 iter != tensorFields_.end();
513 refCast<const genericPointPatchField<Type> >(ptf);
518 iter != scalarFields_.end();
523 dptf.scalarFields_.
find(iter.key());
525 if (dptfIter != scalarFields_.
end())
527 iter()->rmap(*dptfIter(), addr);
534 iter != vectorFields_.end();
539 dptf.vectorFields_.
find(iter.key());
541 if (dptfIter != vectorFields_.
end())
543 iter()->rmap(*dptfIter(), addr);
550 sphericalTensorFields_.
begin();
551 iter != sphericalTensorFields_.end();
556 dptf.sphericalTensorFields_.
find(iter.key());
558 if (dptfIter != sphericalTensorFields_.
end())
560 iter()->rmap(*dptfIter(), addr);
567 symmTensorFields_.
begin();
568 iter != symmTensorFields_.end();
573 dptf.symmTensorFields_.
find(iter.key());
575 if (dptfIter != symmTensorFields_.
end())
577 iter()->rmap(*dptfIter(), addr);
584 iter != tensorFields_.end();
589 dptf.tensorFields_.
find(iter.key());
591 if (dptfIter != tensorFields_.
end())
593 iter()->rmap(*dptfIter(), addr);
611 if (iter().keyword() !=
"type")
616 && iter().stream().size()
617 && iter().stream()[0].isWord()
618 && iter().stream()[0].wordToken() ==
"nonuniform"
621 if (scalarFields_.found(iter().keyword()))
623 scalarFields_.find(iter().keyword())()
624 ->writeEntry(iter().keyword(), os);
626 else if (vectorFields_.found(iter().keyword()))
628 vectorFields_.find(iter().keyword())()
629 ->writeEntry(iter().keyword(), os);
631 else if (sphericalTensorFields_.found(iter().keyword()))
633 sphericalTensorFields_.find(iter().keyword())()
634 ->writeEntry(iter().keyword(), os);
636 else if (symmTensorFields_.found(iter().keyword()))
638 symmTensorFields_.find(iter().keyword())()
639 ->writeEntry(iter().keyword(), os);
641 else if (tensorFields_.found(iter().keyword()))
643 tensorFields_.find(iter().keyword())()
644 ->writeEntry(iter().keyword(), os);