Changeset 7346


Ignore:
Timestamp:
Apr 27, 2017, 8:56:19 AM (6 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #2080: Add Molar concentration (=Molarity) as a quantity

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/units.xml

    r7345 r7346  
    12321232  </quantity>
    12331233
     1234  <quantity system-id="net.sf.basedb.core.Quantity.MOLAR_CONCENTRATION">
     1235    <name>Molar concentration</name>
     1236    <reference-unit>1 M</reference-unit>
     1237    <description>
     1238      Molar concentration is defined as the amount of substance (in moles) per liter.
     1239      See https://en.wikipedia.org/wiki/Molar_concentration
     1240    </description>
     1241    <unit>
     1242      <name>Molar</name>
     1243      <symbol>M</symbol>
     1244      <factor>1</factor>
     1245      <description>1 molar is the references unit of molar concentration</description>
     1246    </unit>
     1247    <unit>
     1248      <name>Millimolar</name>
     1249      <symbol>mM</symbol>
     1250      <factor>0.001</factor>
     1251      <description>1 millimolar is 1/1 000 molar.</description>
     1252    </unit>
     1253    <unit>
     1254      <name>Micromolar</name>
     1255      <symbol>µM</symbol>
     1256      <alias>uM</alias>
     1257      <factor>1E-6</factor>
     1258      <description>1 micromolar is 1/1 000 millimolar.</description>
     1259    </unit>
     1260    <unit>
     1261      <name>Nanomolar</name>
     1262      <symbol>nM</symbol>
     1263      <factor>1E-9</factor>
     1264      <description>1 nanomolar is 1/1 000 micromolar.</description>
     1265    </unit>
     1266    <unit>
     1267      <name>Picomolar</name>
     1268      <symbol>pM</symbol>
     1269      <factor>1E-12</factor>
     1270      <description>1 picomolar is 1/1 000 nanomolar.</description>
     1271    </unit>
     1272  </quantity>
     1273
    12341274<!--
    12351275  <quantity system-id="">
  • trunk/src/core/net/sf/basedb/core/Quantity.java

    r7016 r7346  
    246246  public static final String STORAGE_SIZE = "net.sf.basedb.core.Quantity.STORAGE_SIZE";
    247247 
     248  /**
     249    The id for the <code>Quantity</code> object representing substance concentration.
     250    @see "https://en.wikipedia.org/wiki/Molar_concentration"
     251    @since 3.11
     252  */
     253  public static final String MOLAR_CONCENTRATION = "net.sf.basedb.core.Quantity.MOLAR_CONCENTRATION";
     254
    248255  /**
    249256    Create a new <code>Quantity</code> item.
Note: See TracChangeset for help on using the changeset viewer.