@MyView it depends how rare the substances are that can shape change this way. There are phase change materials out there that are very common, and there have been interesting experiments with these both in the past and current, useful for heating and cooling, though it sound like shape change materials may be more efficient.