Chemical and New Energy Device Thermodynamics