Modeling and Design of Thermal Energy Harvesting Device