This models is the same as in example 1, except that the definitions have been split out into several self-contained files. The files can be downloaded together as examples.zip.
The main file, included below, uses the
This defines a few components, then a network that uses them and a simulation to run it all. The HHCell component refers to channel types coming from the included hhmodels.xml file which in turn depends on hhcell.xml and hhchannel.xml.
The file hhchannel.xml contains complete definitions of a fairly general HH-style channel model with any number of gates based on the three standard types used in the original HH work.
As mentioned in example1, the numerics are too feeble to cope with this gate definition though, so a change of variables is employed instead:
The file hhcell.xml defines a simple cell model with some populations of HH channels.
A couple of spike generators.
And now the components themselves. These are the standard HH sodium and potassium channels (as used in Rallpack3).
Some miscellaneous iaf models.
Finally, a small collection of dimension definitions useful for things like the miscellaneous iaf cell definitions.