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 | ||||||
|
Classes | ||||||||||||||
|
Functions | ||
|