35 PtrList<GeometricField<Type, pointPatchField, pointMesh>> procFields
45 new GeometricField<Type, pointPatchField, pointMesh>
50 procMeshes_[proci]().time().timeName(),
62 Field<Type> internalField(completeMesh_.
size());
65 PtrList<pointPatchField<Type>> patchFields(completeMesh_.
boundary().
size());
70 const GeometricField<Type, pointPatchField, pointMesh>&
71 procField = procFields[proci];
74 const labelList& procToGlobalAddr = pointProcAddressing_[proci];
79 procField.primitiveField(),
87 const label curBPatch =
93 if (!patchFields(curBPatch))
99 procField.boundaryField()[
patchi],
100 completeMesh_.
boundary()[curBPatch],
102 pointPatchFieldReconstructor
110 patchFields[curBPatch].rmap
112 procField.boundaryField()[
patchi],
113 patchPointAddressing_[proci][
patchi]
121 return tmp<GeometricField<Type, pointPatchField, pointMesh>>
123 new GeometricField<Type, pointPatchField, pointMesh>
127 fieldIoObject.name(),
134 procFields[0].dimensions(),
146 const IOobjectList& objects,
147 const HashSet<word>& selectedFields
155 IOobjectList fields = objects.lookupClass(fieldClassName);
159 Info<<
" Reconstructing " << fieldClassName <<
"s\n" <<
endl;
165 !selectedFields.size()
166 || selectedFields.found(fieldIter()->
name())
169 Info<<
" " << fieldIter()->name() <<
endl;
171 reconstructField<Type>(*fieldIter())().
write();
#define forAll(list, i)
Loop across all elements in list.
virtual Ostream & write(const char)=0
Write character.
FvWallInfoData< WallInfo, label > label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
static const char *const typeName
Ostream & endl(Ostream &os)
Add newline and flush stream.
static const DimensionedField< Type, GeoMesh > & null()
Return a null DimensionedField.
static word timeName(const scalar, const int precision=curPrecision_)
Return time name of given scalar time.
void reconstructFields(const IOobjectList &objects, const HashSet< word > &selectedFields)
Reconstruct and write all fields.
List< label > labelList
A List of labels.
label size() const
Return number of points.
word name(const complex &)
Return a string representation of a complex.
label size() const
Return the number of elements in the UPtrList.
const Time & time() const
Return time.
static autoPtr< pointPatchField< Type > > New(const word &, const pointPatch &, const DimensionedField< Type, pointMesh > &)
Return a pointer to a new patchField created on freestore given.
A class for managing temporary objects.
const pointBoundaryMesh & boundary() const
Return reference to boundary mesh.
tmp< GeometricField< Type, pointPatchField, pointMesh > > reconstructField(const IOobject &fieldIoObject)
Reconstruct field.