Anfonwch hwn fel neges destun: A thermomechanical framework for constitutive models for rate-independent dissipative materials