I need the basics for including energy loss in Hamilton formulation for Finite element analysis for vibration of viscoelastic materials. The papers I read use complex modulus to represent viscoelastic losses or convolution integrals. Can someone give me a link where the formulation starts from Hamilton's principle?