In the "talk" tab for Wikipedia Heat Engine article, someone is questioning whether an internal combustion engine can be modeled as a heat engine - and therefore is limited or is not limited by Carnot efficiency. The arguments are that the input is chemical energy, not heat. And also that IC engines dont operate on a closed cycle. Fresh air enters and is expelled each cycle. There are some answers there as well, but I'd like to get input from you guys to settle this matter once and for all!
Is it ok to model IC engines as heat engines? And in a wider sence; can you model a solar cell as a heat engine and calculate carnot efficiency with T_c being the air temperature, and T_h being temperature of the sun. (I saw this in a textbook once, I believe.)
https://en.wikipedia.org/wiki/Talk:Heat_engine (section headline: "Internal combustion engines can't be considered heat engines")

