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

__init__(name, titles=[], parent=None)[source]
Parameters
  • name – name of the file

  • titles – Titles of the columns

  • parent – A parent collection that knows about opened and

closed files

__module__ = 'PyFoam.Basics.OutputFile'
__repr__()[source]

Output for debugging

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