The following is a set of worksheets developed in Mathematica, then html-ized.  They represent the work for the paper "Equations of State in Exploration", Organic Geochemistry 33.

Section 1:  the flash / EOS model

  1.  Calculate the density of a water HCOOH (formic acid) mix.  This demonstrates the use of empirical (the so-called 'kij') parameters to improve goodness-of-fit.

  2. Compare different Equations of State in their prediction of the density of Methane.  This sheet compares the four EOS used in the They sure aren't very good at this!

  3. Compare different Equations of State in their prediction of the density of water.  

Section 2:  using the model

  1. The paper uses equations of state to predict the chemical effects of several different production scenarios.  The goal is to determine if a production draw-down (i.e., pressure draw-down in a reservoir due to producing one phase) can be distinguished from a simple pressure draw-down (where a reservoir in hydro-dynamic, but not chemical, communication with a producing reservoir only sees a pressure drop).  Answer:  yes.

Section 3:  Phase Behavior / Fractionation Scenarios

  1. The Master Sheet

  2. Evaporative Fractionation:  where a body of gas interacts with a body of oil, causing the oil to lose its most volatile components.  An EVENT.

  3. Gas Washing:  where a gas stream interacts with a stationary body of oil (a PROCESS).

Appendicies:  Details of the calculations

  1. Adding Fingerprinting compounds

  2. technical point:  how to calculate the GOR of a mixture

  3. determine the mass-equivalent n-alkane to a  plus fraction.