I made a model that contains 3-section.and outputs of code are
injected current, maximum amplitude of total ionic current in soma, maximum level of soma.v(0.5) during current injection
for these code, i used dt=0.002 and second number:
for (x,0) totalarea +=area(x)
Itotal=(I_ionic+I_leak)*totalarea/100
run2() is my "proc" to run code. the result is
Code: Select all
oc>forall nseg=3
oc>run2(-0.0897)
Iinj= -0.0897 abs(Itotal)=0.36043425 max(soma.v(0.5))=-43.519452
oc>forall nseg=7
oc>run2(-0.0897)
Iinj= -0.0897 abs(Itotal)=0.67812746 max(soma.v(0.5))=-43.679981
oc>forall nseg=15
oc>run2(-0.0897)
Iinj= -0.0897 abs(Itotal)=1.0150751 max(soma.v(0.5))=-43.705834
oc>forall nseg=19
oc>run2(-0.0897)
Iinj= -0.0897 abs(Itotal)=1.3440978 max(soma.v(0.5))=-43.708511
oc>forall nseg=23
oc>run2(-0.0897)
Iinj= -0.0897 abs(Itotal)=1.3530679 max(soma.v(0.5))=-43.709914
oc>forall nseg=27
oc>run2(-0.0897)
Iinj= -0.0897 abs(Itotal)=1.6832776 max(soma.v(0.5))=-43.710741
I define nseg value before define channel density.
I expect, numbers converge to a specific value, but as i increase nseg i get different value!
Why it happens?