[PATCH 2/2] gas model: replace Redlich-Kwong with least-square quintic

Linus Torvalds torvalds at linux-foundation.org
Wed Mar 2 19:29:43 PST 2016


Answering to myself because I noticed how powerful the google graphing was, so..

On Wed, Mar 2, 2016 at 7:15 PM, Linus Torvalds
<torvalds at linux-foundation.org> wrote:
>
> However, even that almost one percentage point difference turns out to
> be not because the linear mixing doesn't work. Just taking the _air_
> plots from baue.org shows that baue says 1.079 for air at 275.
>
> So the linear mixing actually matches the baue air compressibility
> factor almost exactly. It's just that baue.org and the Wikipedia
> tables don't agree at 275 bar.

It's easy to make google show this. Just paste in this

 y=0.9994355774568318-0.00035668306234655186*x+0.00000218474273138185*x^2+5.8403793405e-9*x^3-2.780101081e-11*x^4+3.144563e-14*x^5,
 y=1.0002556612420115-0.0003115084635183305*x+0.00000227808965401253*x^2+1.91596422989e-9*x^3-8.78421542e-12*x^4+6.77746e-15*x^5
  from 0 to 500

and google will give two nice plots for your polynomials for the
Wikipedia data vs the baue.org data.

Of course, the Wikipedia data was for 300K, and the baue.org data
didn't give a temperature. So they might both be "correct", just at
different temperature points.

Regardless, they are certainly close enough that any difference
doesn't really *matter* to us.

                Linus


More information about the subsurface mailing list