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

Class Utilities

Known Subclasses:
FileBasis, LAMMachine, SolutionDirectory

Class with utility methods

Can be inherited without side effects by classes that need these methods
Method Summary
  __init__(self)
  execute(self, cmd)
Execute the command cmd
  writeDictionaryHeader(self, f)
Writes a dummy header so OpenFOAM accepts the file as a dictionary

Method Details

execute(self, cmd)

Execute the command cmd

Currently no error-handling is done
Returns:
A list with all the output-lines of the execution

writeDictionaryHeader(self, f)

Writes a dummy header so OpenFOAM accepts the file as a dictionary
Parameters:
f - The file to write to
           (type=file)

Generated by Epydoc 2.1 on Fri Jan 13 15:23:06 2006 http://epydoc.sf.net