CoolProp functions as an add in to both Microsoft Excel, and MatLab. A thermodynamic property can be fixed through knowledge of any two independent intensive properties. CoolProp allows the user to input a property of interest along with the two known intensive properties of the same state, and will then output the desired value. Figures 5 and 6 display coolprop in use through both Excel, and MatLab respectively.
In Figure 4’s example of CoolProp in Excel, the property of interest in H, or enthalpy. Here, both the temperature, as well as the Entropy are known. Being that the temperature is given in degrees celsius, 273.15 is added to its’ magnitude in a conversion to Kelvin. Water is listed last in the line of code, establishing the substance. In Figure 6’s example of CoolProp in MatLab, the property of interest is S, or entropy. Here, both the temperature and quality are known. Water is again listed, establishing substance.
Givens in the problem included the fact that the low temperature was 50 degrees celsius, while the high temperature was 250 degrees celsius. It was determined that the low temperature locations would be located at states 1 and 4 while the water is both leaving the condenser entering the pump, and while leaving the turbine and entering the condenser. It was then determined that the high temperatures would be located at states 2 and 3 while the water was both exiting the pump entering the boiler, and exiting the boiler entering the turbine. It was given that state two was a saturated liquid, while state three was a saturated vapor. Knowledge of two intensive properties within states two and three allowed a “fixing of the state” used in determining all other properties in their respective state. As discussed in the Theory section, entropy was determined to be equal between states one and two, as well as between states three and four. This established temperature as well as entropy as the two intensive properties allowing states one and four to be fixed. The results determined through following these steps can be seen in the Microsoft Excel Table 2, along with the MatLab Table 3, below. All supporting MatLab code can be found in the Appendix.