Go to the documentation of this file.
37 namespace fileOperations
54 const string s(
"-ioRanks");
57 for (
int i=1; i<argc-1; i++)
69 for (
int i=index+2; i<argc; i++)
88 auto* ctorPtr = wordConstructorTable(
type);
94 "fileOperationInitialise",
96 *wordConstructorTablePtr_
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
A class for handling words, derived from Foam::string.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool setEnv(const word &name, const std::string &value, const bool overwrite)
Set an environment variable, return true on success.
#define DebugInFunction
Report an information message using Foam::Info.
#define FatalErrorInLookup(lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalError.
Macros for easy insertion into run-time selection tables.
errorManip< error > abort(error &err)
General fileOperation initialiser. Handles -ioRanks option, using it to set the FOAM_IORANKS environm...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
defineRunTimeSelectionTable(fileOperationInitialise, word)
defineTypeNameAndDebug(collatedFileOperation, 0)
fileOperationInitialise(int &argc, char **&argv)
Construct from components.
static autoPtr< fileOperationInitialise > New(const word &type, int &argc, char **&argv)
Select type.