33 template<
class FieldType>
34 bool Foam::pointFieldReconstructor::reconstructs
37 const HashSet<word>& selectedFields
40 IOobjectList
fields =
objects.lookupClass(FieldType::typeName);
42 if (
fields.size() && selectedFields.empty())
49 if (selectedFields.found(fieldIter()->
name()))
78 procMeshes_[proci].time().name(),
97 procField = procFields[proci];
100 const labelList& procToGlobalAddr = pointProcAddressing_[proci];
113 const label curBPatch =
119 if (!patchFields(curBPatch))
127 completeMesh_.boundary()[curBPatch],
131 completeMesh_.boundary()[curBPatch].size()
137 patchFields[curBPatch].map
142 patchPointAddressing_[proci][
patchi]
156 fieldIoObject.
name(),
157 completeMesh_().time().
name(),
187 Info<<
nl <<
" Reconstructing " << fieldClassName <<
"s"
194 !selectedFields.
size()
195 || selectedFields.
found(fieldIter()->
name())
198 Info<<
" " << fieldIter()->name() <<
endl;
200 reconstructField<Type>(*fieldIter())().
write();
#define forAll(list, i)
Loop across all elements in list.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
static pointMesh & New(const word &name, const polyMesh &mesh)
Construct and return the named DemandDrivenMeshObject.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Pre-declare SubField and related Field type.
void rmap(const UList< Type > &mapF, const labelUList &mapAddressing)
1 to 1 reverse-map from the given field
const Boundary & boundaryField() const
Return const-reference to the boundary field.
const Internal::FieldType & primitiveField() const
Return a const-reference to the primitive field.
A HashTable with keys but without contents.
label size() const
Return number of elements in table.
bool found(const Key &) const
Return true if hashedEntry is found in table.
List of IOobjects with searching and retrieving facilities.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
const word & name() const
Return name.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
bool set(const label) const
Is element set.
tmp< PointField< Type > > reconstructField(const IOobject &fieldIoObject)
Read and reconstruct a field.
void reconstructFields(const IOobjectList &objects, const HashSet< word > &selectedFields)
Read, reconstruct and write all/selected point fields.
Abstract base class for point-mesh patch fields.
Mapper which sets the field size. It does not actually map values.
A class for managing temporary objects.
A class for handling words, derived from string.
Info<< "Calculating turbulent flame speed field St\n"<< endl;volScalarField St(IOobject("St", runTime.name(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), flameWrinkling->Xi() *Su);multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const HashTable< dimensionSet > & dimensions()
Get the table of dimension sets.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.