def standard(phase,
             pore_MW='pore.molecular_weight',
             pore_density='pore.density',
             **kwargs):
    r"""
    Calculates the molar density from the molecular weight and mass density

    Parameters
    ----------
    phase : OpenPNM Phase Object
        The Phase object for which these values are being calculated.  This
        controls the length of the calculated array, and also provides access
        to other necessary thermofluid properties.

    pore_MW : string
        The dictionary key containing the molecular weight in kg/mol

    pore_temperature : string
        The dictionary key containing the density in kg/m3
    """
    MW = phase[pore_MW]
    rho = phase[pore_density]
    value = rho/MW
    return value
dataset/ETHPy150Open PMEAL/OpenPNM/OpenPNM/Phases/models/molar_density.py/standard/original