Mixture.add_comp(component, mole_fraction=nan)[source]#

Helper method to add a component

  • 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.


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