Thermodynamic model of the coupled valence and spin state transition in cobaltates. (11th December 2020)