Simulation of a Wave entering a bay using a numerical solver of fourier series