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

Source Code for Package PyFoam

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