Relaxation model for describing the strain of porous materials