find_new_yi
despasito.thermodynamics.calc.find_new_yi
- find_new_yi(P, T, phil, xi, Eos, bounds=(0.01, 0.99), npoints=30, density_opts={}, **kwargs)[source]
Search vapor mole fraction combinations for a new estimate that produces a vapor density.
- Parameters:
P (float) – [Pa] Pressure of the system
T (float) – [K] Temperature of the system
phil (float) – Fugacity coefficient of liquid at system pressure
xi (numpy.ndarray) – Liquid mole fraction of each component, sum(xi) should equal 1.0
Eos (obj) – An instance of the defined EOS class to be used in thermodynamic computations.
bounds (tuple, Optional, default=(0.01, 0.99)) – These bounds dictate the lower and upper boundary for the first component in a binary system.
npoints (float, Optional, default=30) – Number of points to test between the bounds.
density_opts (dict, Optional, default={}) – Dictionary of options used in calculating pressure vs. specific volume in
pressure_vs_volume_arrays()
- Returns:
yi – Vapor mole fraction of each component, sum(yi) should equal 1.0
- Return type:
numpy.ndarray