18 "Sends out Ra and Vm on each timestep, on the distal end"
19 " of a compartment. This end should be pointed away from the"
20 " soma. Mathematically the same as proximalOut, but gives"
21 " an orientation to the dendrite and helps traversal.");
27 "Sends out Ra and Vm on each timestep, on the proximal"
28 " end of a compartment. That is, this end should be "
29 " pointed toward the soma. Mathematically the same as raxialOut"
30 " but provides a logical orientation of the dendrite."
31 " One can traverse proximalOut messages to get to the soma." );
37 " Sends out Ra and Vm to compartments (typically spines) on the"
38 " curved surface of a cylinder. Ra is set to nearly zero,"
39 " since we assume that the resistance from axis to surface is"
58 "Expects Ra and Vm from other compartment. This is a special case when"
59 " other compartments are evenly distributed on a spherical compartment.",
64 "Expects Ra and Vm from other compartment. This is a special case when"
65 " other compartments are evenly distributed on the curved surface"
66 " of the cylindrical compartment, so we assume that the"
67 " cylinder does not add any further resistance.",
72 "Expects Ra and Vm from other compartment.",
77 "Expects Ra from other compartment.",
87 static Finfo* distalShared[] =
93 static Finfo* proximalShared[] =
100 "This is a shared message between symmetric compartments.\n"
101 "It goes from the proximal end of the current compartment to\n"
102 "distal end of the compartment closer to the soma.\n",
103 proximalShared,
sizeof( proximalShared ) /
sizeof(
Finfo* )
107 "This is a shared message between symmetric compartments.\n"
108 "It goes from the distal end of the current compartment to the \n"
109 "proximal end of one further from the soma. \n"
110 "The Ra values collected from children and\n"
111 "sibling nodes are used for computing the equivalent resistance \n"
112 "between each pair of nodes using star-mesh transformation.\n"
113 "Mathematically this is the same as the proximal message, but\n"
114 "the distinction is important for traversal and clarity.\n",
115 distalShared,
sizeof( distalShared ) /
sizeof(
Finfo* )
119 "This is a shared message between symmetric compartments.\n"
120 "Conceptually, this goes from the proximal end of the current \n"
121 "compartment to the proximal end of a sibling compartment \n"
122 "on a branch in a dendrite. However,\n"
123 "this works out to the same as a 'distal' message in terms of \n"
124 "equivalent circuit. The Ra values collected from siblings \n"
125 "and parent node are used for \n"
126 "computing the equivalent resistance between each pair of\n"
127 "nodes using star-mesh transformation.\n",
128 distalShared,
sizeof( distalShared ) /
sizeof(
Finfo* )
131 static Finfo* sphereShared[] = {
137 "This is a shared message between a spherical compartment \n"
138 "(typically soma) and a number of evenly spaced cylindrical \n"
139 "compartments, typically primary dendrites.\n"
140 "The sphere contributes the usual Ra/2 to the resistance\n"
141 "between itself and children. The child compartments \n"
142 "do not connect across to each other\n"
143 "through sibling messages. Instead they just connect to the soma\n"
144 "through the 'proximalOnly' message\n",
145 sphereShared,
sizeof( sphereShared )/
sizeof(
Finfo* )
147 static Finfo* cylinderShared[] = {
153 "This is a shared message between a cylindrical compartment \n"
154 "(typically a dendrite) and a number of evenly spaced child \n"
155 "compartments, typically dendritic spines, protruding from the\n"
156 "curved surface of the cylinder. We assume that the resistance\n"
157 "from the cylinder curved surface to its axis is negligible.\n"
158 "The child compartments do not need to connect across to each \n"
159 "other through sibling messages. Instead they just connect to the\n"
160 "parent dendrite through the 'proximalOnly' message\n",
161 cylinderShared,
sizeof( cylinderShared )/
sizeof(
Finfo* )
164 static Finfo* proximalOnlyShared[] = {
169 "This is a shared message between a dendrite and a parent\n"
170 "compartment whose offspring are spatially separated from each\n"
171 "other. For example, evenly spaced dendrites emerging from a soma\n"
172 "or spines emerging from a common parent dendrite. In these cases\n"
173 "the sibling dendrites do not need to connect to each other\n"
174 "through 'sibling' messages. Instead they just connect to the\n"
175 "parent compartment (soma or dendrite) through this message\n",
176 proximalOnlyShared,
sizeof( proximalOnlyShared )/
sizeof(
Finfo* )
180 static Finfo* symCompartmentFinfos[] =
206 static string doc[] =
208 "Name",
"SymCompartment",
209 "Author",
"Upi Bhalla; updated and documented by Subhasis Ray",
210 "Description",
"SymCompartment object, for branching neuron models. In symmetric\n"
211 "compartments the axial resistance is equally divided on two sides of\n"
212 "the node. The equivalent circuit of the passive compartment becomes:\n"
213 "(NOTE: you must use a fixed-width font like Courier for correct rendition of the diagrams below)::\n"
216 " A-/\\/\\/\\_____/\\/\\/\\-- C \n"
233 "In case of branching, the B-C part of the parent's axial resistance\n"
234 "forms a Y with the A-B part of the children::\n\n"
244 " A-----/\\/\\/\\-----/\\/\\/\\------|C \n"
254 "As per basic circuit analysis techniques, the C node is replaced using\n"
255 "star-mesh transform. This requires all sibling compartments at a\n"
256 "branch point to be connected via 'sibling' messages by the user (or\n"
257 "by the cell reader in case of prototypes). For the same reason, the\n"
258 "child compartment must be connected to the parent by\n"
259 "distal-proximal message pair. The calculation of the\n"
260 "coefficient for computing equivalent resistances in the mesh is done\n"
268 symCompartmentFinfos,
269 sizeof( symCompartmentFinfos ) /
sizeof(
Finfo* ),
271 doc,
sizeof(doc)/
sizeof(
string)
361 double invR = 2.0 / ( Ra +
Ra_ );
364 Im_ += ( Vm -
Vm_ ) * invR;
369 double invR = 2.0 / Ra;
372 Im_ += ( Vm -
Vm_ ) * invR;
static SrcFinfo2< double, double > * cylinderOut()
static SrcFinfo2< double, double > * proximalOut()
void vInitProc(const Eref &e, ProcPtr p)
void raxialSym(double Ra, double Vm)
void vReinit(const Eref &e, ProcPtr p)
static const Cinfo * initCinfo()
void vReinit(const Eref &e, ProcPtr p)
void vInitReinit(const Eref &e, ProcPtr p)
void raxialSphere(double Ra, double Vm)
static const Cinfo * symCompartmentCinfo
void sumRaxial(double Ra)
static const Cinfo * initCinfo()
void raxialCylinder(double Ra, double Vm)
static SrcFinfo2< double, double > * distalOut()
static SrcFinfo1< double > * sumRaxialOut()