A theory for analysis of thermoplastic materials