I'm trying to figure out exaclty which equation NEURON is solving to calculate the membrane potential of a single compartment model (only soma).
The reason for that is that I have created a dummy passive cell
soma { diam=10 L=10 Ra=1 cm=1 insert dummy insert pas g_pas=1 e_pas=0}
which receives input from exponential synapses with different weights (mod file attached at the end), and I'm using the membrane potential of the dummy cell (v) to reverse engineer what is the total synaptic input to that cell (Isyn=\sum wij*gj(t) is the input from cells j=1:N to cell i ).
Please note that I've modified the Expsyn so that
Code: Select all
BREAKPOINT {
SOLVE state METHOD cnexp
i=ww*g : instead of i = g*(v - e)
}
DERIVATIVE state {
g' = -g/tau
}
NET_RECEIVE(weight (uS)) {
g = g + 1/tau : instead of g = g + weight
ww=weight
}
Isyn=\sum wij*gj(t)=-(diam*L*PI/100)*vi(t) .
Assuming that the equation NEURON solves is of the format
cm dv/dt +Iion(t)= Isyn(t)
this doesn't make much sense.
Any help would be greatly appreciated.
Code: Select all
TITLE Dummy cell
UNITS {
(mA) = (milliamp)
(mV) = (millivolt)
(S) = (siemens)
}
NEURON {
SUFFIX dummy
RANGE myv, factor, iv, imyv
}
PARAMETER {
factor=-3.14159265 :// for diam=10, L=10
iv=0
imyv=0
}
STATE {
myv
}
ASSIGNED {
v (mV)
}
BREAKPOINT {
myv=factor*v
}
INITIAL {
v=iv
myv=imyv
}