33template<> ReactionPathDiagramCabinet* ReactionPathDiagramCabinet::s_storage = 0;  
 
   36template<> KineticsCabinet* KineticsCabinet::s_storage;  
 
   56            bool out = ReactionPathDiagramCabinet::at(handle)->show_details;
 
   67            bool show_details_ = (show_details != 0);
 
   68            ReactionPathDiagramCabinet::at(handle)->show_details = show_details_;
 
   79            return ReactionPathDiagramCabinet::at(handle)->threshold;
 
   89            ReactionPathDiagramCabinet::at(handle)->threshold = threshold;
 
  100            return ReactionPathDiagramCabinet::at(handle)->bold_min;
 
  110            ReactionPathDiagramCabinet::at(handle)->bold_min = bold_min;
 
  121            return ReactionPathDiagramCabinet::at(handle)->dashed_max;
 
  131            ReactionPathDiagramCabinet::at(handle)->dashed_max = dashed_max;
 
  142            return ReactionPathDiagramCabinet::at(handle)->label_min;
 
  152            ReactionPathDiagramCabinet::at(handle)->label_min = label_min;
 
  163            string out = ReactionPathDiagramCabinet::at(handle)->bold_color;
 
  165            return int(out.size()) + 1;
 
  175            ReactionPathDiagramCabinet::at(handle)->bold_color = bold_color;
 
  186            string out = ReactionPathDiagramCabinet::at(handle)->normal_color;
 
  188            return int(out.size()) + 1;
 
  198            ReactionPathDiagramCabinet::at(handle)->normal_color = normal_color;
 
  209            string out = ReactionPathDiagramCabinet::at(handle)->dashed_color;
 
  211            return int(out.size()) + 1;
 
  221            ReactionPathDiagramCabinet::at(handle)->dashed_color = dashed_color;
 
  232            string out = ReactionPathDiagramCabinet::at(handle)->dot_options;
 
  234            return int(out.size()) + 1;
 
  244            ReactionPathDiagramCabinet::at(handle)->dot_options = dot_options;
 
  251    int32_t 
rdiag_font(int32_t handle, int32_t bufLen, 
char* buf)
 
  255            string out = ReactionPathDiagramCabinet::at(handle)->m_font;
 
  257            return int(out.size()) + 1;
 
  267            ReactionPathDiagramCabinet::at(handle)->setFont(font);
 
  278            return ReactionPathDiagramCabinet::at(handle)->scale;
 
  288            ReactionPathDiagramCabinet::at(handle)->scale = 
scale;
 
  299            string out = ReactionPathDiagramCabinet::at(handle)->flowType();
 
  301            return int(out.size()) + 1;
 
  311            ReactionPathDiagramCabinet::at(handle)->setFlowType(fType);
 
  322            return ReactionPathDiagramCabinet::at(handle)->arrow_width;
 
  332            ReactionPathDiagramCabinet::at(handle)->arrow_width = arrow_width;
 
  343            string out = ReactionPathDiagramCabinet::at(handle)->title;
 
  345            return int(out.size()) + 1;
 
  355            ReactionPathDiagramCabinet::at(handle)->title = title;
 
  366            ReactionPathDiagramCabinet::at(handle)->add(ReactionPathDiagramCabinet::at(d));
 
  377            ReactionPathDiagramCabinet::at(handle)->displayOnly(k);
 
  388            string out = ReactionPathDiagramCabinet::at(handle)->getDot();
 
  390            return int(out.size()) + 1;
 
  400            string out = ReactionPathDiagramCabinet::at(handle)->getData();
 
  402            return int(out.size()) + 1;
 
  412            ReactionPathDiagramCabinet::at(handle)->build();
 
  423            string out = ReactionPathDiagramCabinet::at(handle)->getLog();
 
  425            return int(out.size()) + 1;
 
  431    int32_t 
rdiag_findMajor(int32_t handle, 
double threshold, int32_t lda, int32_t aLen, 
double* a)
 
  435            ReactionPathDiagramCabinet::at(handle)->findMajorPaths(threshold, lda, a);
 
  446            ReactionPathDiagramCabinet::del(handle);
 
  458            return ReactionPathDiagramCabinet::size();
 
Classes for reaction path analysis.
Template for classes to hold pointers to objects.
CTRDIAG - Generated CLib Cantera interface library.
int32_t rdiag_findMajor(int32_t handle, double threshold, int32_t lda, int32_t aLen, double *a)
Undocumented.
double rdiag_boldThreshold(int32_t handle)
Minimum relative flux for bold lines.
int32_t rdiag_newReactionPathDiagram(int32_t kin, const char *element)
Create a new reaction path diagram.
int32_t rdiag_add(int32_t handle, int32_t d)
Add fluxes from other ReactionPathDiagram to this diagram.
int32_t rdiag_dotOptions(int32_t handle, int32_t bufLen, char *buf)
Options for the 'dot' program.
double rdiag_threshold(int32_t handle)
Threshold for the minimum flux relative value that will be plotted.
int32_t rdiag_setDashedColor(int32_t handle, const char *dashed_color)
Color for dashed lines.
int32_t rdiag_font(int32_t handle, int32_t bufLen, char *buf)
Reaction path diagram font.
int32_t rdiag_setTitle(int32_t handle, const char *title)
Reaction path diagram title.
int32_t rdiag_del(int32_t handle)
Delete ReactionPathDiagram object.
int32_t rdiag_title(int32_t handle, int32_t bufLen, char *buf)
Reaction path diagram title.
int32_t rdiag_build(int32_t handle)
Build the reaction path diagram.
int32_t rdiag_setDotOptions(int32_t handle, const char *dot_options)
Options for the 'dot' program.
int32_t rdiag_getDot(int32_t handle, int32_t bufLen, char *buf)
Export string in dot format.
int32_t rdiag_setBoldColor(int32_t handle, const char *bold_color)
Color for bold lines.
int32_t rdiag_setBoldThreshold(int32_t handle, double bold_min)
Minimum relative flux for bold lines.
double rdiag_labelThreshold(int32_t handle)
Minimum relative flux for labels.
int32_t rdiag_setNormalThreshold(int32_t handle, double dashed_max)
Maximum relative flux for dashed lines.
int32_t rdiag_cabinetSize()
Return size of ReactionPathDiagram storage.
int32_t rdiag_boldColor(int32_t handle, int32_t bufLen, char *buf)
Color for bold lines.
int32_t rdiag_getData(int32_t handle, int32_t bufLen, char *buf)
Get a (roughly) human-readable representation of the reaction path diagram.
int32_t rdiag_setShowDetails(int32_t handle, int32_t show_details)
Boolean flag to show details.
double rdiag_arrowWidth(int32_t handle)
The arrow width.
double rdiag_normalThreshold(int32_t handle)
Maximum relative flux for dashed lines.
int32_t rdiag_setThreshold(int32_t handle, double threshold)
Threshold for the minimum flux relative value that will be plotted.
int32_t rdiag_flowType(int32_t handle, int32_t bufLen, char *buf)
Get the way flows are drawn.
int32_t rdiag_setArrowWidth(int32_t handle, double arrow_width)
The arrow width.
int32_t rdiag_displayOnly(int32_t handle, int32_t k)
Include only species and fluxes that are directly connected to a species.
double rdiag_scale(int32_t handle)
The scaling factor for the fluxes.
int32_t rdiag_getLog(int32_t handle, int32_t bufLen, char *buf)
Get logging messages generated while building the reaction path diagram.
int32_t rdiag_setFlowType(int32_t handle, const char *fType)
Get the way flows are drawn.
int32_t rdiag_setNormalColor(int32_t handle, const char *normal_color)
Color for normal-weight lines.
int32_t rdiag_showDetails(int32_t handle)
Boolean flag to show details.
int32_t rdiag_setScale(int32_t handle, double scale)
The scaling factor for the fluxes.
int32_t rdiag_setFont(int32_t handle, const char *font)
Set name of the font used.
int32_t rdiag_normalColor(int32_t handle, int32_t bufLen, char *buf)
Color for normal-weight lines.
int32_t rdiag_setLabelThreshold(int32_t handle, double label_min)
Minimum relative flux for labels.
int32_t rdiag_dashedColor(int32_t handle, int32_t bufLen, char *buf)
Color for dashed lines.
size_t copyString(const string &source, char *dest, size_t length)
Copy the contents of a string into a char array of a given length.
void scale(InputIter begin, InputIter end, OutputIter out, S scale_factor)
Multiply elements of an array by a scale factor.
Namespace for the Cantera kernel.
shared_ptr< ReactionPathDiagram > newReactionPathDiagram(shared_ptr< Kinetics > kin, const string &element)
Create a new reaction path diagram.
T handleAllExceptions(T ctErrorCode, T otherErrorCode)
Exception handler used at language interface boundaries.
Contains declarations for string manipulation functions within Cantera.