salinity#
- salinity(phase, T='pore.temperature', conc='pore.concentration')[source]#
Calculates the salinity in g salt per kg of solution from concentration
- 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.conc (str (dict key) or numeric) – Name of the dictionary key on
phase
containing the ndarray of concentration values, in units of [mol/L]. If a numerical value is passed (i.e. a scalar or ndarray) it gets used directly.
- Returns:
salinity – The salinity in g of solute per kg of solution.
- Return type:
ndarray
Notes
This model is useful for converting known concentration values (e.g. calculated by a transport algorithm) into salinity values, which can then be used for finding other physical properties of water which are available as a function of salinity.
The salinity correlations are valid for salinity up to 160 g/kg, which corresponds to a concentration of 0.05 mol/L (assuming NaCl is the only solute)