Modelling root structure and stability