CalebBell / thermo

Thermodynamics and Phase Equilibrium component of Chemical Engineering Design Library (ChEDL)
MIT License
594 stars 114 forks source link

Multi component enthalpic curve calculation #36

Closed lmg990 closed 3 years ago

lmg990 commented 4 years ago

Hi, I would like to generate enthalpic curves for a multi component mixture.

  1. My mixture is the mixing of a liquid flow and a gaz flow for which I know the composition, flow rate, temperature and pressure. -> can I get the mixing temperature + the vapor ratio at a given pressure of these two flows ?
  2. I managed to calculate the common properties and the latent heat for a set of températures and pressures with thermo.mixture but I need zs (mole fraction of all the components) as inlet parameters separately for the liquid part and for the gas part (they change with the temperature and pressure as the mixture is vaporized) -> how can I calculate these zs from the composition of my mixture and the T, P ? Last question : is it possible to evaluate the dew point of the mixture ?

If someone can drive me to a solution or even to a beginning of a track, it would be great…

Regards

alexchandel commented 4 years ago

You'll have to calculate the flash equilibrium point yourself, unless the undocumented and possibly broken flash method of a property package class fits your needs (e.g. UNIFAC_Dortmund_PP).

The Mixture class doesn't list a dew point method, but .Pdew works. There's also thermo.activity.dew_at_T. Property_Package.Tdew appears to be broken.

lmg990 commented 4 years ago

Thanks Alex, I will take a look at all this...

CalebBell commented 3 years ago

Hi all, Please see the new documentation. This is easy to do with the new flash interface. Sincerely, Caleb