A finite element model for rate-dependent behavior of ferroelectric ceramics