Go to the documentation of this file.
37 const PtrList<fvMesh>& meshes,
42 tmp<IOField<Type> > tfield
49 mesh.time().timeName(),
58 Field<Type>& field = tfield();
63 IOobject localIOobject
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];
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();
123 IOobject localIOobject
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];
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>
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>
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>
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)
A primitive field of type <T> with automated input and output.
#define forAll(list, i)
Loop across all elements in list.
A class for managing temporary objects.
Info<< "Creating field dpdt\n"<< endl;volScalarField dpdt(IOobject("dpdt", runTime.timeName(), mesh), mesh, dimensionedScalar("dpdt", p.dimensions()/dimTime, 0));Info<< "Creating field kinetic energy K\n"<< endl;volScalarField K("K", 0.5 *magSqr(U));volScalarField p_rgh(IOobject("p_rgh", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);p_rgh=p - rho *gh;mesh.setFluxRequired(p_rgh.name());multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
Ostream & endl(Ostream &os)
Add newline and flush stream.
A Field of objects of type <T> with automated input and output using a compact storage....
A HashTable with keys but without contents.
Mesh consisting of general polyhedral cells.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
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)
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
bool found(const Key &) const
Return true if hashedEntry is found in table.
IOobjectList lookupClass(const word &className) const
Return the list for all IOobjects of a given class.
List of IOobjects with searching and retrieving facilities.
void reconstructLagrangianFieldFields(const word &cloudName, const polyMesh &mesh, const PtrList< fvMesh > &meshes, const IOobjectList &objects, const HashSet< word > &selectedFields)
const word cloudName(propsDict.lookup("cloudName"))
tmp< CompactIOField< Field< Type >, Type > > reconstructLagrangianFieldField(const word &cloudName, const polyMesh &mesh, const PtrList< fvMesh > &meshes, const word &fieldName)
word name(const complex &)
Return a string representation of a complex.