Refractive Cosmology and Continuum Mechanics