Giant electrocaloric effect at the antiferroelectric-to-ferroelectric phase boundary in PbZrTiO
3Molecular dynamics simulations predict a giant electrocaloric effect at the ferroelectric-antiferroelectric phase boundary in PZT. The simulations show that ferroelectric composites exhibit a positive electrocaloric effect, while antiferroelectric ones show a positive-to-negative crossover. The giant effect originates from the easy structural response of the dipolar system to external stimuli in the transition region, where complex domain patterns appear.