50 const string singleCellName =
"singleCell";
53 template<
class GeoField>
54 void interpolateFields
63 GeoField* scFldPtr = scFld.
ptr();
71 int main(
int argc,
char *argv[])
78 "do not update fields"
93 <<
"Cannot convert region " << singleCellName
94 <<
" since result would overwrite it. Please rename your region."
99 Info<<
"Creating singleCell mesh" <<
nl <<
endl;
107 mesh.polyMesh::instance(),
118 runTime.setTime(
timeDirs[timeI], timeI);
120 Info<<
nl <<
"Time = " << runTime.name() <<
endl;
126 Info<<
"Detected changed mesh. Recreating singleCell mesh." <<
endl;
135 mesh.polyMesh::instance(),
162 Info<<
"Writing mesh to time " << runTime.name() <<
endl;
Field reading functions for post-processing utilities.
#define forAll(list, i)
Loop across all elements in list.
List of IOobjects with searching and retrieving facilities.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
static void addBoolOption(const word &opt, const string &usage="")
Add to a bool option to validOptions with usage information.
bool optionFound(const word &opt) const
Return true if the named option is found.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
virtual bool write(const bool write=true) const
Write mesh using IO settings from time.
void clear()
Remove all regIOobject owned by the registry.
void reset(const label nPoints, const label nInternalFaces, const label nFaces, const label nCells)
Reset this primitiveMesh given the primitive array sizes.
fvMesh as subset of other mesh. Consists of one cell and all original boundary faces....
tmp< VolField< Type > > interpolate(const VolField< Type > &) const
Map volField. Internal field set to average, patch fields straight.
static void addOptions(const bool constant=true, const bool withZero=false)
Add the options handled by timeSelector to argList::validOptions.
static instantList select0(Time &runTime, const argList &args)
Return the set of times selected based on the argList options.
A class for managing temporary objects.
T * ptr() const
Return tmp pointer for reuse.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
int main(int argc, char *argv[])
static instantList timeDirs
Info<< "Calculating turbulent flame speed field St\n"<< endl;volScalarField St(IOobject("St", runTime.name(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), flameWrinkling->Xi() *Su);multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & endl(Ostream &os)
Add newline and flush stream.
const word & regionName(const solver ®ion)
PtrList< volSphericalTensorField > vstFlds
PtrList< volScalarField > vsFlds
PtrList< volTensorField > vtFlds
PtrList< volSymmTensorField > vsymtFlds
PtrList< volVectorField > vvFlds
Foam::argList args(argc, argv)