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

Class OutputFile

source code

         object --+    
                  |    
BasicFile.BasicFile --+
                      |
                     OutputFile

output of time dependent data

Instance Methods [hide private]
  __init__(self, name, titles=[])
  setTitles(self, titles)
Sets the titles anew.
  outputAtStart(self)
Write column titles if present
  write(self, time, data)
write data set

Inherited from BasicFile.BasicFile: close, getHandle, outputAtEnd, outputAtLineEnd, outputAtLineStart, writeLine

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, name, titles=[])
(Constructor)

source code 
Parameters:
  • name - name of the file
  • titles - Titles of the columns
Overrides: BasicFile.BasicFile.__init__

setTitles(self, titles)

source code 
Sets the titles anew. Only has an effect if the file hasn't been opened yet
Parameters:
  • titles - The new titles

outputAtStart(self)

source code 
Write column titles if present
Overrides: BasicFile.BasicFile.outputAtStart

write(self, time, data)

source code 
write data set
Parameters:
  • time - the current time
  • data - tuple with data