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

Class OutputFile

source code


output of time dependent data

Instance Methods [hide private]
 
__init__(self, name, titles=[], parent=None)
name - name of the file
source code
 
__repr__(self)
Output for debugging
source code
 
callAtClose(self)
A hook that gets called when the file is closed
source code
 
callAtOpen(self)
A hook that gets called when the file is opened
source code
 
outputAtStart(self)
Write column titles if present
source code
 
setTitles(self, titles)
Sets the titles anew.
source code
 
write(self, time, data)
write data set
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

    Inherited from BasicFile.BasicFile
 
close(self, temporary=False)
close the file
source code
 
getHandle(self)
get the file-handle.
source code
 
outputAtEnd(self)
A hook for outputting stuff at the end of the file
source code
 
outputAtLineEnd(self)
A hook for outputting stuff at the end of each line
source code
 
outputAtLineStart(self)
A hook for outputting stuff at the start of each line
source code
 
writeLine(self, data)
write a data set
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

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

source code 

name - name of the file

Parameters:
  • name - name of the file
  • titles - Titles of the columns
  • parent - A parent collection that knows about opened and closed files
Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 

Output for debugging

Overrides: object.__repr__

callAtClose(self)

source code 

A hook that gets called when the file is closed

Overrides: BasicFile.BasicFile.callAtClose

callAtOpen(self)

source code 

A hook that gets called when the file is opened

Overrides: BasicFile.BasicFile.callAtOpen

outputAtStart(self)

source code 

Write column titles if present

Overrides: BasicFile.BasicFile.outputAtStart

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

write(self, time, data)

source code 

write data set

Parameters:
  • time - the current time
  • data - tuple with data