FreeFOAM The Cross-Platform CFD Toolkit
readerDatabase Class Reference

Singleton caching Foam database and mesh and various. Used in Fv reader to keep track of data inbetween callbacks. More...


Detailed Description

Singleton caching Foam database and mesh and various. Used in Fv reader to keep track of data inbetween callbacks.

Source files

Definition at line 60 of file readerDatabase.H.

List of all members.

Public Member Functions

 readerDatabase ()
 Construct null.
 ~readerDatabase ()
const TimerunTime () const
const fvMeshmesh () const
const labelListpolys () const
const wordListvolScalarNames () const
const wordListvolVectorNames () const
const wordgetFvName (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.

Constructor & Destructor Documentation

Construct null.


Member Function Documentation

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).

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

void setFieldNames ( const wordList ,
const wordList  
)

Set volScalarNames, volVectorNames.


Member Data Documentation

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.


The documentation for this class was generated from the following file: