Basic Principles of the Energy Systems