does thermodynamics have a direct effect on a food chain?

I believe so. Try googling "thermodynamics food chain" without quotes and go to the first page that comes up... it's called "Trophic Levels and Food Chains."