ideal_gas

openpnm.models.phases.density.ideal_gas(target, pressure='pore.pressure', temperature='pore.temperature', mol_weight='pore.molecular_weight')[source]

Uses ideal gas law to calculate the mass 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 stored

  • pressure (str) – Name of the dictionary key on target where the array containing pressure values is stored

  • mol_weight (str) – Name of the dictionary key on target where the array containing molecular weight values is stored

Returns

densities – A numpy ndarray containing density values

Return type

ndarray