A new approach for modelling chromospheric evaporation in response to enhanced coronal heating. I. The method