This may not be a way of producing energy, but it would reduce heating costs. Build bigger! With a whole town in a single building, the waste heat from people alone would pose a problem with cooling. There will be a certain ratio of volume to surface area where the concept of a "heater" will be laughable. Try that for,er,size.