The MultiSection class would treat two sections as if they were a single section.
Does NEURON provide a easy way to handle thie matter?
Sure--don't break them apart in the first place.
Code: Select all
create dend
dend {pt3dclear()
pt3dadd(0,0,0,1)
pt3dadd(5,0,0,1)
pt3dadd(20,0,0,1)
}
There are only two reasons to break this into two sections.
1. If the two sections are to have different Ra. Unlike cm and ion channel densities, Ra is not
a "range variable"--it must have the same same value along the entire length of a section.
2. If something else, e.g. a point process or another section, must be attached to the junction
between dend1 and dend2. Connections can only be made to the 0 and 1 ends of a section,
or to its internal nodes. Internal nodes are located at (i+0.5)/nseg where i = 0..nseg-1,
where nseg is an integer > 0, so for complete freedom in attaching a point process to a
particular location it is sometimes necessary to break a section into two pieces. This also
prevents changing nseg from having the side-effect of moving a point process to a new
location (which would happen if the nseg change destroys the node to which the point
process was attached).
For the same reason it is best to connect sections only at their 0 or 1 nodes. Also, it
should be noted that
Code: Select all
create parent, child
parent L = 100
connect child(0), parent(0.5)
is not the same as
Code: Select all
create par0, par1, child
par0 L = 50
par1 L = 50
connect par1(0), par0(1)
connect child(0), par0(1)
The former attaches the 0 end of child straight to the internal node of parent, where all
of the membrane properties are lumped together. The latter separates the 0 end of child
from the internal nodes of par0 and par1 by the lumped axial resistances that lie between
the internal nodes of those sections and their nodes at 1 and 0, respectively.
So there's another reason not to connect a section to an internal node of its parent.
If joining the sections is not an acceptable option, then if you absolutely must have
uniform spacing of the points at which v is sampled, you can use the fact that NEURON's
solutions are second order accurate in space. This means that, given the values of v
computed at locations x0, x1, x2 . . . you can simply use linear interpolation between any
adjacent pair to find second order accurate values at intermediate positions.