add_comp#

LiquidMixture.add_comp(component, mole_fraction=nan)#

Helper method to add a component

Parameters:
  • component (Species object) – The pure Species object to add

  • mole_fraction (float or array_like) – The mole fraction of the given component in each pore. Can either be a scalar which is applied to every pore, or an Np-long ndarray with values for each pore.

Notes

This method just adds ‘pore.mole_fraction.<component.name>’ to the Mixture dictionary, and assigns the given mole_fraction.