calc_bubble_pressure
despasito.thermodynamics.calc.calc_bubble_pressure
- calc_bubble_pressure(xi, T, Eos, density_opts={}, mole_fraction_options={}, Pguess=None, Psat_set=10000000.0, method='bisect', pressure_options={}, **kwargs)[source]
Calculate bubble point mole fraction and pressure given system liquid mole fraction and temperature.
- Parameters:
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
Pguess (float, Optional, default=None) – [Pa] Guess the system pressure at the dew point. A value of None will force an estimation based on the saturation pressure of each component.
Psat_set (float, Optional, default=1e+7) – [Pa] Set the saturation pressure if the pure component is above the critical point in these conditions
method (str, Optional, default=”bisect”) – Choose the method used to solve the dew point calculation
pressure_options (dict, Optional, default={}) – Options used in the given method,
method, to solve the outer loop in the solving algorithmkwargs – Keyword arguments for
calc_saturation_properties()
- Returns:
P (float) – [Pa] Pressure of the system
yi (numpy.ndarray) – Mole fraction of each component, sum(yi) should equal 1.0
flagv (int) – Flag identifying the fluid type for the vapor mole fractions, expected is vapor or 0. A value of 0 is vapor, 1 is liquid, 2 mean a critical fluid, 3 means that neither is true, 4 means ideal gas is assumed
flagl (int) – Flag identifying the fluid type for the liquid mole fractions, expected is liquid, 1. A value of 0 is vapor, 1 is liquid, 2 mean a critical fluid, 3 means that neither is true
obj (float) – Objective function value