New approach to the compound energy formalism (NACEF) part I. Thermodynamic modeling based on the sublattice model. (March 2023)