internal combustion engines generate heat inside the engine itself. other heat engines may absorb heat from an external source. heat engines can be open to the air or sealed and closed off to the outside (this is called an open or closed cycle).