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

Class OutputFile

BasicFile --+
            |
           OutputFile


output of time dependent data
Method Summary
  __init__(self, name, titles)
  outputAtStart(self)
Write column titles if present
  setTitles(self, titles)
Sets the titles anew.
  write(self, time, data)
write data set
    Inherited from BasicFile
  close(self)
close the file
  getHandle(self)
get the file-handle.
  outputAtEnd(self)
A hook for outputting stuff at the end of the file
  outputAtLineEnd(self)
A hook for outputting stuff at the end of each line
  outputAtLineStart(self)
A hook for outputting stuff at the start of each line
  writeLine(self, data)
write a data set

Method Details

__init__(self, name, titles=[])
(Constructor)

Parameters:
name - name of the file
titles - Titles of the columns
Overrides:
PyFoam.Basics.BasicFile.BasicFile.__init__

outputAtStart(self)

Write column titles if present
Overrides:
PyFoam.Basics.BasicFile.BasicFile.outputAtStart

setTitles(self, titles)

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

write(self, time, data)

write data set
Parameters:
time - the current time
data - tuple with data

Generated by Epydoc 2.1 on Mon Jan 22 23:52:48 2007 http://epydoc.sf.net