CAD CAM EDM DRO - Yahoo Group Archive

Re: [CAD_CAM_EDM_DRO] OT: Cubic Feet in a Compressed Gas Cylinder?

Posted by dave engvall
on 2000-08-14 21:37:32 UTC
ptengin@... wrote:

> In a message dated 08/13/2000 7:21:30 AM Hawaiian Standard Time,
> prototype@... writes:
>
> << > I am looking to be able to calculate the number of cubic feet of gas at
> > standard atmospheric pressure that are in a cylinder at any given time.
> >
> Depends on the gas. Helium, argon and other "ideal" gasses compress in
> linear relation to the pressure. Thus, volume is essentially proportional
> to pressure - up to a point, which bottled gas is well below.
>
> If it's oxygen, nitrogen, CO2 or most other gasses then you have a different
> problem altogether. Oxygen is fairly linear up to about five atmospheres
> (75 psia). Nitrogen and CO2 are not even close and for these you need
> either a set of gas tables or a curve fit equation to do the calculations
> you are after. >>
>
> Which reminds me, propane and Lng have a very different curve due to low
> vapor pressure. I think Freon and some of the other propellant gases have the
> similar qualities.
>
> Peter
> THRD, Inc.
>
> Don't know if attachment work or not. However attached is a short C program for common gases.

Some are linear ( pretty much constant slope but the slope may not be 1.0) others e.g. CO2 are pretty wild.

Dave


----------

/* calc non-ideal gas pressures
try using enum for gases */

#include </usr/include/stdio.h>
#include </usr/include/stdlib.h>
#include </usr/include/math.h>


main( unsigned argc , char **argv)
{
float P, R, T, V, n;
float a[5] = { 0.244, 0.03412, 1.39, 1.36, 3.59 } , b[5] = { 0.0266, 0.0237, 0.0391, 0.0318, 0.0427 };
/* where P = pressure
R = Boltzmann constant
T = temp (K)
V = volume
n = gm/mols gas
a = van der Waals (1)
b = van der Waals (2)
*/
int i;
enum gas_type { H, He, N, O, CO2 };
enum gas_type gas;


gas = CO2;
V = 22.4;
T = 273.0;
R = 0.082;

n = 10.0;
do {
P = (n*R*T)/(V-n*b[gas]) - (n*n*a[gas])/(V*V);

printf( " %f %f %f \n", n, P, P/n );
n += 10.0;
}
while( P <= 200.0 );
exit(0);
}


[Non-text portions of this message have been removed]

Discussion Thread

JanRwl@A... 2000-08-12 22:24:03 UTC Re: [CAD_CAM_EDM_DRO] OT: Cubic Feet in a Compressed Gas Cylinder? JanRwl@A... 2000-08-12 22:29:17 UTC Re: [CAD_CAM_EDM_DRO] OT: Cubic Feet in a Compressed Gas Cylinder? Jon Elson 2000-08-12 22:35:50 UTC Re: [CAD_CAM_EDM_DRO] OT: Cubic Feet in a Compressed Gas Cylinder? Doug Harrison 2000-08-13 10:20:44 UTC Re: [CAD_CAM_EDM_DRO] OT: Cubic Feet in a Compressed Gas Cylinder? Tim Goldstein 2000-08-13 10:58:24 UTC RE: [CAD_CAM_EDM_DRO] OT: Cubic Feet in a Compressed Gas Cylinder? John Grant 2000-08-13 12:03:11 UTC Re: [CAD_CAM_EDM_DRO] OT: Cubic Feet in a Compressed Gas Cylinder? Doug Harrison 2000-08-13 14:10:31 UTC Re: [CAD_CAM_EDM_DRO] OT: Cubic Feet in a Compressed Gas Cylinder? ptengin@a... 2000-08-13 14:27:44 UTC Re: [CAD_CAM_EDM_DRO] OT: Cubic Feet in a Compressed Gas Cylinder? John Grant 2000-08-13 15:35:04 UTC Re: [CAD_CAM_EDM_DRO] OT: Cubic Feet in a Compressed Gas Cylinder? Tim Goldstein 2000-08-13 16:52:09 UTC RE: [CAD_CAM_EDM_DRO] OT: Cubic Feet in a Compressed Gas Cylinder? JanRwl@A... 2000-08-13 16:54:58 UTC Re: [CAD_CAM_EDM_DRO] OT: Cubic Feet in a Compressed Gas Cylinder? Doug Harrison 2000-08-13 18:37:29 UTC Re: [CAD_CAM_EDM_DRO] OT: Cubic Feet in a Compressed Gas Cylinder? Ejay Hire 2000-08-14 07:20:45 UTC Re: [CAD_CAM_EDM_DRO] OT: Cubic Feet in a Compressed Gas Cylinder? dave engvall 2000-08-14 21:37:32 UTC Re: [CAD_CAM_EDM_DRO] OT: Cubic Feet in a Compressed Gas Cylinder?