Testing the Thermodynamic Functions for Saturated Water As A Function of Pressure–Except…

I started working through the graphs of the various thermodynamic functions vs. pressure and recognized that the standard format wasn’t showing all of the detail contained in the fits across the different ranges of input pressure. If the plotable width of the graph is about 350 pixels over a range of 1800 psi on a linear scale that would mean that every pixel represents a range of over 5 psi. As you can see from the function below the lower two ranges cover less than that and as a result would not even show up on a standard plot.

Expanding the plot to around 2000 pixels still doesn’t show all the details in a meaningful way. (The graph below is scrollable sideways.)

Generating plots over smaller and smaller ranges of pressure shows that each range of the function is smooth.

A way of getting these details to display is to do the plot on a logarithmic scale. I’ve done some of the work toward making that happen but that work will continue next week. I realize that I neglected to add this feature to the master list I created earlier this week, even though I was thinking about it. I’ve solved the basic parts of the problem but have to integrate the solution into the overall flow of code. As always, that may require breaking things apart into different functions. We’ll see how it goes.

This entry was posted in Tools and methods and tagged , . Bookmark the permalink.

Leave a Reply