Incorporating the nonlocality of a nonlinear continuum in an effective 1D model for monopile foundations