Two-phase flow generator cycle of a magnetohydrodynamic /MHD/ generator uses a working fluid which is compressible and treated as an expanding gas. The two-phase mixture passes from the heat source through the MHD generator, where the expansion process takes place and the electrical energy is extracted