simple internal calcium concentration
Posted: Mon Jun 02, 2008 6:35 pm
Hi,
I've been trying to get my code for internal calcium concentration to work. It should be really simple, but for some reason, it's not working. Even though there is plenty of inward calcium current, cai won't budge from the C0 value (which is kind of like cai0, but not; it's the "background [ca]"). C0=0.5e-3 mM. Cai is initialized to the same value as C0. There is no error when compiling or when running hoc code that uses this mechanism.
I have checked the units and conversion factors. I did a little test in MATLAB to see if the equation was the problem. In MATLAB cai changes, but I used a sin wave to approximate ica.
Something I noticed is that cai = C0, not cai0, at initialization if cai0 and C0 are set to different things, but this makes sense if initialization brings cai to steady state and not to the initial value. So what's wrong here?
gabrielle
I've been trying to get my code for internal calcium concentration to work. It should be really simple, but for some reason, it's not working. Even though there is plenty of inward calcium current, cai won't budge from the C0 value (which is kind of like cai0, but not; it's the "background [ca]"). C0=0.5e-3 mM. Cai is initialized to the same value as C0. There is no error when compiling or when running hoc code that uses this mechanism.
I have checked the units and conversion factors. I did a little test in MATLAB to see if the equation was the problem. In MATLAB cai changes, but I used a sin wave to approximate ica.
Something I noticed is that cai = C0, not cai0, at initialization if cai0 and C0 are set to different things, but this makes sense if initialization brings cai to steady state and not to the initial value. So what's wrong here?
Code: Select all
NEURON
{
SUFFIX cainT
USEION ca READ ica WRITE cai
RANGE tau, F, L, C0
}
UNITS
{
(mA) = (milliamp)
(mV) = (millivolt)
(mol) = (1)
(molar) = (mol/liter)
(mM) = (millimolar)
(S) = (mho)
(uS) = (microS)
(mJ) = (millijoule)
(um) = (micrometer)
pi = (pi) (1)
}
PARAMETER
{
F = 0 (mM/mA)
C0 = 0 (mM)
}
ASSIGNED
{
ica (mA/cm2)
tau (ms)
L (um)
diam (um)
}
STATE
{
cai (mM)
}
INITIAL
{
cai = cai0
}
BREAKPOINT
{
SOLVE state_change METHOD cnexp
}
DERIVATIVE state_change
{
cai' = (-(F*ica*pi*diam*L*(1e-8))+C0-cai)/tau
: F is not Faraday
}