ideal_gas#

ideal_gas(phase, P='pore.pressure', T='pore.temperature', MW='param.molecular_weight')[source]#

Uses ideal gas law to calculate the mass density of an ideal gas

Parameters:
  • phase (OpenPNM Phase object) – The phase object to which this model is associated (i.e. attached). This controls the length of the calculated array(s), and also provides access to other necessary properties.

  • T (str (dict key) or numeric) – Name of the dictionary key on phase containing the ndarray of temperature values, in units of [K]. If a numerical value is passed (i.e. a scalar or ndarray) it gets used directly.

  • P (str (dict key) or numeric) – Name of the dictionary key on phase containing the ndarray of pressure values, in units of [Pa]. If a numerical value is passed (i.e. a scalar or ndarray) it gets used directly.

  • MW (str (dict key) or numeric) – Name of the dictionary key on phase containing the ndarray of molecular weight values, in units of [g/mol]. If a numerical value is passed (i.e. a scalar or ndarray) it gets used directly.