Pātuhitia tēnei: Analysis and design of energy systems