Another way to say "a heat source is used for keeping warm" is "You can keep warm by using a heat source."