Cantera.rxnpath
index
/usr/local/lib/python2.6/dist-packages/Cantera/rxnpath.py

Reaction path diagrams.
 
To create a simple reaction path diagram:
 
>>> import rxnpath
>>> element = 'C'
>>> rxnpath.write(gas, element, file)
 
Object 'gas' must an instance of a class derived from class 'Kinetics'
(for example class IdealGasMix). The diagram layout is written to
'file'.  The output must be postprocessed with program 'dot', which is
part of the GraphViz package. To create a Postscript plot:
 
dot -Tps rp.dot > rp.ps
 
Other output formats are also supported by dot, including gif, pcl,
jpg, png, and svg
 
For more control over the graph properties, create a PathDiagam object
and pass it to the 'write' procedure.
 
PathDiagram keyword options:
 
  diagram type:
  -- detailed       'true' or 'false'
  -- type           'both' or 'net' (forward and reverse arrows,
                                     or net arrow)
  -- dot_options    options passed through to 'dot'
                    
  colors:
  -- normal_color   color for normal-weight lines
  -- bold_color     color for bold-weight lines
  -- dashed_color   color for dashed lines
 
  thresholds:
  -- threshold         min relative strength for a path to be shown
  -- normal_threshold  min relative strength for normal-weight path
                       Below this value, paths are dashed.
  -- bold_threshold    min relative strength for bold-weight path

 
Modules
       
Cantera._cantera

 
Classes
       
PathBuilder
PathDiagram

 
class PathBuilder
     Methods defined here:
__del__(self)
__init__(self, kin, logfile='')
build(self, diagram=None, element='C', dotfile='rxnpaths.dot', format='dot')

 
class PathDiagram
     Methods defined here:
__del__(self)
__init__(self, **options)
add(self, other)
displayOnly(self, node=-1)
findMajorPaths(self, a, threshold=0.0)
id(self)
setOptions(self, options)
write(self, fmt, file)

 
Functions
       
view(url, ext='png')
write(g, el, file, d=None, format='dot')