- StandardLiquidMixture.x(compname=None, x=None)#
Helper method for getting and setting mole fractions of a component
compname (str, optional) – The name of the component, i.e.
xis not provided this will return the mole fraction of the requested component. If
xis provided this will set the mole fraction of the specified component to
x (scalar or ndarray, optional) – The mole fraction of the given species in the mixture. If not provided this method works as a getter and will return the mole fraction of the requested component. If
compnameis not provided then the mole fractions of all components will be returned as a dictionary with the components names as keys.
This method is equivalent to
mixture['pore.mole_fraction.<compname>'] = x