Hello everyone,
As far as I remember thermodynamics, GAS_Constant is Universal Gas constant. It does not change. The specific gas constant changes based on the molar mass of the gas.
R_sp = R_u / M
Then why is it that CoolProp is giving different(not by much, 4th decimal onwards there are changes) values for Gas constant??
Upto 8.314 everything is the same but after that, they change. The change is negligible for all intents and purposes. I agree. I was just curious as to why that was happening.
Is it something to do with the inner workings of CoolProp or am I missing something fundamental?
I tried the following code:
```
import CoolProp
import CoolProp.CoolProp as cp
si = cp.PropsSI
list_gases = ['R11', 'R113', 'R114', 'R115', 'R116', 'R12', 'R123', 'R1233zd(E)', 'R1234yf', 'R1234ze(E)', 'R1234ze(Z)', 'R124', 'R1243zf', 'R125', 'R13', 'R134a', 'R13I1', 'R14', 'R141b', 'R142b', 'R143a', 'R152A', 'R161', 'R21', 'R218', 'R22', 'R227EA', 'R23', 'R236EA', 'R236FA', 'R245ca', 'R245fa', 'R32', 'R365MFC', 'R40', 'R404A', 'R407C', 'R41', 'R410A', 'R507A', 'Air', 'Argon', 'CarbonDioxide', 'CarbonMonoxide', 'Ethane', 'Fluorine', 'Helium', 'Hydrogen', 'Krypton', 'Methane', 'n-Butane', 'n-Decane', 'n-Dodecane', 'n-Heptane', 'n-Hexane', 'n-Nonane', 'n-Octane', 'n-Pentane', 'n-Propane', 'n-Undecane', 'Neon', 'Neopentane', 'Nitrogen', 'NitrousOxide', 'Oxygen']
for fluid in list_gases:
  print (str(fluid) + "\t\t:\t" + str(si("GAS_CONSTANT", fluid)) + "\n")
```
I got the following output:
R11 Â Â Â Â Â Â Â Â : Â Â 8.31451
R113 Â Â Â Â Â Â : Â Â 8.314471
R114 Â Â Â Â Â Â : Â Â 8.31451
R115 Â Â Â Â Â Â : Â Â 8.3144621
R116 Â Â Â Â Â Â : Â Â 8.314472
R12 Â Â Â Â Â Â Â Â : Â Â 8.314471
R123 Â Â Â Â Â Â : Â Â 8.31451
R1233zd(E) Â Â Â Â : Â Â 8.3144621
R1234yf        :   8.314472
R1234ze(E) Â Â Â Â : Â Â 8.314472
R1234ze(Z) Â Â Â Â : Â Â 8.3144598
R124 Â Â Â Â Â Â : Â Â 8.314471
R1243zf       :   8.3144598
R125 Â Â Â Â Â Â : Â Â 8.314472
R13 Â Â Â Â Â Â Â Â : Â Â 8.31451
R134a       :   8.314471
R13I1 Â Â Â Â Â Â : Â Â 8.3144621
R14 Â Â Â Â Â Â Â Â : Â Â 8.31451
R141b       :   8.314472
R142b       :   8.314472
R143a       :   8.314472
R152A Â Â Â Â Â Â : Â Â 8.314471
R161 Â Â Â Â Â Â : Â Â 8.314472
R21 Â Â Â Â Â Â Â Â : Â Â 8.31451
R218 Â Â Â Â Â Â : Â Â 8.314472
R22 Â Â Â Â Â Â Â Â : Â Â 8.31451
R227EA Â Â Â Â Â Â : Â Â 8.3144621
R23 Â Â Â Â Â Â Â Â : Â Â 8.314472
R236EA Â Â Â Â Â Â : Â Â 8.314472
R236FA Â Â Â Â Â Â : Â Â 8.314472
R245ca       :   8.3144621
R245fa       :   8.3144621
R32 Â Â Â Â Â Â Â Â : Â Â 8.314471
R365MFC Â Â Â Â Â Â : Â Â 8.3144621
R40 Â Â Â Â Â Â Â Â : Â Â 8.314472
R404A Â Â Â Â Â Â : Â Â 8.314472
R407C Â Â Â Â Â Â : Â Â 8.314472
R41 Â Â Â Â Â Â Â Â : Â Â 8.314472
R410A Â Â Â Â Â Â : Â Â 8.314472
R507A Â Â Â Â Â Â : Â Â 8.314472
Air         :   8.31451
Argon       :   8.31451
CarbonDioxide   :   8.31451
CarbonMonoxide   :   8.314472
Ethane       :   8.314472
Fluorine     :   8.31448
Helium       :   8.3144598
Hydrogen     :   8.314472
Krypton       :   8.314472
Methane       :   8.31451
n-Butane     :   8.314472
n-Decane     :   8.314472
n-Dodecane     :   8.314472
n-Heptane     :   8.31451
n-Hexane     :   8.3144598
n-Nonane     :   8.314472
n-Octane     :   8.3144598
n-Pentane     :   8.3144598
n-Propane     :   8.314472
n-Undecane     :   8.314472
Neon       :   8.3144598
Neopentane     :   8.314472
Nitrogen     :   8.31451
NitrousOxide   :   8.314472
Oxygen       :   8.31434