Engineering calculations for Water, Steam & Molecular Weight

Share your advanced PureBasic knowledge/code with the community.
User avatar
KJ67
Enthusiast
Enthusiast
Posts: 218
Joined: Fri Jun 26, 2009 3:51 pm
Location: Westernmost tip of Norway

Engineering calculations for Water, Steam & Molecular Weight

Post by KJ67 »

I have often found these routines useful while doing calculations and conversions, I guess that someone else may also have use for them.

The first is a look-up & interpolation set base on IAPWS-IF97. In short if has the routines to calculate pressure, temperature enthalpy etc. for water and steam systems within 'normal' values.
:arrow: Water and Steam.pbi

The second is a simple look-up routine for molecular weight and some smaller procedure around that. Nothing too fancy, but it save me a lot of work while converting between those 10001^33 or so called standards there is :? . Ppm dry, wet at 20C, 0C, actual temp, mg/MW, mg/m3, mg/Nm3 etc, etc, etc…
:arrow: Molecular Weight.pbi


If you find any bug in the calculations, please send me a PM.
The best preparation for tomorrow is doing your best today.