Currents
Current refer to the part of the membrane currents due to mechanisms. Meaning
the represent the rate at which charge crosses the membrane, e.g. due to ions
passing through ion channels. In Figure 1 we show the electrical circuit for a
couple of segments near a branch point. The effect of the capacitor (when
present) is handled by NEURON internally. In MOD files we compute the current
represented by the white box, labeled I
. This total current is the sum of
one current per mechanism. The current per mechanism in turn is the sum of
non-specific currents and ion currents, see Figure 2.
There’s a total current, required by the cable equation, which is discussed here. The rate at which ions cross the membrane, called ion currents, can be computed for individual ions, separately. Please check the documentation on Ions.
NMODL Keywords
NONSPECIFIC_CURRENT
A nonspecific current is how an additive current contribution is expressed that’s not accociated with any specific ion. It has the following syntax
NEURON {
NONSPECIFIC_CURRENT <name>
}
We’ll assume the name is i1
.
Since it needs to be assigned a value in the MOD file, it needs to also be listed in the ASSIGNED
block, e.g. as follows (units show are for a density mechanism).
ASSIGNED {
<name> (mA/cm2)
}
The nonspecific current is local to the mechanism and can be stored as a regular range variable.
The generated code must ensure the following:
The total current contribution is updated by
i1
.Continue with the remaining current related computations, such as the finite difference for computing
dI/dv
.