objective_saturation_pressure
despasito.thermodynamics.calc.objective_saturation_pressure
- objective_saturation_pressure(shift, Pv, vlist)[source]
Objective function used to calculate the saturation pressure.
- Parameters:
shift (float) – [Pa] Guess in Psat value used to translate the pressure vs. specific volume curve
Pv (numpy.ndarray) – [Pa] Pressure associated with specific volume of system with given temperature and composition
vlist (numpy.ndarray) – [mol/\(m^3\)] Specific volume array. Length depends on values in density_opts passed to
pressure_vs_volume_arrays()
- Returns:
obj_value – Output of objective function, the addition of the positive area between first two roots, and negative area between second and third roots, quantity squared.
- Return type:
float