Effects of thermal shock due to rapid cooling on the mechanical properties of sandstone