# hour = min * 60 = h = [time] # override plank length default
@alias hour = h
#@alias [time] = [duration]  # note the aliasing, have to use as .reference, cannot alias dimensions it seems
#log10_concentration_Hplus = log10([concentration]) = pH
log10_concentration_Hplus = [] = pH
postnatal_day = day = P = days_since_birth = [time]  # P replaces default poise
fold = [] = x
# FIXME fold is not a multiplicative unit
# it is more a multiplcative closure over magnitude (λ (v) (* v magnitude))
numerical_aperture = [] = NA
#bel = []  # pint has this now
#degrees_celsius = degC = degrees-celsius  # using @alias triggers nonmult issues
@alias degC = degrees_celsius = degrees-celsius
percent = 0.01 * count = %
osmole = [substance_particles] = Osm  # this is quite complicated to calculate from first principles since it is actual particles
osmolarity = Osm / liter
equivalents = [] = equiv  # there is a definition for this, just missing atm
@alias molar = molarity

# mmHg changed in 0.25 so to make this file work for < 25
# and >= 25 we have to define conventional mercury density
conventional_mercury_density = 13595.1 kg/m^3 = ρHg
meter_Hg = meter * conventional_mercury_density * g_0 = mHg = m_Hg
millimeter_Hg = meter_Hg / 1000 = millimeters_hg = mm_Hg

# https://en.wikipedia.org/wiki/French_catheter_scale  Fg = diameter mm * 3
# Fr defaults to Franklin which aka statcoulomb
french_gauge = 3 * mm = Fr = Fg

# https://en.wikipedia.org/wiki/Birmingham_gauge spacing is not uniform
# technically the dimensionality is 1 / [lenght] but since it is non-uniform
# pint can't handle it without filling in the values explicitly I think
birmingham_gauge = [] = G  # G defaults to gauss
_12G = 12G = 2.769 * mm
_18G = 18G = 1.270 * mm
_19G = 19G = 1.067 * mm
_20G = 20G = 0.9081 * mm
_25G = 25G = 0.5144 * mm
_27G = 27G = 0.4128 * mm

@alias degF = degrees_fahrenheit = degrees-fahrenheit

# for U -> kat see
# Wharton, Christopher W.; Eisenthal, Robert (2013), Molecular Enzymology,
# Tertiary Level Biology, Springer Science and Business Media, p. 82, ISBN 9781461585329.
# looks like pint has this now
# enzyme_unit = μmol / min = 1 / 60 μmol / s = 100 / 6 nkat = enzyme-unit = U

relative_centrifugal_force = 1 * standard_gravity = RCF

@system mgs using international
    meter
    gram
    second
@end
