update_mole_fractions

SalineWater.update_mole_fractions(free_comp=None)

Updates mole fraction values so the sum of all mole fractions is 1.0 in each pore.

Parameters

free_comp (OpenPNM object) – Specifies which component’s mole fraction should be adjusted to enforce the sum of all mole fractions to equal 1.0. See Notes for more details.

Notes

If free_comp is not given then a search is conducted to find a component whose mole fractions are nans and this component is treated as free_comp.

If more than one component, or no components, is/are found during this search, an attempt is made to determine mole fractions from the concentrations, such that $x_i = C_i/C_total$.