I have been considering a situation, where a piece of superconducting (SC) material is put onto a magnet and then cooled through SC transition. As I understand, repulsion occurs and the SC piece gets away from the magnet (is it correct?). Assuming this happens, the SC piece may shoot upwards resisting gravity. In this case work is done (against gravity) and energy should be conserved. Where does this energy come from? Yes, I have done a search on this and did not find an answer. Thank you.