Unit error, please help new user!
Posted: Wed Jun 06, 2007 3:07 pm
cai' = epsilon * (-ica - itt - kca * cai)
I get a unit error using modlunit with this equation
The previous primary expression with units: 6.02217+26 /m3-sec
is missing a conversion factor and should read:
(0.001)*()
at line 136 in file ./GPe.mod
cai' = epsilon * (-ica - itt - kca * cai)<<ERROR>>
I think this code may be helpful if anyone can figure out why there is this offset factor needed because my calculations show my equation to be correct.
UNITS {
(S) = (siemens)
(mV) = (millivolts)
(mA) = (milliamps)
(M) = (moles/liter)
(mC) = (millicoulombs)
}
epsilon = 1.0e-4 (M cm2/mC)
kca = 15.0 (mC/M s cm2)
I created mC as millicoulombs because I believe itt and ica are defaulted to mA/cm2 from this code
USEION ca READ eca WRITE ica
USEION tt READ ett WRITE itt VALENCE 2
cai is defined in M here
STATE { h n r sout siout cai (M) }
Also let me know if there is anything else i can post to make someone helping me easier or if there is a more standard format. Thank you in advance for your time.
I get a unit error using modlunit with this equation
The previous primary expression with units: 6.02217+26 /m3-sec
is missing a conversion factor and should read:
(0.001)*()
at line 136 in file ./GPe.mod
cai' = epsilon * (-ica - itt - kca * cai)<<ERROR>>
I think this code may be helpful if anyone can figure out why there is this offset factor needed because my calculations show my equation to be correct.
UNITS {
(S) = (siemens)
(mV) = (millivolts)
(mA) = (milliamps)
(M) = (moles/liter)
(mC) = (millicoulombs)
}
epsilon = 1.0e-4 (M cm2/mC)
kca = 15.0 (mC/M s cm2)
I created mC as millicoulombs because I believe itt and ica are defaulted to mA/cm2 from this code
USEION ca READ eca WRITE ica
USEION tt READ ett WRITE itt VALENCE 2
cai is defined in M here
STATE { h n r sout siout cai (M) }
Also let me know if there is anything else i can post to make someone helping me easier or if there is a more standard format. Thank you in advance for your time.