×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

AGA 8 (DC92) code

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

RE: AGA 8 (DC92) code

(OP)
thanks,
NIST is FORTRAN, Prode is C++, do you know a Visual Basic code ?

RE: AGA 8 (DC92) code

NIST and PRODE are libraries which you can link with your software, there are application examples in VB NET, C NET, VBA etc. really you should't have problems.
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

(OP)
really I do not need the source code, a library is Ok,
thanks for help.

RE: AGA 8 (DC92) code

You can buy the 2 different ways to get the values you need from API. There is no library.  The AGA 8 compressibility allows for rigorous EOS (detailed composition required) or some simplified calculations with limited input for calculating the compressibility (n2, CO2 and spgr.)

API MPMS Chapter 14.2 is the official reference

here a sight to buy the equations.


http://global.ihs.com/doc_detail.cfm?currency_code=USD&;customer_id=212545473E0A&shopping_cart_id=282438272849404C415B4D28210A&mid=W097&input_doc_number=AGA%20REPORT%20&country_code=US&lang_code=ENGL&item_s_key=00132323&item_key_date=960131&input_doc_number=AGA%20REPORT%20&input_doc_title=

RE: AGA 8 (DC92) code

(OP)
I have the VBA code for AGA 8 gas compressibility, does the standard include also the formulation for isothermal compressibility ?
Thanks.
  

RE: AGA 8 (DC92) code

my old copy of the standard doesn't include the formulation for isothermal compressibility, may be the most recent versions include that (you can check the link suggested by dcasto).
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

(OP)
I examined our copy of the standard and it seems that AGA 8 doesn\'t include the formulations for isothermal compressibility,  I will consider the libraries mentioned by paolopemi, thanks for the help.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources