home
download
class models
standard gui
custom gui
models
user guide
problems
  previous | up | next

Unit

derived Unit expressed in terms of the quantities: M, L, T, charge, temperature, Avagadro's number and ten

Units for intercomponent consistency, mainly for SpatchObject components. A Unit is defined in terms of powers of the elementary quantities mass M (Kg), length L (m), time T (s), charge C (coulombs), temperature K (k), Avagradro's number Navagadro, (~ 6e23) the electronic charge, elec (coluombs) ten, and a floating coefficient f. The variables in the Unit object are the powers of these quantities.

For example, one volt is one joule per coulomb, which is one newton meter per coulomb or one kg m/s ^2/coulomb, so for a Volt Unit, M=1, L=2, s=-2, C=-1 and the rest are 0. For mV, one would also set the variable ten to -3.

A micromolarity Unit would have Navagadro=1, L=-3, and ten = -3 (-6 for micro, +3 for moles per liter instead of per cubic meter).

The dimensionless quantities Navagadro and ten are not strictly necessary but are provided for convenience. They make it easier to express quantities of the form Navagadro ^a * 10 ^b .

    field     type       contents / default value    
M integer 0 variable: M type: integer
L integer 0 variable: L type: integer
T integer 0 variable: T type: integer
C integer 0 variable: C type: integer
K integer 0 variable: K type: integer
Navagadro integer 0 variable: Navagadro type: integer
elec integer 0 variable: elec type: integer
ten integer 0 variable: ten type: integer
f double 1.0 variable: f type: double