Biomechanics and stimulation of biomedical devices