In this manuscript, a solar cavity packed with thermoelectric generator modules is investigated numerically. The hot plate of TEG modules make the inner surface of the cube, and the cold plate is outside of the cavity, under natural convection. The TEG modules are electrically in series. The solution algorithm using the equations of heat transfer and generated power of TEG modules is d...