A Numerical Framework for Modelling Folds in Structural Geology