Simulations of self-propelled anguilliform swimming using the immersed boundary method in OpenFOAM