Coarse-graining description of solid systems at nonzero temperature