Separation and heating of substances