Reaction path analysis with Cantera and Graphviz

364 views
Skip to first unread message

Dan

unread,
May 21, 2015, 7:52:20 AM5/21/15
to canter...@googlegroups.com
Dear All,

I am trying to do a reaction path analysis to determine and visualize graphically, the decomposition of a primary fuel specie. I would like to see the percentages of the fuel or specie that has been consumed or produced through the different reaction channels after after a specific temperature is reached or amount of the specie has been consumed during it's autoignition or combustion event in Cantera. 
I have installed graphviz  and also tried to run the elemental flux example (rxnpath.py) in Cantera documentation to begin. After running the rxnpath,py script which is attached, I am unable to use the rxnpath.dot input file to generate a graphical image with graphviz. It seems I am not using the right command in the windows command line. 
Please can anyone who knows  help me to understand how this really work.

Thanks in advance.

Dan
 
rxnpath.py

Nick Curtis

unread,
May 21, 2015, 9:37:49 AM5/21/15
to canter...@googlegroups.com
What error do you get Dan?
That attached script works for me

I think you most likely forgot to add graphviz to your PATH.  You can test this by attempting to run 'dot -V' from the command line

Nick

Dan

unread,
May 21, 2015, 12:03:16 PM5/21/15
to canter...@googlegroups.com
Dear Nick
The command I use in windows command line is > dot -Tpng rxnpath.dot -o rxnpath.png and the error it spits out is:

'dot' is not recognized as an internal or external command,
operable program or batch file.

When I run   'dot -V' from the command line, I get same error as above.

I tried adding graphviz to my path by going through the directory  'system >advanced settings> environment variables> system variables>path>
 C:\Program Files (x86)\Intel\iCLS Client\; ...........C:\Program Files (x86)\Graphviz but the error was still the same.

Any idea of what I am not doing right? 

Dan

Bryan W. Weber

unread,
May 21, 2015, 1:27:33 PM5/21/15
to canter...@googlegroups.com
Dear Dan,

Where is the dot.exe file located? I suspect its in something like C:\Program Files (x86)\Graphiz\bin or something similar. Add the directory that contains the dot.exe file to your path, then restart your command window.

Bryan

Dan

unread,
May 21, 2015, 5:42:07 PM5/21/15
to canter...@googlegroups.com
Dear Bryan

Thanks for noticing the omission in my directory. It worked !!!

Regards

Dan
Reply all
Reply to author
Forward
0 new messages