Display Reactor Network

73 views
Skip to first unread message

Dudley Moore

unread,
Mar 11, 2025, 12:13:48 PM3/11/25
to Cantera Users' Group
The Mixing two Streams example has a code to display the actual reactor network, but I'm having issues getting it to display. The line of code is :

diagram = sim.draw(print_state=True, species="X")

Has anyone been able to get the diagram to display?
Message has been deleted

LGS

unread,
Mar 28, 2025, 4:46:00 PM3/28/25
to Cantera Users' Group
Hi Dudley,

I am assuming that you are using Cantera v3.1. Try diagram.view() after the line 'diagram = sim.draw(print_state=True, species="X")'.You can also save it using diagram.save('name.png'). In both cases, you will find the image in the current working directory as well.
Reply all
Reply to author
Forward
0 new messages