vanderwaals#
- vanderwaals(target, pressure='pore.pressure', temperature='pore.temperature', critical_pressure='pore.critical_pressure', critical_temperature='pore.critical_temperature')[source]#
Uses Van der Waals equation of state to calculate the density of a real 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 storedcritical_pressure (str) – The dictionary key containing the critical pressure values in Pascals (Pa)
critical_temperature (str) – The dictionary key containing the critical temperature values in Kelvin (K)
- Returns
value – A numpy ndarray containing molar density values [mol/m3]
- Return type
ndarray