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)
  makeString(self)
turns the data into a string
  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__, __str__


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__

makeString(self)

source code 
turns the data into a string

strDict(self, dic, indent=0)

source code 
None

strList(self, lst, indent=0)

source code 
None

strTuple(self, lst, indent=0)

source code 
None