Package PyFoam :: Package Execution :: Module ParallelExecution :: Class LAMMachine
[show private | hide private]
[frames | no frames]

Class LAMMachine

Utilities --+
            |
           LAMMachine


Wrapper class for starting an stopping a LAM-Machine
Method Summary
  __init__(self, machines)
  boot(self)
Boots a LAM-machine using the machine-file
  cpuNr(self)
  stop(self)
Stops a LAM-machine (if one is running)
  writeDecomposition(self, sDir, par)
Write parameter file for a decomposition @param par:Parameters specific for that kind of decomposition @type par:str
  writeMetis(self, sDir)
Write the parameter-File for a metis decomposition
  writeSimple(self, sDir, direction)
Write the parameter-File for a metis decomposition
    Inherited from Utilities
  execute(self, cmd)
Execute the command cmd
  writeDictionaryHeader(self, f)
Writes a dummy header so OpenFOAM accepts the file as a dictionary

Method Details

__init__(self, machines)
(Constructor)

Parameters:
machines - Name of the file with the machine information
Overrides:
PyFoam.Basics.Utilities.Utilities.__init__

boot(self)

Boots a LAM-machine using the machine-file

stop(self)

Stops a LAM-machine (if one is running)

writeDecomposition(self, sDir, par)

Write parameter file for a decomposition @param par:Parameters specific for that kind of decomposition @type par:str
Parameters:
sDir - Solution directory
           (type=PyFoam.RunDictionary.SolutionDirectory)

writeMetis(self, sDir)

Write the parameter-File for a metis decomposition
Parameters:
sDir - Solution directory
           (type=PyFoam.RunDictionary.SolutionDirectory)

writeSimple(self, sDir, direction)

Write the parameter-File for a metis decomposition
Parameters:
sDir - Solution directory
           (type=PyFoam.RunDictionary.SolutionDirectory)
direction - direction in which to decompose (0=x, 1=y, 2=z)

Generated by Epydoc 2.1 on Mon Jan 23 22:55:06 2006 http://epydoc.sf.net