Variable kinematic beam elements for electro-mechanical analysis