another units question

NMODL and the Channel Builder.
Post Reply
MH

another units question

Post by MH »

If I want to use the Universal Gas Constant in units of mJ/mol-K instead of (k-mole) (joule/degC), which is the default unit... then can i just define R in the units block using R = (mJ/mol-K)?
MH

[UNITS {
(mV) = (millivolt)
(nA) = (nanoamp)
(molar) = (mole/litre)
(mM) = (millimolar)
(uS) = (microsiemens)
FARADAY = (faraday) (coulombs)
R = (mJ/ mol * K)
}]
ted
Site Admin
Posts: 6395
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Post by ted »

Try it, then use modlunit to test your mod file for units consistency. If modlunit complains,
revise the units declaration of R and test again until you get it right.

Note: if you're using MSWin, first make sure that you're using the latest alpha version of
NEURON. Here's the installer
http://www.neuron.yale.edu/ftp/neuron/v ... -setup.exe
This fixes a bug that cropped up in the standard distribution, which interfered with modlunit's
error reporting.
Post Reply