Simultaneous power generation and heat recovery using a heat pipe assisted thermoelectric generator system