PyFoam.Basics.OutputFile module

Output of time-dependent data

class PyFoam.Basics.OutputFile.OutputFile(name, titles=[], parent=None)[source]

Bases: PyFoam.Basics.BasicFile.BasicFile

output of time dependent data

callAtClose()[source]

A hook that gets called when the file is closed

callAtOpen()[source]

A hook that gets called when the file is opened

outputAtStart()[source]

Write column titles if present

setTitles(titles)[source]

Sets the titles anew. Only has an effect if the file hasn’t been opened yet

Parameters:titles – The new titles
write(time, data)[source]

write data set

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