Class: Labimotion::Units
- Inherits:
-
Object
- Object
- Labimotion::Units
- Defined in:
- lib/labimotion/utils/units.rb
Overview
Converter State
Constant Summary collapse
- FIELDS =
[ { "type": "numeric", "field": "acceleration", "label": "Acceleration", "default": "", "position": 10, "placeholder": "acceleration", "units": [{ "key": "mm_s2", "label": "mm/s<sup>2</sup>" }] }, { "type": "numeric", "field": "agitation", "label": "Agitation", "default": "", "position": 20, "placeholder": "agitation", "units": [{ "key": "rpm", "label": "rpm" }] }, { "type": "numeric", "field": "amount_enzyme", "label": "Amount enzyme as μmol/min", "default": "", "position": 30, "placeholder": "amount enzyme as μmol/min", "units": [ { "key": "u", "label": "U", "nm": 1 }, { "key": "mu", "label": "mU", "nm": 1000 }, { "key": "kat", "label": "kat", "nm": 1.667e-8 }, { "key": "mkat", "label": "mkat", "nm": 1.667e-5 }, { "key": "µkat", "label": "µkat", "nm": 0.01667 }, { "key": "nkat", "label": "nkat", "nm": 16.67 } ] }, { "type": "numeric", "field": "amount_substance", "label": "Amount of substance", "default": "", "position": 35, "placeholder": "amount of substance", "units": [ { "key": "mol", "label": "mol", "nm": 1 }, { "key": "mmol", "label": "mmol", "nm": 1000 }, { "key": "umol", "label": "µmol", "nm": 1000000 }, { "key": "nmol", "label": "nmol", "nm": 1.0e9 }, { "key": "pmol", "label": "pmol", "nm": 1.0e12 } ] }, { "type": "numeric", "field": "molarity", "label": "Chem. concentration (Molarity)", "default": "", "position": 40, "placeholder": "molarity", "units": [ { "key": "mol_l", "label": "mol/L", "nm": 1 }, { "key": "mmol_l", "label": "mmol/L", "nm": 1000 }, { "key": "umol_l", "label": "µmol/L", "nm": 1000000 }, { "key": "nmol_l", "label": "nmol/L", "nm": 1000000000 }, { "key": "pmol_l", "label": "pmol/L", "nm": 1000000000000 } ] }, { "type": "numeric", "field": "chem_distances", "label": "Chem. distances", "default": "", "position": 50, "placeholder": "Chem. distances", "units": [{ "key": "angstrom", "label": "Å" }] }, { "type": "numeric", "field": "concentration", "label": "Concentration", "default": "", "position": 60, "placeholder": "concentration", "units": [ { "key": "ng_l", "label": "ng/L", "nm": 1000000 }, { "key": "mg_l", "label": "mg/L", "nm": 1000 }, { "key": "g_l", "label": "g/L", "nm": 1 } ] }, { "type": "numeric", "field": "conductivity", "label": "Conductivity", "default": "", "position": 66, "placeholder": "conductivity", "units": [{ "key": "s_m", "label": "S/m", "nm": 1 }] }, { "type": "numeric", "field": "current", "label": "Current", "default": "", "position": 60, "placeholder": "Current", "units": [ { "key": "A", "label": "A", "nm": 1 }, { "key": "mA", "label": "mA", "nm": 1000 }, { "key": "uA", "label": "µA", "nm": 1000000 }, { "key": "nA", "label": "nA", "nm": 1000000000 } ] }, { "type": "numeric", "field": "degree", "label": "Degree", "default": "", "position": 70, "placeholder": "degree", "units": [{ "key": "degree", "label": "°" }] }, { "type": "numeric", "field": "density", "label": "Density", "default": "", "position": 75, "placeholder": "density", "units": [ { "key": "g_cm3", "label": "g/cm<sup>3</sup>", "nm": 1 }, { "key": "kg_l", "label": "kg/l", "nm": 1 } ] }, { "type": "numeric", "field": "duration", "label": "Duration", "default": "", "position": 80, "placeholder": "duration", "units": [ { "key": "d", "label": "d", "nm": 1 }, { "key": "h", "label": "h", "nm": 24 }, { "key": "min", "label": "m", "nm": 1440 }, { "key": "s", "label": "s", "nm": 86400 } ] }, { "type": "numeric", "field": "elastic_modulus", "label": "Elastic modulus", "default": "", "position": 84, "placeholder": "Elastic modulus", "units": [ { "key": "m_pa", "label": "MPa", "nm": 1 }, { "key": "k_pa", "label": "kPa", "nm": 1000 }, { "key": "pa", "label": "Pa", "nm": 1000000 } ] }, { "type": "numeric", "field": "electric_charge_c", "label": "Electric Charge in C", "default": "", "position": 85, "placeholder": "Electric Charge in C", "units": [{ "key": "ec_c", "label": "C", "nm": 1 }] }, { "type": "numeric", "field": "electric_charge_mol", "label": "Electric Charge per mol", "default": "", "position": 85, "placeholder": "Electric Charge per mol", "units": [{ "key": "ec_mol", "label": "C/mol", "nm": 1 }] }, { "type": "numeric", "field": "electric_field", "label": "Electric field", "default": "", "position": 86, "placeholder": "Electric field", "units": [{ "key": "v_m", "label": "V/m", "nm": 1 }] }, { "type": "numeric", "field": "energy", "label": "Energy", "default": "", "position": 88, "placeholder": "Joule", "units": [ { "key": "eV", "label": "eV", "nm": 6.241509e21 }, { "key": "keV", "label": "keV", "nm": 6.241509e18 }, { "key": "j", "label": "J", "nm": 1000 }, { "key": "k_j", "label": "kJ", "nm": 1 } ] }, { "type": "numeric", "field":