Below is the NEURON block for the my mechanism:
Code: Select all
NEURON {
SUFFIX SK
USEION k READ ek WRITE ik
USEION ca READ cai
RANGE gbar, g, ik
}
Code: Select all
NEURON {
SUFFIX SK
USEION k READ ek WRITE ik
USEION ca READ cai
RANGE gbar, g, ik
}
The units that NEURON assumes for time, membrane potential, ionic equilibrium potentials, current density, etc. are what they are so that users can write code without always having to be concerned about scale factors--as long as they stick with the standard units that NEURON assumes.sgratiy wrote:I was able to changed the units of conductance g to (mS/cm2), however, I cannot change the units of ik to (microamp/cm2). The modlunit complains that the ik must be in (milliamp/cm2). Why can't I control the units of distributed current? I prefer measuring distributed current in milliamp/cm2. Is it possible to do?
Code: Select all
NEURON {
SUFFIX SK
USEION k READ ek WRITE ik
USEION ca READ cai
RANGE gbar, g, ik
}
Code: Select all
: ik = (1e-3)*g*(v-ek)
i = g*(v-ek)
ik = (1e-3)*i