A model for seismic velocity and attenuation in petroleum source rocks