Go to the documentation of this file.
84 Info<<
" Reading " << io.headerClassName()
100 if (d.
found(
"faceLabels"))
105 if (d.
found(
"flipMap"))
110 if (d.
found(
"cellLabels"))
115 if (d.
found(
"pointLabels"))
143 int main(
int argc,
char *argv[])
149 "exclude the 'constant/' dir in the times list"
163 Info<<
"Excluding the constant directory." <<
nl <<
endl;
193 writeMeshObject<cellCompactIOList>(
"cells", meshDir, runTime);
194 writeMeshObject<labelIOList>(
"owner", meshDir, runTime);
195 writeMeshObject<labelIOList>(
"neighbour", meshDir, runTime);
196 writeMeshObject<faceCompactIOList>(
"faces", meshDir, runTime);
197 writeMeshObject<pointIOField>(
"points", meshDir, runTime);
198 writeMeshObject<labelIOList>(
"pointProcAddressing", meshDir, runTime);
199 writeMeshObject<labelIOList>(
"faceProcAddressing", meshDir, runTime);
200 writeMeshObject<labelIOList>(
"cellProcAddressing", meshDir, runTime);
201 writeMeshObject<labelIOList>
203 "boundaryProcAddressing",
209 writeMeshObject<pointIOField>
211 "internalDelaunayVertices",
220 writeZones(
"cellZones", meshDir, runTime);
221 writeZones(
"faceZones", meshDir, runTime);
222 writeZones(
"pointZones", meshDir, runTime);
230 const word& headerClassName = iter()->headerClassName();
234 headerClassName == volScalarField::typeName
235 || headerClassName == volVectorField::typeName
236 || headerClassName == volSphericalTensorField::typeName
237 || headerClassName == volSymmTensorField::typeName
238 || headerClassName == volTensorField::typeName
240 || headerClassName == surfaceScalarField::typeName
241 || headerClassName == surfaceVectorField::typeName
242 || headerClassName == surfaceSphericalTensorField::typeName
243 || headerClassName == surfaceSymmTensorField::typeName
244 || headerClassName == surfaceTensorField::typeName
246 || headerClassName == pointScalarField::typeName
247 || headerClassName == pointVectorField::typeName
248 || headerClassName == pointSphericalTensorField::typeName
249 || headerClassName == pointSymmTensorField::typeName
250 || headerClassName == pointTensorField::typeName
253 Info<<
" Reading " << headerClassName
254 <<
" : " << iter()->name() <<
endl;
262 Info<<
" Writing " << iter()->name() <<
endl;
263 fDict.regIOobject::write();
IOstream::compressionType writeCompression() const
Default write compression.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from string.
A class for handling file names.
List< label > labelList
A List of labels.
A PtrList of objects of type <T> with automated input and output.
static word defaultRegion
Return the default region name.
#define forAll(list, i)
Loop across all elements in list.
Read field as dictionary (without mesh).
IOstream::streamFormat writeFormat() const
Default write format.
static word meshSubDir
Return the mesh sub-directory name (usually "polyMesh")
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
static void addBoolOption(const word &opt, const string &usage="")
Add to a bool option to validOptions with usage information.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static const versionNumber currentVersion
Current version number.
Write a mesh object in the format specified in controlDict.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
bool setOption(const word &opt, const string ¶m="")
Set option directly (use with caution)
int main(int argc, char *argv[])
A list of keyword definitions, which are a keyword followed by any number of values (e....
virtual void setTime(const Time &)
Reset the time and time-index to those of the given time.
List< bool > boolList
Bool container classes.
List of IOobjects with searching and retrieving facilities.
static fileCheckTypes fileModificationChecking
static instantList timeDirs
bool unsetOption(const word &opt)
Unset option directly (use with caution)
static void addOptions(const bool constant=true, const bool withZero=false)
Add the options handled by timeSelector to argList::validOptions.
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
static const word null
An empty word.
bool optionFound(const word &opt) const
Return true if the named option is found.
static instantList select0(Time &runTime, const argList &args)
Return the set of times selected based on the argList options.
defineTemplateTypeNameAndDebug(IOPtrList< ensightPart >, 0)
Foam::argList args(argc, argv)
bool optionReadIfPresent(const word &opt, T &) const
Read a value from the named option if present.
word name(const complex &)
Return a string representation of a complex.
void set(entry *)
Assign a new entry, overwrite any existing entry.