35 const word& cloudName,
37 const PtrList<fvMesh>& meshes,
42 tmp<IOField<Type>> tfield
49 mesh.time().timeName(),
58 Field<Type>& field = tfield.ref();
63 IOobject localIOobject
67 cloud::prefix/cloudName,
73 if (localIOobject.typeHeaderOk<IOField<Type>>(
true))
75 IOField<Type> fieldi(localIOobject);
77 label offset = field.size();
78 field.setSize(offset + fieldi.size());
82 field[offset + j] = fieldi[j];
95 const word& cloudName,
97 const PtrList<fvMesh>& meshes,
102 tmp<CompactIOField<Field<Type>, Type >> tfield
104 new CompactIOField<Field<Type>, Type>
109 mesh.time().timeName(),
115 Field<Field<Type>>(0)
118 Field<Field<Type>>& field = tfield.ref();
123 IOobject localIOobject
127 cloud::prefix/cloudName,
135 localIOobject.typeHeaderOk<CompactIOField<Field<Type>, Type>>
139 || localIOobject.typeHeaderOk<IOField<Field<Type>>>(
false)
142 CompactIOField<Field<Type>, Type> fieldi(localIOobject);
144 label offset = field.size();
145 field.setSize(offset + fieldi.size());
149 field[offset + j] = fieldi[j];
162 const word& cloudName,
175 Info<<
" Reconstructing lagrangian " 176 << fieldClassName <<
"s\n" <<
endl;
182 selectedFields.
empty()
183 || selectedFields.
found(fieldIter()->
name())
186 Info<<
" " << fieldIter()->name() <<
endl;
187 reconstructLagrangianField<Type>
205 const word& cloudName,
219 Info<<
" Reconstructing lagrangian " 220 << fieldClassName <<
"s\n" <<
endl;
226 selectedFields.
empty()
227 || selectedFields.
found(fieldIter()->
name())
230 Info<<
" " << fieldIter()->name() <<
endl;
231 reconstructLagrangianFieldField<Type>
252 Info<<
" Reconstructing lagrangian " 253 << fieldClassName <<
"s\n" <<
endl;
259 selectedFields.
empty()
260 || selectedFields.
found(fieldIter()->
name())
263 Info<<
" " << fieldIter()->name() <<
endl;
264 reconstructLagrangianFieldField<Type>
A HashTable with keys but without contents.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
List of IOobjects with searching and retrieving facilities.
bool empty() const
Return true if the hash table is empty.
void reconstructLagrangianFields(const word &cloudName, const polyMesh &mesh, const PtrList< fvMesh > &meshes, const IOobjectList &objects, const HashSet< word > &selectedFields)
Ostream & endl(Ostream &os)
Add newline and flush stream.
label size() const
Return number of elements in table.
multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
tmp< CompactIOField< Field< Type >, Type > > reconstructLagrangianFieldField(const word &cloudName, const polyMesh &mesh, const PtrList< fvMesh > &meshes, const word &fieldName)
bool found(const Key &) const
Return true if hashedEntry is found in table.
Pre-declare SubField and related Field type.
A class for handling words, derived from string.
tmp< IOField< Type > > reconstructLagrangianField(const word &cloudName, const polyMesh &mesh, const PtrList< fvMesh > &meshes, const word &fieldName)
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
word name(const complex &)
Return a string representation of a complex.
IOobjectList lookupClass(const word &className) const
Return the list for all IOobjects of a given class.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
A Field of objects of type <T> with automated input and output using a compact storage. Behaves like IOField except when binary output in case it writes a CompactListList.
virtual Ostream & write(const token &)=0
Write next token to stream.
Mesh consisting of general polyhedral cells.
const word cloudName(propsDict.lookup("cloudName"))
A class for managing temporary objects.
void reconstructLagrangianFieldFields(const word &cloudName, const polyMesh &mesh, const PtrList< fvMesh > &meshes, const IOobjectList &objects, const HashSet< word > &selectedFields)
A primitive field of type <T> with automated input and output.