I used SPHysics, a platform of Smoothed Particle Hydrodynamics (SPH) codes inspired by the formulation of Monaghan (1992) developed jointly by researchers at the Johns Hopkins University (U.S.A.), the University of Vigo (Spain), the University of Manchester (U.K.) and the University of Rome La Sapienza (Italy). Developed over a number of years primarily to study free-surface flow phenomena where Eulerian methods can be difficult to apply, such as waves, impact of dam-breaks on off-shore structures.
Say more about what scale and type of problem you are trying to model.
Free Boussinesq codes include Funwave and Coulwave. Fully 3D nonhydrostatic codes include nhwave and swash. If you are interested in larger scale (river mouth, estuarine, tidal circulation problems) there are Delft3D and others. Choice would be based on application.
You can also try FVCOM, it uses finite volumes on a flexible mesh: http://fvcom.smast.umassd.edu/
In addition to what it was mentioned above (delft3d, which uses structured, curvilinear mesh), Deltares also provides a Flexible Mesh version, DFLOW-FM, which is available as free software for testers ( you need to ask for a special licence). More information about a paid license can be found here: https://www.deltares.nl/en/news/delft3d-flexible-mesh-suite-2016-now-available-for-download/. For the free license contact the sales department.