The geometric calculus of variations and modelling natural phenomena