AMO-Tools-Suite icon indicating copy to clipboard operation
AMO-Tools-Suite copied to clipboard

Steam Properties invalid region

Open koay9f opened this issue 2 months ago • 0 comments

Issue overview

Let's try to remove the error for invalid regions by going through the steam properties calculations and finding all the if statements without an else. there are a few directions that the else could be, but maybe a first pass would just be zeros for all outputs. Also, maybe an additional property of teh object (did I get the right words) being "is this in error or not" and if it goes into the new else statements then that value is set to true, where everything else it is false.

Maybe one way to start is if it is just outside the valid area image.png If T < 273.15 --> T == 273.15 & show as error If P <= 50 & T >2273.15 --> T = 2273.15 & show as error If P <= 100 & T > 1073.15 --> T = 1073.15 & show as error If P > 100 --> P = 100 & show as error

There could be some weird instances also where things are falling in the gaps of the if statments, but ^ might be a start

koay9f avatar Apr 19 '24 13:04 koay9f