A continuum model for dissipative ionic crystals