Skip to content
Graphviz (DOT) templates

Chemistry — Hydrogen Fuel Cell

Electricity from the reaction of hydrogen and oxygen.

Template previewGraphviz (DOT)
Rendering…

Make it your own.

digraph FuelCell {
  rankdir=LR;
  node [shape=box, style=rounded];
  "H2 at anode" -> "Oxidised: H2 -> 2H+ + 2e-";
  "Oxidised: H2 -> 2H+ + 2e-" -> "Electrons through circuit";
  "O2 at cathode" -> "Reduced: O2 + 4H+ + 4e- -> 2H2O";
  "Electrons through circuit" -> "Reduced: O2 + 4H+ + 4e- -> 2H2O";
}