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 typeIOobject<IOField<Type>> localIOobject
67 cloud::prefix/cloudName,
73 if (localIOobject.headerOk())
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,
133 if (localIOobject.headerOk())
135 CompactIOField<Field<Type>, Type> fieldi(localIOobject);
137 label offset = field.size();
138 field.setSize(offset + fieldi.size());
142 field[offset + j] = fieldi[j];
155 const word& cloudName,
156 const polyMesh& mesh,
157 const PtrList<fvMesh>& meshes,
158 const IOobjectList& objects,
159 const HashSet<word>& selectedFields
162 const word fieldClassName(IOField<Type>::typeName);
164 IOobjectList fields = objects.lookupClass(fieldClassName);
168 Info<<
" Reconstructing lagrangian " 169 << fieldClassName <<
"s\n" <<
endl;
175 selectedFields.empty()
176 || selectedFields.found(fieldIter()->
name())
179 Info<<
" " << fieldIter()->name() <<
endl;
180 reconstructLagrangianField<Type>
198 const word& cloudName,
199 const polyMesh& mesh,
200 const PtrList<fvMesh>& meshes,
201 const IOobjectList& objects,
202 const HashSet<word>& selectedFields
206 const word fieldClassName(CompactIOField<Field<Type>, Type>::typeName);
208 IOobjectList fields = objects.lookupClass(fieldClassName);
212 Info<<
" Reconstructing lagrangian " 213 << fieldClassName <<
"s\n" <<
endl;
219 selectedFields.empty()
220 || selectedFields.found(fieldIter()->
name())
223 Info<<
" " << fieldIter()->name() <<
endl;
224 reconstructLagrangianFieldField<Type>
239 const word fieldClassName(IOField<Field<Type>>::typeName);
241 IOobjectList fields = objects.lookupClass(fieldClassName);
245 Info<<
" Reconstructing lagrangian " 246 << fieldClassName <<
"s\n" <<
endl;
252 selectedFields.empty()
253 || selectedFields.found(fieldIter()->
name())
256 Info<<
" " << fieldIter()->name() <<
endl;
257 reconstructLagrangianFieldField<Type>
#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.
void reconstructLagrangianFieldFields(const word &cloudName, const polyMesh &mesh, const PtrList< fvMesh > &meshes, const IOobjectList &objects, const HashSet< word > &selectedFields)
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
Ostream & endl(Ostream &os)
Add newline and flush stream.
tmp< CompactIOField< Field< Type >, Type > > reconstructLagrangianFieldField(const word &cloudName, const polyMesh &mesh, const PtrList< fvMesh > &meshes, const word &fieldName)
void reconstructLagrangianFields(const word &cloudName, const polyMesh &mesh, const PtrList< fvMesh > &meshes, const IOobjectList &objects, const HashSet< word > &selectedFields)
tmp< IOField< Type > > reconstructLagrangianField(const word &cloudName, const polyMesh &mesh, const PtrList< fvMesh > &meshes, const word &fieldName)
word name(const complex &)
Return a string representation of a complex.
const word cloudName(propsDict.lookup("cloudName"))
A class for managing temporary objects.