HGAna 0.1
  • API
  • Affinity
  • Adsorption
  • Site
    • Page
        • mols_to_mmol_l

    mols_to_mmol_l¶

    hgana.utils.mols_to_mmol_l(N, V)¶

    Convert the number of molecules to concentration in \(\frac{\text{mmol}}{\text{l}}\).

    The concentration in regard to volume is calculated by

    \[c=\frac{N}{N_A\cdot V}\]

    with volume \(V\). Assuming that the unit of the concentration is \(\text{mmol}\cdot\text{l}\) and of the volume is \(\text{nm}^3\), the number of molecules is given by

    \[c=\frac{N}{6.022\cdot10^{23}\cdot[V]\,\text{nm}^3}\]

    and thus

    \[\boxed{c=\frac{N}{6.022\times10^{-4}\cdot[V]}\cdot\frac{\text{mmol}}{\text{l}}}\ .\]
    Parameters:
    N : int

    Number of molecules

    V : float

    Surface in \(\text{nm}^3\)

    Returns:
    c : float

    Concentration in \(\frac{\text{mmol}}{\text{l}}\)

    Back to top

    © Copyright 2021, Hamzeh Kraus.
    Created using Sphinx 1.6.6.