Ising Models and Geological Applications