Singleton caching Foam database and mesh and various. Used in Fv reader to keep track of data inbetween callbacks. More...
Singleton caching Foam database and mesh and various. Used in Fv reader to keep track of data inbetween callbacks.
Definition at line 60 of file readerDatabase.H.
Public Member Functions | |
readerDatabase () | |
Construct null.
| |
~readerDatabase () | |
const Time & | runTime () const |
const fvMesh & | mesh () const |
const labelList & | polys () const |
const wordList & | volScalarNames () const |
const wordList & | volVectorNames () const |
const word & | getFvName (const word &foamName) const |
Get fieldview compatible name.
| |
bool | setRunTime (const fileName &rootDir, const fileName &caseName, const word &setName) |
Create database (if nessecary).
| |
void | loadMesh () |
Forcibly load mesh.
| |
polyMesh::readUpdateState | setTime (const instant &, const label) |
Set time (use this instead of database::setTime), updates.
| |
void | setFieldNames (const wordList &, const wordList &) |
Set volScalarNames, volVectorNames.
| |
Static Public Attributes | |
static const bool | debug_ |
Debug flag. Note: uses envvar instead of controlDict since.
|
readerDatabase | ( | ) |
Construct null.
~readerDatabase | ( | ) |
const Time& runTime | ( | ) | const |
const fvMesh& mesh | ( | ) | const |
const labelList& polys | ( | ) | const |
const wordList& volScalarNames | ( | ) | const |
const wordList& volVectorNames | ( | ) | const |
Create database (if nessecary).
Returns true if new Time created, false if old one reused. Optional fvMeshSubset using setName.
void loadMesh | ( | ) |
Forcibly load mesh.
polyMesh::readUpdateState setTime | ( | const instant & | , |
const | label | ||
) |
Set time (use this instead of database::setTime), updates.
mesh as well and returns mesh update status
const bool debug_ [static]
|
Debug flag. Note: uses envvar instead of controlDict since.
*this is static as well. Might be initialized before controlDict read.
Definition at line 110 of file readerDatabase.H.