Thermodynamics is mainly concerned on the energy changes accompanying  with physical and chemical phenomena (reactions, energy transformation, and other). Thermodynamics prove if these phenomena are spontaneous or not (spontaneous : means  there is not influence of external environment ). Thermodynamics based on two fundamental basic: the first and the second  thermodynamics principles.