


Use a value of \(Q=1\) for the saturated vapor property or \(Q=0\) for the saturated liquid property. To retrieve either the vapor or liquid properties along the saturation curve, provide an input pair that includes either the saturation temperature, \(T\), or saturation pressure, \(p\), along with the vapor quality, \(Q\). If the state point defined by the input pair lies within 1E-4 % of the saturation pressure, then CoolProp may return an error, because both liquid and vapor are defined along the saturation curve. Likewise, if the state point lies in the liquid region, then the liquid state property at that state point will be returned. If the input pair (say, \(P,T\)) defines a state point that lies in the vapor region, then the vapor property at that state point will be returned. If speed is an issue, you can look into table-based interpolation methods using TTSE or bicubic interpolation or if you are only interested in Water properties, you can look into using the IF97 (industrial formulation) backend. \(P,T\) will be a bit slower (3-10 times), followed by input pairs where neither \(T\) nor \(\rho\) are specified, like \(P,H\) these will be much slower. The equations of state are based on \(T\) and \(\rho\) as state variables, so \(T, \rho\) will always be the fastest inputs. The sixth and last parameter is the fluid for which the output property will be calculated also a quoted string.ĭocumentation for all high-level functions exposedĪll the wrappers wrap this function in exactly the same way.įor pure and pseudo-pure fluids, two state variables are required to fix the state. The third and fifth parameters are the values of the input pair properties and will determine the state point. The output property and input pair properties are text strings and must be quoted. The second and fourth parameters are the specified input pair of properties that determine the state point where the output property will be calculated. In this example, the first parameter, \(T\), is the output property that will be returned from PropsSI. # Import the PropsSI function In : from CoolProp.CoolProp import PropsSI # Saturation temperature of Water at 1 atm in K In : PropsSI ( 'T', 'P', 101325, 'Q', 0, 'Water' ) Out: 373.1242958476844
