Modelling of hydraulic fracturing and its engineering application