AGA 8 (DC92) code
AGA 8 (DC92) code
(OP)
I am not sure it is the correct forum for this question but I haven't found similar threads...
For a Microsoft NET (VBA) application I need the isothermal compressibility (of natural gas) according AGA 8 (DC92), suggestions and comments (about source code or libraries available) are appreciated,
Marc
For a Microsoft NET (VBA) application I need the isothermal compressibility (of natural gas) according AGA 8 (DC92), suggestions and comments (about source code or libraries available) are appreciated,
Marc





RE: AGA 8 (DC92) code
Prode Properties
http://www.prode.com/en/properties.htm
and NIST REFPROP
http://www.nist.gov/srd/nist23.htm
in my opinion these are good but quite different products (NIST is a reference, Prode offers many different features), both should be suitable for yor application.
RE: AGA 8 (DC92) code
NIST is FORTRAN, Prode is C++, do you know a Visual Basic code ?
RE: AGA 8 (DC92) code
I am not a programmer (my VBA applications are limited to Excel) so I do not know if there are commercial products for calculating AGA 8 isothermal compressibility available in form of VBA code, may be others can help.
RE: AGA 8 (DC92) code
thanks for help.
RE: AGA 8 (DC92) code
API MPMS Chapter 14.2 is the official reference
here a sight to buy the equations.
http://g
RE: AGA 8 (DC92) code
Thanks.
RE: AGA 8 (DC92) code
Perhaps when working at low pressure you can estimate the isothermal compressibility coefficient * pressure product as complement to 1 of compressibility factor, note that for a ideal gas the isothermal compressibility becomes
(1 / P) - dZ / dP
but with this method you may get large errors...
To give you a idea about this method I calculated with Prode Properties (see the above post for the link) the isothermal compressibility coefficient and gas compressibility according AGA 8 (DC92) for the mixture
CH4 0.8 C2H6 0.13 C5H12 0.04 CO2 0.03
at different operating pressures
T = 300 K
P = 100000 Pa (1 Bar.a)
IC 1.00291E-05
IC*P 1.00291
Zv 0.997101026
T = 300 K
P = 1000000 Pa (10 Bar.a)
IC 1.03017E-06
IC*P 1.0317
Zv 0.970843174
T = 300 K
P = 10000000 Pa (100 Bar.a)
IC 1.24652E-07
IC*P 1.24652
Zv 0.730700172
note that I set my copy of Prode Properties to return the isothermal compressibility coefficient
-(1 / V) * dV / dP
with units of 1/Pa (different settings are possible)
RE: AGA 8 (DC92) code