find_new_xi
despasito.thermodynamics.calc.find_new_xi
- find_new_xi(P, T, phiv, yi, Eos, density_opts={}, bounds=(0.001, 0.999), npoints=30, **kwargs)[source]
Search liquid mole fraction combinations for a new estimate that produces a liquid density.
- Parameters:
P (float) – [Pa] Pressure of the system
T (float) – [K] Temperature of the system
phiv (float) – Fugacity coefficient of vapor at system pressure
yi (numpy.ndarray) – Vapor mole fraction of each component, sum(yi) should equal 1.0
Eos (obj) – An instance of the defined EOS class to be used in thermodynamic computations.
density_opts (dict, Optional, default={}) – Dictionary of options used in calculating pressure vs. specific volume in
pressure_vs_volume_arrays()bounds (tuple, Optional, default=(0.001, 0.999)) – 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.
- Returns:
xi – Vapor mole fraction of each component, sum(yi) should equal 1.0
- Return type:
numpy.ndarray