Automated modelling of viscoelastic materials