Coupled phenomena induced by freezing and thawing in a granular material