The Python package Fluidsim_ocean will provide solvers useful for studying the oceanic dynamics implemented using the CFD framework fluidsim.
A general presentation of the equations and the solvers can be found here:
For the equations for the particular solvers, have a look at the documentation of the solvers in the Modules Reference below.
Fluidsim is a framework for studying fluid dynamics with numerical simulations using Python. It is part of the wider project FluidDyn.
For simple setup,
pip install fluidsim_ocean will work.
python setup.py develop
Shallow water 2 layers (
Shallow water time stepper (