Package PyFoam :: Package Basics :: Module FoamFileGenerator :: Class FoamFileGenerator
[hide private]
[frames] | no frames]

Class FoamFileGenerator

source code

object --+
         |
        FoamFileGenerator

Class that generates a OpenFOAM-compatible representation of a data-structure

Instance Methods [hide private]
  __init__(self, data, header=None)
  __str__(self)
turns the data into a string
  strPrimitive(self, pri)
  strDict(self, dic, indent=0)
  strList(self, lst, indent=0)
  strTuple(self, lst, indent=0)

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__


Properties [hide private]

Inherited from object: __class__


Method Details [hide private]

__init__(self, data, header=None)
(Constructor)

source code 
Parameters:
  • data - data structure that will be turned into a Foam-compatible file
  • header - header information that is to be prepended
Overrides: object.__init__

__str__(self)
(Informal representation operator)

source code 
turns the data into a string
Overrides: object.__str__

strPrimitive(self, pri)

source code 
None

strDict(self, dic, indent=0)

source code 
None

strList(self, lst, indent=0)

source code 
None

strTuple(self, lst, indent=0)

source code 
None