Mathematical modelling of energy systems door