[PATCH] Take incompressibility of gas into account at higher pressures

Dirk Hohndel dirk at hohndel.org
Mon Feb 25 16:49:26 PST 2013


Linus Torvalds <torvalds at linux-foundation.org> writes:

> From: Linus Torvalds <torvalds at linux-foundation.org>
> Date: Mon, 25 Feb 2013 15:23:16 -0800
> Subject: [PATCH] Take incompressibility of gas into account at higher pressures
>
> This creates a helper function called "gas_volume()" that takes the
> cylinder and a particular pressure, and returns the estimated volume of
> the gas at surface pressure, including proper approximation of the
> incompressibility of gas.

Impressive - I did not expect us to do this :-)

> It very much is an approximation, but it's closer to reality than
> assuming a pure ideal gas.  See for example compressibility at
>
>     http://en.wikipedia.org/wiki/Compressibility_factor

I did some sanity checks and this appears to create reasonable results
that roughly match what I could find in data points online.

Thanks for doing this!

/D


More information about the subsurface mailing list