the effect of porosity in thermal shock