pressure_vs_volume_spline
despasito.thermodynamics.calc.pressure_vs_volume_spline
- pressure_vs_volume_spline(vlist, Plist)[source]
Fit arrays of specific volume and pressure values to a cubic Univariate Spline.
- Parameters:
vlist (numpy.ndarray) – [\(m^3\)/mol] Specific volume array.
Plist (numpy.ndarray) – [Pa] Pressure associated with specific volume of system with given temperature and composition
- Returns:
Pvspline (obj) – Function object of pressure vs. specific volume
roots (list) – List of specific volume roots. Subtract a system pressure from the output of Pvsrho to find density of vapor and/or liquid densities.
extrema (list) – List of specific volume values corresponding to local minima and maxima.