Page 1 of 1

another units question

Posted: Wed Aug 16, 2006 2:08 pm
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)
}]

Posted: Thu Aug 17, 2006 9:57 am
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.