A theory for generating and moving energy efficiently