Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline ElSid  
#1 Posted : 06 April 2018 15:47:23(UTC)
ElSid


Rank: Advanced Member

Groups: Registered
Joined: 05/03/2009(UTC)
Posts: 433
Man
United States
Location: USA

Was thanked: 17 time(s) in 15 post(s)
I use this as a snippet. Where do we post Snippets for others to use? Optimization encouraged. This is based off of 2017 ASHRAE Fundamentals equations

Jean,
Looking forward to "cleaning up the Gyzma"
Water Vapor Saturation Pressure.sm (21kb) downloaded 32 time(s).

Edit, Started playing with the CoolProp plugin ...
Quote:
CoolProp_Props("P","T",80*'°F,"Q",0,"Water" )
gives tabular results that match the function playing with the temperature of 80*'°F in the NOT ice region (>32°F)

Edited by user 11 February 2021 09:49:56(UTC)  | Reason: Updated file; Update CoolProp comment

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline mkraska  
#2 Posted : 06 April 2018 16:11:55(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,986
Germany

Was thanked: 1124 time(s) in 721 post(s)
Originally Posted by: ElSid Go to Quoted Post
I use this as a snippet. Where do we post Snippets for others to use?


Use the portal for extension registration: https://en.smath.info/upload/extensions.aspx

You may need to create a login.
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline Jean Giraud  
#3 Posted : 06 April 2018 17:36:55(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: ElSid Go to Quoted Post
Looking forward to "cleaning up the Gyzma"

Interesting, World is SI [and derived SI]
4.1635019*10^0 = 4.1635019
Interesting the split range below triple point [0.01 °C]

Cheers Elsid .. see U
Offline ElSid  
#4 Posted : 06 April 2018 18:33:55(UTC)
ElSid


Rank: Advanced Member

Groups: Registered
Joined: 05/03/2009(UTC)
Posts: 433
Man
United States
Location: USA

Was thanked: 17 time(s) in 15 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Interesting, World is SI [and derived SI]
Yes, there is error because the original equations and constants are SI ... unit conversion and round off.

Originally Posted by: Jean Giraud Go to Quoted Post
4.1635019*10^0 = 4.1635019
Copy and paste from the handbook ... Consistent since all other values have a power

Originally Posted by: Jean Giraud Go to Quoted Post
Interesting the split range below triple point [0.01 °C]
Actually, it overlaps! I could not find a good way of using a single value, so I chose one. The documentation for both equations technically hit 32F.
Offline Jean Giraud  
#5 Posted : 08 April 2018 22:25:35(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: ElSid Go to Quoted Post
Actually, it overlaps!I could not find a good way of using a single value,
so I chose one.The documentation for both equations technically hit 32F.

The classical Water Vapor Saturation Pressure starts @ the Triple Point [ 0.01°C]
Advanced formulas up to the Critical Point.
From so I chose one, your formula may be completely zombie trying to overlap the ice region.
You should never/ever extrapolate a polynomial approximation outside of its designed range.
So, you have put something in Samples, something not doctored, that will confuse Smath Community.
Don't take it bad, just a remark.

Just posted a minute ago, you will find the ice region in "Samples Psychrometry'.

Offline ElSid  
#6 Posted : 09 April 2018 03:50:05(UTC)
ElSid


Rank: Advanced Member

Groups: Registered
Joined: 05/03/2009(UTC)
Posts: 433
Man
United States
Location: USA

Was thanked: 17 time(s) in 15 post(s)
Jean,
As I mentioned, it comes from 2017 ASHRAE Fundamentals Handbook. Feel free to argue with them the use of polynomials Aggressive. I cannot think of a way to capture 32 F from solid or liquid ... for engineering purposes, close enough; unless you have one of your magic programing loops Confusion .

Based on the polynomials, here is a snippet of the chart from the 2017 Fundamentals handbook @ 32F
ASHRAE 32F.PNG
Offline ElSid  
#7 Posted : 09 April 2018 04:42:10(UTC)
ElSid


Rank: Advanced Member

Groups: Registered
Joined: 05/03/2009(UTC)
Posts: 433
Man
United States
Location: USA

Was thanked: 17 time(s) in 15 post(s)
Martin,
I'm responding to your response under the "bugs" blog here
Originally Posted by: mkraska Go to Quoted Post
Let the psi unit be psia and introduce an undefined unit psig with appropriate conversion functions.
This approach prevents you from mixing both types of pressure representations, because you would get a unit mismatch error.
It doesn't, however, prevent you from adding psig values, which might not be a good idea.

All in all this is a conversion very much like between K (absolute) and °C (gauged), just with the nasty difference that the offset isn't constant and has to be specified whenever a conversion is to be done.

Doing it that way, I could not add psia ... in some of my sheets. Re-defining ATM to the actual site ATM appears to be the best way to do this at this time.

I'll post another worksheet where this is applied after I clean up my notes
Offline Jean Giraud  
#8 Posted : 09 April 2018 05:55:20(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: ElSid Go to Quoted Post
I cannot think of a way to capture 32 F from solid or liquid ...
for engineering purposes, close enough

@ 32 F, can you not get ... 0.611*kPaAbs ... 0.0886181*PSI

Just put all those numbers in vector and attempt Σ polynomials,
I will check from there. There must be a formula nearly executable.
Revisit the latest "Psychrometry Refactored"


Offline Jean Giraud  
#9 Posted : 09 April 2018 06:04:42(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: ElSid Go to Quoted Post
I cannot think of a way to capture 32 F from solid or liquid


... in fact, @ the water triple point [32.02 F] the saturation pressure is seemingly undefined,
and not listed in WASP, but it does exist for true ! 0.611*kPaAbs.


Offline ElSid  
#10 Posted : 10 February 2021 20:57:55(UTC)
ElSid


Rank: Advanced Member

Groups: Registered
Joined: 05/03/2009(UTC)
Posts: 433
Man
United States
Location: USA

Was thanked: 17 time(s) in 15 post(s)
I updated the first post attachment using cases() and incorporating comments from above. Close enough for engineering purposes
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.