Package PyFoam
[hide private]
[frames] | no frames]

Source Code for Package PyFoam

 1  #  ICE Revision: $Id: /local/openfoam/Python/PyFoam/PyFoam/__init__.py 6510 2010-04-21T16:13:50.349113Z bgschaid  $  
 2  """ Utility-classes for OpenFOAM 
 3   
 4  Module for the Execution of OpenFOAM-commands and processing their output 
 5  """ 
 6   
 7  from Infrastructure.Configuration import Configuration 
 8   
9 -def version():
10 """@return: Version number as a tuple""" 11 return (0,5,4)
12
13 -def versionString():
14 """@return: Version number of PyFoam""" 15 v=version() 16 17 vStr="%d" % v[0] 18 for d in v[1:]: 19 if type(d)==int: 20 vStr+=(".%d" % d) 21 else: 22 vStr+=("-%s" % str(d)) 23 return vStr
24
25 -def foamVersionString():
26 from FoamInformation import foamVersionString 27 return foamVersionString()
28 29 _configuration = Configuration() 30
31 -def configuration():
32 """@return: The Configuration information of PyFoam""" 33 return _configuration
34