50 const DimensionedField<Type, volMesh>&
fld
53 distributedUnallocatedDirectFieldMapper mapper
59 Field<Type> internalField(
fld, mapper);
72 auto tfield = tmp<DimensionedField<Type, volMesh>>
::New
80 tfield.ref().oriented() =
fld.oriented();
90 const IOobject& fieldIoObject
94 DimensionedField<Type, volMesh>
fld
101 return reconstructFvVolumeInternalField(
fld);
110 const GeometricField<Type, fvPatchField, volMesh>&
fld
116 distributedUnallocatedDirectFieldMapper mapper
122 Field<Type> internalField(
fld.internalField(), mapper);
130 PtrList<fvPatchField<Type>> patchFields(
fld.mesh().boundary().size());
132 const typename GeometricField<Type, fvPatchField, volMesh>::Boundary&
133 bfld =
fld.boundaryField();
137 if (patchFaceMaps_.set(patchI))
140 patchFields.set(patchI, bfld[patchI].clone());
142 distributedUnallocatedDirectFvPatchFieldMapper mapper
145 patchFaceMaps_[patchI]
149 patchFields[patchI].autoMap(mapper);
154 PtrList<fvPatchField<Type>> basePatchFields
156 baseMesh_.boundary().size()
161 forAll(patchFields, patchI)
163 if (patchFields.set(patchI))
165 const fvPatch& basePatch = baseMesh_.boundary()[patchI];
167 const fvPatchField<Type>& pfld = patchFields[patchI];
170 directFvPatchFieldMapper dummyMapper(dummyMap);
188 forAll(basePatchFields, patchI)
190 if (patchI >= patchFields.size() || !patchFields.set(patchI))
197 emptyFvPatchField<Type>::typeName,
198 baseMesh_.boundary()[patchI],
209 baseMesh_.time().timeName(),
216 auto tfield = tmp<GeometricField<Type, fvPatchField, volMesh>>
::New
225 tfield.ref().oriented()=
fld.oriented();
235 const IOobject& fieldIoObject
239 GeometricField<Type, fvPatchField, volMesh>
fld
246 return reconstructFvVolumeField(
fld);
254 const GeometricField<Type, fvsPatchField, surfaceMesh>&
fld
260 distributedUnallocatedDirectFieldMapper mapper
267 Field<Type> flatFld(
fld.mesh().nFaces(), Type(
Zero));
268 SubList<Type>(flatFld,
fld.internalField().size()) =
fld.internalField();
271 const fvsPatchField<Type>& fvp =
fld.boundaryField()[patchI];
273 SubList<Type>(flatFld, fvp.size(), fvp.patch().start()) = fvp;
277 Field<Type> internalField(flatFld, mapper,
fld.oriented()());
280 internalField.setSize
284 internalField.size(),
285 baseMesh_.nInternalFaces()
294 PtrList<fvsPatchField<Type>> patchFields(
fld.mesh().boundary().size());
296 const typename GeometricField<Type, fvsPatchField, surfaceMesh>::Boundary&
297 bfld =
fld.boundaryField();
301 if (patchFaceMaps_.set(patchI))
304 patchFields.set(patchI, bfld[patchI].clone());
306 distributedUnallocatedDirectFvPatchFieldMapper mapper
309 patchFaceMaps_[patchI]
313 patchFields[patchI].autoMap(mapper);
318 PtrList<fvsPatchField<Type>> basePatchFields
320 baseMesh_.boundary().size()
325 forAll(patchFields, patchI)
327 if (patchFields.set(patchI))
329 const fvPatch& basePatch = baseMesh_.boundary()[patchI];
331 const fvsPatchField<Type>& pfld = patchFields[patchI];
334 directFvPatchFieldMapper dummyMapper(dummyMap);
352 forAll(basePatchFields, patchI)
354 if (patchI >= patchFields.size() || !patchFields.set(patchI))
361 emptyFvsPatchField<Type>::typeName,
362 baseMesh_.boundary()[patchI],
373 baseMesh_.time().timeName(),
380 auto tfield = tmp<GeometricField<Type, fvsPatchField, surfaceMesh>>
::New
389 tfield.ref().oriented() =
fld.oriented();
399 const IOobject& fieldIoObject
403 GeometricField<Type, fvsPatchField, surfaceMesh>
fld
409 return reconstructFvSurfaceField(
fld);
416 const IOobjectList& objects,
417 const wordRes& selectedFields
420 typedef DimensionedField<Type, volMesh> fieldType;
425 selectedFields.empty()
426 ? objects.sortedNames<fieldType>()
427 : objects.sortedNames<fieldType>(selectedFields)
435 Info<<
" Reconstructing "
436 << fieldType::typeName <<
"s\n" <<
nl;
439 Info<<
" " << fieldName <<
nl;
443 reconstructFvVolumeInternalField<Type>(*(objects[fieldName]))
459 const IOobjectList& objects,
460 const wordRes& selectedFields
463 typedef GeometricField<Type, fvPatchField, volMesh> fieldType;
468 selectedFields.empty()
469 ? objects.sortedNames<fieldType>()
470 : objects.sortedNames<fieldType>(selectedFields)
476 if (
"cellDist" == fieldName)
482 Info<<
" Reconstructing "
483 << fieldType::typeName <<
"s\n" <<
nl;
485 Info<<
" " << fieldName <<
nl;
489 reconstructFvVolumeField<Type>(*(objects[fieldName]))
505 const IOobjectList& objects,
506 const wordRes& selectedFields
509 typedef GeometricField<Type, fvsPatchField, surfaceMesh> fieldType;
514 selectedFields.empty()
515 ? objects.sortedNames<fieldType>()
516 : objects.sortedNames<fieldType>(selectedFields)
524 Info<<
" Reconstructing "
525 << fieldType::typeName <<
"s\n" <<
nl;
527 Info<<
" " << fieldName <<
nl;
531 reconstructFvSurfaceField<Type>(*(objects[fieldName]))