standard#

standard(target, mol_weight='pore.molecular_weight', molar_density='pore.molar_density')[source]#

Calculates the mass density from the molecular weight and molar density

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.

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

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

Returns

densities – A numpy ndarray containing density values

Return type

ndarray

Notes

Since numpy arrays don’t natively support units, OpenPNM cannot enforce

units on values and arrays, however the use of SI is assumed.