objective_bubble_pressure
despasito.thermodynamics.calc.objective_bubble_pressure
- objective_bubble_pressure(P, xi, T, Eos, density_opts={}, mole_fraction_options={}, **kwargs)[source]
Objective function used to search pressure values and solve outer loop of constant temperature bubble point calculations.
- Parameters:
P (float) – [Pa] Guess in pressure of the system
xi (numpy.ndarray) – Liquid mole fraction of each component, sum(xi) should equal 1.0
T (float) – [K] Temperature of the system
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()mole_fraction_options (dict, Optional, default={}) – Options used to solve the inner loop in the solving algorithm
- Returns:
obj_value – \(\sum\frac{x_{i}\phi_{l}}{\phi_v}-1\)
- Return type:
float