A Procedure for Modelling Shallow Dislocation Sources