ideal_gas¶
- openpnm.models.phases.molar_density.ideal_gas(target, pressure='pore.pressure', temperature='pore.temperature')[source]¶
Uses ideal gas law to calculate the molar density of an ideal gas
- Parameters
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
target
where the array containing temperature values is storedpressure (str) – Name of the dictionary key on
target
where the array containing pressure values is stored
- Returns
value – A numpy ndarray containing molar density values [mol/m3]
- Return type
ndarray
Notes
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.