objective_dew_pressure

despasito.thermodynamics.calc.objective_dew_pressure

objective_dew_pressure(P, yi, T, Eos, density_opts={}, mole_fraction_options={}, **kwargs)[source]

Objective function used to search pressure values and solve outer loop of constant temperature dew point calculations.

Parameters:
  • P (float) – [Pa] Guess in pressure of the system

  • yi (numpy.ndarray) – Vapor mole fraction of each component, sum(yi) 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{y_{i}\phi_v}{\phi_l}-1\)

Return type:

list