- openpnm.models.phases.density.standard(target, mol_weight='pore.molecular_weight', molar_density='pore.molar_density')¶
Calculates the mass density from the molecular weight and molar density
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
targetwhere the array containing molecular weight values is stored
molar_density (str) – Name of the dictionary key on
targetwhere the array containing molar density values is stored
densities – A numpy ndarray containing density values
- Return type
- Since numpy arrays don’t natively support units, OpenPNM cannot enforce
units on values and arrays, however the use of SI is assumed.