OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

readerDatabase Class Reference

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

Collaboration diagram for readerDatabase:

List of all members.


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.

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 55 of file readerDatabase.H.


Constructor & Destructor Documentation

readerDatabase (  ) 

Construct null.

~readerDatabase (  ) 


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 109 of file readerDatabase.H.


The documentation for this class was generated from the following file:
  • applications/utilities/postProcessing/graphics/fieldview9Reader/readerDatabase.H
Copyright © 2000-2009 OpenCFD Ltd