summaryrefslogtreecommitdiffstats
path: root/.tx
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2016-03-09 13:14:05 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-13 08:32:21 -0700
commitfcf1898b0c2e74671a3d65f16b3fa52eb22b965d (patch)
treec9e65a3b19d8d37bfc8e1c335dd7b2a04efec4e8 /.tx
parent6bcfb033eee341351366129df2c61fff4bc4b71b (diff)
downloadsubsurface-fcf1898b0c2e74671a3d65f16b3fa52eb22b965d.tar.gz
gas-model: add R compressibility script
It annoyed me that we hand-waved a bit about how the virial factors were actually computed in the gas-model.c file, so here's an actual R script that computes them and plots the results. You can run it with (for example): R --vanilla < compressibility.r and it will generate a Rplots.pdf of the plots, and the coefficients will be shown on stdout. The result actually differs in insignificant ways from the values that Lubomir computed, which is likely just due to tools. I used R, Lubomir seems to have used http://polynomialregression.drque.net/online.php but the actual curve is pretty much the same. NOTE! R is not entirely happy about the non-linear fit of the Helium curve: the fit is *so* precise that it failes the R relative-offset convergence criterion. That is apparently generally a sign of artificial data. That is probably because Lubomir generated them from the linear mix of two polynomial fits, rather than a linear mix of the original data. But maybe the original data was artificial? Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to '.tx')
0 files changed, 0 insertions, 0 deletions