A permanently-polarized material such as quartz (SiO2) or barium titanate (BaTiO3) will produce an electric field when the material changes dimensions as a result of an imposed mechanical force. These materials are piezoelectric, and this phenomenon is known as the piezoelectric effect.  Tups are available as piezoelectric or with strain gages.