Reaction path diagrams (graphs).
More...
#include <ReactionPath.h>
|
virtual | ~ReactionPathDiagram () |
| Destructor. More...
|
|
doublereal | maxFlow () |
| The largest one-way flow value in any path. More...
|
|
doublereal | netFlow (size_t k1, size_t k2) |
| The net flow from node k1 to node k2 . More...
|
|
doublereal | flow (size_t k1, size_t k2) |
| The one-way flow from node k1 to node k2 . More...
|
|
bool | hasNode (size_t k) |
| True if a node for species k exists. More...
|
|
void | writeData (std::ostream &s) |
|
void | exportToDot (std::ostream &s) |
| Export the reaction path diagram. More...
|
|
void | add (ReactionPathDiagram &d) |
|
SpeciesNode * | node (size_t k) |
|
Path * | path (size_t k1, size_t k2) |
|
Path * | path (size_t n) |
|
size_t | nPaths () |
|
size_t | nNodes () |
|
void | addNode (size_t k, const std::string &nm, doublereal x=0.0) |
|
void | displayOnly (size_t k=npos) |
|
void | linkNodes (size_t k1, size_t k2, size_t rxn, doublereal value, std::string legend="") |
|
void | include (const std::string &aaname) |
|
void | exclude (const std::string &aaname) |
|
void | include (std::vector< std::string > &names) |
|
void | exclude (std::vector< std::string > &names) |
|
std::vector< std::string > & | included () |
|
std::vector< std::string > & | excluded () |
|
std::vector< size_t > | species () |
|
vector_int | reactions () |
|
void | findMajorPaths (doublereal threshold, size_t lda, doublereal *a) |
|
void | setFont (const std::string &font) |
|
Reaction path diagrams (graphs).
Definition at line 162 of file ReactionPath.h.
◆ ReactionPathDiagram()
◆ ~ReactionPathDiagram()
Destructor.
Deletes all nodes and paths in the diagram.
Definition at line 106 of file ReactionPath.cpp.
◆ maxFlow()
The largest one-way flow value in any path.
Definition at line 173 of file ReactionPath.h.
◆ netFlow()
doublereal netFlow |
( |
size_t |
k1, |
|
|
size_t |
k2 |
|
) |
| |
|
inline |
◆ flow()
doublereal flow |
( |
size_t |
k1, |
|
|
size_t |
k2 |
|
) |
| |
|
inline |
◆ hasNode()
◆ writeData()
void writeData |
( |
std::ostream & |
s | ) |
|
◆ exportToDot()
void exportToDot |
( |
std::ostream & |
s | ) |
|
Export the reaction path diagram.
This method writes to stream s
the commands for the 'dot' program in the GraphViz
package from AT&T. (GraphViz may be downloaded from www.graphviz.org.)
To generate a postscript reaction path diagram from the output of this method saved in file paths.dot, for example, give the command:
dot -Tps paths.dot > paths.ps
doublereal dot(InputIter x_begin, InputIter x_end, InputIter2 y_begin)
Function that calculates a templated inner product.
To generate a GIF image, replace -Tps with -Tgif
Definition at line 197 of file ReactionPath.cpp.
References ReactionPathDiagram::flow(), SpeciesNode::name, ReactionPathDiagram::netFlow(), Cantera::npos, and SpeciesNode::visible.
◆ add()
◆ node()
◆ path() [1/2]
Path * path |
( |
size_t |
k1, |
|
|
size_t |
k2 |
|
) |
| |
|
inline |
◆ path() [2/2]
◆ nPaths()
◆ nNodes()
◆ addNode()
void addNode |
( |
size_t |
k, |
|
|
const std::string & |
nm, |
|
|
doublereal |
x = 0.0 |
|
) |
| |
◆ displayOnly()
void displayOnly |
( |
size_t |
k = npos | ) |
|
|
inline |
◆ linkNodes()
void linkNodes |
( |
size_t |
k1, |
|
|
size_t |
k2, |
|
|
size_t |
rxn, |
|
|
doublereal |
value, |
|
|
std::string |
legend = "" |
|
) |
| |
◆ include() [1/2]
void include |
( |
const std::string & |
aaname | ) |
|
|
inline |
◆ exclude() [1/2]
void exclude |
( |
const std::string & |
aaname | ) |
|
|
inline |
◆ include() [2/2]
void include |
( |
std::vector< std::string > & |
names | ) |
|
|
inline |
◆ exclude() [2/2]
void exclude |
( |
std::vector< std::string > & |
names | ) |
|
|
inline |
◆ included()
std::vector< std::string > & included |
( |
| ) |
|
|
inline |
◆ excluded()
std::vector< std::string > & excluded |
( |
| ) |
|
|
inline |
◆ species()
std::vector< size_t > species |
( |
| ) |
|
◆ reactions()
◆ findMajorPaths()
void findMajorPaths |
( |
doublereal |
threshold, |
|
|
size_t |
lda, |
|
|
doublereal * |
a |
|
) |
| |
◆ setFont()
void setFont |
( |
const std::string & |
font | ) |
|
|
inline |
◆ title
◆ bold_color
◆ normal_color
◆ dashed_color
◆ element
◆ m_font
◆ threshold
◆ bold_min
◆ dashed_max
◆ label_min
◆ x_size
◆ y_size
◆ name
◆ dot_options
◆ flow_type
◆ scale
◆ arrow_width
◆ show_details
◆ arrow_hue
◆ m_flxmax
◆ m_paths
std::map<size_t, std::map<size_t, Path*> > m_paths |
|
protected |
◆ m_nodes
◆ m_pathlist
std::vector<Path*> m_pathlist |
|
protected |
◆ m_include
std::vector<std::string> m_include |
|
protected |
◆ m_exclude
std::vector<std::string> m_exclude |
|
protected |
◆ m_speciesNumber
std::vector<size_t> m_speciesNumber |
|
protected |
◆ m_rxns
std::map<size_t, int> m_rxns |
|
protected |
◆ m_local
The documentation for this class was generated from the following files: