compute nseg
Posted: Thu Aug 22, 2013 2:33 am
I don't understand the following line from fixnseg.hoc
I want to set the distance between adjacent nodes to 10% of AC length constant at 100 Hz. For a compartment of length 60 um, diam 3 um, Ra 100 um and cm =1uf/cm2,I get the distance between adjacent nodes to be 488(AC length constant at 100 Hz) *0.1 = 48.8 um. I expect the the same spacing between internal nodes even for longer compartments. But in NEURON, using the function fixnseg.hoc, nseg for the compartment mentioned above for lengths of 60 and 120 um are 3 and 3 respectively which means the spacing between the internal nodes are big in 120 um compartment than in 60 um counterpart. Any reasons?nseg = int((L/(d_lambda*lambda_f(freq))+0.9)/2)*2 + 1