Go to the documentation of this file.
50 const string singleCellName =
"singleCell";
53 template<
class GeoField>
54 void interpolateFields
63 GeoField* scFldPtr = scFld.
ptr();
71 int main(
int argc,
char *argv[])
86 <<
"Cannot convert region " << singleCellName
87 <<
" since result would overwrite it. Please rename your region."
92 Info<<
"Creating singleCell mesh" <<
nl <<
endl;
100 mesh.polyMesh::instance(),
123 runTime.setTime(
timeDirs[timeI], timeI);
125 Info<<
nl <<
"Time = " << runTime.timeName() <<
endl;
131 Info<<
"Detected changed mesh. Recreating singleCell mesh." <<
endl;
140 mesh.polyMesh::instance(),
171 interpolateFields(scMesh(), vsFlds);
172 interpolateFields(scMesh(), vvFlds);
173 interpolateFields(scMesh(), vstFlds);
174 interpolateFields(scMesh(), vsymtFlds);
175 interpolateFields(scMesh(), vtFlds);
179 Info<<
"Writing mesh to time " << runTime.timeName() <<
endl;
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
bool exists(const fileName &, const bool checkGzip=true)
Does the name exist (as DIRECTORY or FILE) in the file system?
#define forAll(list, i)
Loop across all elements in list.
A class for managing temporary objects.
wordList ReadFields(const typename GeoMesh::Mesh &mesh, const IOobjectList &objects, PtrList< GeometricField< Type, PatchField, GeoMesh > > &fields, const bool syncPar=true, const bool readOldTime=false)
Helper routine to read Geometric fields.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual readUpdateState readUpdate()
Update the mesh based on the mesh files saved in time.
fileName objectPath() const
Return complete path + object name.
virtual bool write() const
Write mesh using IO settings from time.
fvMesh as subset of other mesh. Consists of one cell and all original bounday faces....
tmp< GeometricField< Type, fvPatchField, volMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &) const
Map volField. Internal field set to average, patch fields straight.
int main(int argc, char *argv[])
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
T * ptr() const
Return tmp pointer for reuse.
List of IOobjects with searching and retrieving facilities.
errorManipArg< error, int > exit(error &err, const int errNo=1)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
static instantList timeDirs
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Helper routine to read fields.
void clear()
Clear all entries from table.
static void addOptions(const bool constant=true, const bool withZero=false)
Add the options handled by timeSelector to argList::validOptions.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void reset(const label nPoints, const label nInternalFaces, const label nFaces, const label nCells)
Reset this primitiveMesh given the primitive array sizes.
bool ln(const fileName &src, const fileName &dst)
Create a softlink. dst should not exist. Returns true if successful.
static instantList select0(Time &runTime, const argList &args)
Return the set of times selected based on the argList options.
Foam::argList args(argc, argv)
bool mkDir(const fileName &, mode_t=0777)
Make a directory and return an error if it could not be created.
fileName path() const
Return complete path.