Model of financing for thermal energy sector