unit inconsistencies between my files
Posted: Tue Aug 01, 2006 5:55 pm
I looked at the default passive channel mod file and noticed that the units were in mA/cm2 for current, S/cm2 for conductance, and mV for voltage; however, I don't see how this is consistent with the default setting for capacitance which is microfarads/mS. I then created my own passive channel with the units set for i, g, and v as uA/cm2, mS/cm2, and mV respectively and compared the default pas compared to my own passive channel, each with g=.0001, in a cell containing only the distributed passive channels and an IClamp injecting a pulse of current amp=1. When compared to the default pas channel, the responses obtained were exactly the same: raising the voltage from its resting potential at -70mV to approximatley -64mV with a time constant of 10 msec. In the case of g=.0001mS/cm2 as in the revised pas channel, the voltage should have time constant of 10 sec, yet instead it still changes over about 0.1 sec.
I am hoping that you could help clarify how NEURON accounts for units changes and why the voltage of the cell responds the same when conductance is the same value but in S or mS. Attached below are the files I have written to test this.
run using:
Thanks,
Char
I am hoping that you could help clarify how NEURON accounts for units changes and why the voltage of the cell responds the same when conductance is the same value but in S or mS. Attached below are the files I have written to test this.
Code: Select all
TITLE adjusted passive membrane channel
UNITS {
(mV) = (millivolt)
(uA) = (microamp)
(mS)=(millisiemens)
}
NEURON {
SUFFIX mypas
NONSPECIFIC_CURRENT i
RANGE g, e
}
PARAMETER {
g = .0001 (mS/cm2) <0,1e9>
e = -70 (mV)
}
ASSIGNED {v (mV) i (uA/cm2)}
BREAKPOINT {
i = g*(v - e)
}
run using:
Code: Select all
load_file ("nrngui.hoc")
create soma
access soma
insert mypas
g_mypas=1e-4
objref p
p=new IClamp(0.5)
p.del=100
p.dur=100
p.amp=1
c=1
tstop=300
forall psection()
Char