Question: Need to get Matlab codes or using python to solve this pproblem Problem Tasks a) Create functions that return thermodynamic properties based on appropriate inputs.
Need to get Matlab codes or using python to solve this pproblem
Problem Tasks
a) Create functions that return thermodynamic properties based on appropriate inputs. b) Compare the function values to the baseline steam tables provided in the assignment by calculating the least squares error for each property. c) Plot a water temperature-entropy diagram with isobaric lines for pressures of 0.10,0.5,1.0,5,10,30,45,80,110,150,200, and 210.6 bar.
Suggested Answers Part a) Part b) The Least-Squares errors for each property are:

Part c)

Property Table Property Average Error SaturationTable hf 1.71078 x 10-16 9.14297 x 10-17 2.81327 x 10-16 9.05757 x 10-16 Steam Table 6.38913 x 10-14 Indeterminate Indeterminate P V Humidity PropertiesV a h a 2.87453 x 10-16 s a 1.15873 x 10-17
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
