Seol mar théacs é seo: Design and optimization of thermal systems