PoreSim 0.2
  • API
  • Simulation
  • Complex Pore Simulation
  • Simulation 2-Phase
  • Site
    • Page
        • mols_to_mmol_l
          • mols_to_mmol_l()
    • mols_to_mmol_l
      • mols_to_mmol_l()
    Source

    mols_to_mmol_l¶

    poresim.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:
    Nint

    Number of molecules

    Vfloat

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

    Returns:
    cfloat

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

    Back to top

    © Copyright 2023, Hamzeh Kraus.
    Created using Sphinx 7.4.6.