units check

The basics of how to develop, test, and use models.
Post Reply
ahmed.hamzah
Posts: 49
Joined: Thu Jun 07, 2018 10:57 am

units check

Post 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
}
ted
Site Admin
Posts: 6286
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: units check

Post 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?
Post Reply