Package PyFoam :: Module FoamInformation
[hide private]
[frames] | no frames]

Module FoamInformation

source code

Getting Information about the Foam-Installation (like the installation directory)

Functions [hide private]
string getPathFromEnviron(name)
Gets a path from an environment variable
  foamTutorials()
  foamMPI()
@return the used MPI-Implementation
  foamVersion()
  foamVersionNumber()

Imports: os.environ, os.path


Function Details [hide private]

getPathFromEnviron(name)

source code 
Gets a path from an environment variable
Parameters:
  • name - the name of the environment variable
Returns: string
the path

foamTutorials()

source code 
Returns:
directory in which the tutorials reside

foamMPI()

source code 
@return the used MPI-Implementation

foamVersion()

source code 
Returns:
tuple that represents the Foam-version as found in $WM_PROJECT_VERSION

foamVersionNumber()

source code 
Returns:
tuple that represents the Foam-Version-Number (without strings