Thermodynamics and Ecological Modelling