- openpnm.models.phases.molar_density.ideal_gas(target, pressure='pore.pressure', temperature='pore.temperature')¶
Uses ideal gas law to calculate the molar density of an ideal gas
target (OpenPNM Base object) – Object with which this model is associated. This controls the length of the calculated array, and also provides access to other necessary properties.
temperature (str) – Name of the dictionary key on
targetwhere the array containing temperature values is stored
pressure (str) – Name of the dictionary key on
targetwhere the array containing pressure values is stored
value – A numpy ndarray containing molar density values [mol/m3]
- Return type
This method uses the SI value for the ideal gas constant, hence the need to provide the temperature and pressure in SI. In general, OpenPNM use SI throughout for consistency.