Page 1 of 1

units check

Posted: Wed Jul 11, 2018 8:00 pm
by ahmed.hamzah
I am working on the kcumst.mod for Na/k pump but I am wondering if someone can help me check the unit in the following file that I found it :

NEURON {
SUFFIX kcumst
USEION k READ ik WRITE ki
RANGE tau
}

UNITS {
(mA) = (milliamp)
(mol) = (1)
(molar) = (mol/liter)
(mM) = (millimolar)
(uM) = (micromolar)
(um) = (micrometer)
FARADAY = (faraday) (coulombs)
}

PARAMETER {
tau = 50(ms) : AB soma; 300 ms for PD soma
C0 = 140 (mM)
}

ASSIGNED {
ik (mA/cm2)
ko0(mM)
diam (um)
}

STATE {
ki (mM)
}
INITIAL {
ki = C0
}


BREAKPOINT {
SOLVE states METHOD cnexp
}

DERIVATIVE states {
ki' = -(1e4)*2*ik/(FARADAY*diam) + (C0 - ki)/tau
}

Re: units check

Posted: Thu Jul 12, 2018 5:40 pm
by ted
In the directory that contains the mod file,
execute the command
modlunit filename
where filename is the name of the mod file. What is modlunit's output?