1. In an electronic device, a method of modeling a system comprising a plurality of chemical reactions, comprising the steps of: displaying a block diagram in a graphical user interface describing the system as a hierarchical network of interconnected blocks, each block representing one of a species participating in one of the chemical reactions and one of said chemical reactions in the system; and modifying a graphical layout of the block diagram