Calculation of composition and thermodynamic properties in thermal non-equilibrium conditions