-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Identify flow devices and walls in graphviz
reactor network illustrations
#212
Comments
I have been a bit out of the loop in the last couple of months, but I believe this is first of all a question of design choice. In classical graph terminology, when I introduced the visualization, I envisioned the flow devices and the walls as "edges" that each connect two "nodes" that are reactors or reservoirs. So now they are represented as arrows of different shape and color. This way, the direction of both material and energy flow can be indicated relatively easily. Their main property (the amount of flow) is still displayed. Having them represented as nodes could imo quickly lead to very cluttered networks, especially since there are quite a few scenarios conceivable where two reactors have a multitude of connections to one another. But I am happy to hear your arguments on this. |
@Naikless ... thanks for your comments. I think that using flow devices and walls as 'edges' to reduce clutter is a fair argument, and I will update my feature request on top accordingly. I had not paid close attention to #180 earlier, but came across some of the visualizations while I was working on Cantera/cantera#1765 (which fixes a problem with |
graphviz
reactor network illustrationsgraphviz
reactor network illustrations
@speth ... reposting from your review from Cantera/cantera#1788
This is indeed an alternative viewpoint. At the moment, I am still leaning towards @Naikless's argument. There are cases where the implementation becomes a little murky (example: two flow controllers in parallel between two reactors), but I'm not sure that we need to accommodate these edge cases; ensuring that all arrows are accounted for is another solution. |
Abstract
The recently added reactor network visualization (see #180) does a great job visualizing reactor networks, but omits blocks representing flow devices (Valve
,MassFlowController
, etc) and walls (Wall
). Having those connectors visualized would ensure a better understanding of a network setup. As an aside, the "Gas Splitter" and "Gas Mixer" blocks in the CHEMKIN example shown in #180 may be a loose equivalent.Edit: Based on feedback, I am amending this feature request to simply display names of walls and flow devices along the edges.
Motivation
Describe the need for the proposed change:
ReactorNet.draw()
methodPossible Solutions
Add additional blocks representing flow devices to the implementation introduced by @Naikless in Cantera/cantera#1624.
References
graphviz
#180The text was updated successfully, but these errors were encountered: