Thetis
Thetis is an unstructured grid coastal ocean model built using the Firedrake finite element framework. Currently Thetis consists of 2D depth averaged and full 3D baroclinic models.
Description
🌊 Thetis
Thetis is an open-source, finite element framework for simulating coastal and estuarine flows with advanced numerics, high flexibility, and easy extensibility.
Thetis builds on the Firedrake finite element library to provide robust solvers for 2D/3D shallow water equations and related physical processes in the coastal ocean.
🌟 Key Features
✅ 2D depth-averaged and 3D baroclinic shallow water solvers
✅ Wetting and drying schemes for realistic coastlines
✅ Scalar transport (salinity, temperature, tracers)
✅ Adjoint capabilities for data assimilation and inverse modeling
✅ Flexible unstructured meshes
✅ Open-source and easily extensible Python codebase
📚 Full documentation and installation instructions are available at thetisproject.org
🚀 Installation
Please see the installation instructions on the website for full details.
For the release branch:
- Install Firedrake and activate its virtual environment.
- Install Thetis within the Firedrake environment:
pip install git+https://github.com/thetisproject/thetis.git
You can instead install and switch between different versions of Thetis with:
git clone https://github.com/thetisproject/thetis
cd thetis
git checkout <branch_name>
pip install -e .
Note
The latest development branch of Thetis (main) will require the corresponding main branch of Firedrake. See the
website for more details.
Getting Started
To get up and running with Thetis once it has been installed, we recommend checking out the basic tutorials and
documentation. Further examples can then be found in the
repository at examples. See examples/README.md for
detailed descriptions of each example script.
📬 Questions?
Check the website for ways of reaching out to developers!
Citing Thetis
If Thetis is helpful in your research, please cite:
Kärnä, T., Kramer, S. C., Mitchell, L., Ham, D. A., Piggott, M. D. & Baptista, A. M. (2018).
Thetis coastal ocean model: discontinuous Galerkin discretization for the three-dimensional hydrostatic equations.
Geoscientific Model Development, 11: 4359–4382.
doi: 10.5194/gmd-11-4359-2018
License
Thetis is available under the MIT License. See the LICENSE file for details.
Reference papers
Mentions
- 1.Author(s): Matthew D. Piggott, Stephan C. Kramer, Simon W. Funke, David M. Culley, Athanasios AngeloudisPublished in Comprehensive Renewable Energy by Elsevier in 2022, page: 176-22010.1016/b978-0-12-819727-1.00179-5
- 2.Author(s): Athanasios Angeloudis, Lucas Mackie, Matthew D. PiggottPublished in Comprehensive Renewable Energy by Elsevier in 2022, page: 80-10310.1016/b978-0-12-819727-1.00093-5
- 3.Author(s): Sibo Cheng, César Quilodrán-Casas, Rossella ArcucciPublished in Lecture Notes in Computer Science, Computational Science – ICCS 2022 by Springer International Publishing in 2022, page: 31-4410.1007/978-3-031-08760-8_3
- 1.Author(s): Zereng Chen, Chi Zhang, Yang Nie, Yuan Li, Qinghe ZhangPublished in Applied Ocean Research by Elsevier BV in 2026, page: 10497410.1016/j.apor.2026.104974
- 2.Author(s): Misha D. Patel, Amanda S. M. Smyth, Athanasios Angeloudis, Thomas A. A. AdcockPublished in Journal of Ocean Engineering and Marine Energy by Springer Science and Business Media LLC in 2026, page: 1325-135010.1007/s40722-026-00490-5
- 3.Author(s): Yao Gahounzo, Michal Kopera, Robert L. Higdon, Eric P. Chassignet, Alan Wallcraft, Alexandra BozecPublished in Journal of Computational Physics by Elsevier BV in 2026, page: 11449610.1016/j.jcp.2025.114496
- 4.Author(s): Jon Hill, Ana Vila-Concejo, Katherine C. LeePublished in Ocean Modelling by Elsevier BV in 2026, page: 10272310.1016/j.ocemod.2026.102723
- 5.Author(s): Jessica Guichard, Robert Rawlinson-Smith, Daniel Coles, Deborah GreavesPublished in Frontiers in Energy Research by Frontiers Media SA in 202610.3389/fenrg.2026.1732813
- 6.Author(s): Ange Pacifique Ishimwe, Eric Deleersnijder, Vincent Legat, Jonathan LambrechtsPublished in Journal of Computational Physics by Elsevier BV in 2025, page: 11348210.1016/j.jcp.2024.113482
- 7.Author(s): Konstantinos Pappas, Nguyen Quang Chien, Ilias Zilakos, Lindsay Beevers, Athanasios AngeloudisPublished in Proceedings of the Royal Society A: Mathematical, Physical and Engineering Sciences by The Royal Society in 202510.1098/rspa.2023.0867
- 8.Author(s): Nguyen Q. Chien, Connor Jordan, Emils Brazovskis, Brian Sellar, João Ribeiro, Adélio Silva, Athanasios AngeloudisPublished in Applied Ocean Research by Elsevier BV in 2025, page: 10484710.1016/j.apor.2025.104847
- 9.Author(s): Connor Jordan, Athanasios AngeloudisPublished in Journal of Hydraulic Research by Informa UK Limited in 2025, page: 622-63910.1080/00221686.2025.2554989
- 10.Author(s): Zereng Chen, Qinghe Zhang, Chi Zhang, Yang Nie, Guoquan RanPublished in Ocean Engineering by Elsevier BV in 2025, page: 12243410.1016/j.oceaneng.2025.122434
- 11.Author(s): Lukas Lundgren, Christian Helanow, Jonathan Wiskandt, Inga Monika Koszalka, Josefin AhlkronaPublished in Journal of Computational Physics by Elsevier BV in 2025, page: 11398110.1016/j.jcp.2025.113981
- 12.Author(s): Zereng Chen, Qinghe Zhang, Guoquan Ran, Yang NiePublished in Geoscientific Model Development by Copernicus GmbH in 2025, page: 7199-721410.5194/gmd-18-7199-2025
- 13.Author(s): Georges Kesserwani, Xitong Sun, Mahya Hajihassanpour, Mohammad Kazem SharifianPublished in Advances in Water Resources by Elsevier BV in 2025, page: 10498610.1016/j.advwatres.2025.104986
- 14.Author(s): Andrew R. Porter, Patrick HeimbachPublished in State of the Planet by Copernicus GmbH in 2025, page: 1-610.5194/sp-5-opsr-23-2025
- 15.Author(s): Connor Jordan, Daniel Coles, Fraser Johnson, Athanasios AngeloudisPublished in International Marine Energy Journal by European Wave and Tidal Energy Conference in 2025, page: 227-23610.36688/imej.8.227-236
- 16.Author(s): Achim WirthPublished in Nonlinear Processes in Geophysics by Copernicus GmbH in 2025, page: 261-28010.5194/npg-32-261-2025
- 17.Author(s): Clint Dawson, Mark Loveland, Benjamin Pachev, Jennifer Proft, Eirik ValsethPublished in npj Natural Hazards by Springer Science and Business Media LLC in 202410.1038/s44304-024-00036-5
- 18.Author(s): Andrew Lyden, Wei Sun, Iain Struthers, Lukas Franken, Seb Hudson, Yifan Wang, Daniel FriedrichPublished in Energy Strategy Reviews by Elsevier BV in 2024, page: 10137510.1016/j.esr.2024.101375
- 19.Author(s): Connor Jordan, Joseba Agirre, Athanasios AngeloudisPublished in Renewable Energy by Elsevier BV in 2024, page: 12138110.1016/j.renene.2024.121381
- 20.Author(s): Chris Old, Brian Sellar, Athanasios AngeloudisPublished in Journal of Ocean Engineering and Marine Energy by Springer Science and Business Media LLC in 2024, page: 313-33410.1007/s40722-024-00314-4
- 21.Author(s): Ivo Pasmans, Yumeng Chen, Alberto Carrassi, Chris K. R. T. JonesPublished in Quarterly Journal of the Royal Meteorological Society by Wiley in 2024, page: 2820-284710.1002/qj.4737
- 22.Author(s): Can Zhang, Xiaoming Cheng, Athanasios Angeloudis, Stephan C. Kramer, Chengsheng Wu, Ying Chen, Matthew D. PiggottPublished in Ocean Engineering by Elsevier BV in 2024, page: 11961810.1016/j.oceaneng.2024.119618
- 23.Author(s): Anastasia K. Fragkou, Christopher Old, Vengatesan Venugopal, Athanasios AngeloudisPublished in Environmental Modelling & Software by Elsevier BV in 2024, page: 10603410.1016/j.envsoft.2024.106034
- 24.Author(s): Shuaib Rasheed, Simon C. Warder, Yves Plancherel, Matthew D. PiggottPublished in Natural Hazards and Earth System Sciences by Copernicus GmbH in 2024, page: 737-75510.5194/nhess-24-737-2024
- 25.Author(s): Zereng Chen, Qinghe Zhang, Guoquan Ran, Yang NiePublished in Journal of Marine Science and Engineering by MDPI AG in 2024, page: 14710.3390/jmse12010147
- 26.Author(s): Tridib Banerjee, Sergey Danilov, Knut Klingbeil, Jean-Michel CampinPublished in Ocean Modelling by Elsevier BV in 2024, page: 10246010.1016/j.ocemod.2024.102460
- 27.Author(s): Matias Alday, George LavidasPublished in Renewable Energy by Elsevier BV in 2024, page: 11968310.1016/j.renene.2023.119683
- 28.Author(s): Reuben W. Nixon-Hill, Daniel Shapero, Colin J. Cotter, David A. HamPublished in Geoscientific Model Development by Copernicus GmbH in 2024, page: 5369-538610.5194/gmd-17-5369-2024
- 29.Author(s): Misha D. Patel, Amanda S. M. Smyth, Athanasios Angeloudis, Thomas A. A. AdcockPublished in Journal of Ocean Engineering and Marine Energy by Springer Science and Business Media LLC in 2024, page: 731-74710.1007/s40722-024-00342-0
- 30.Author(s): Siddhartha Bishnu, Mark R. Petersen, Bryan Quaife, Joseph SchoonoverPublished in Journal of Advances in Modeling Earth Systems by American Geophysical Union (AGU) in 202410.1029/2022ms003545
- 31.Author(s): Patrick D Sharrocks, Jon HillPublished in Journal of Quaternary Science by Wiley in 2023, page: 473-48710.1002/jqs.3586
- 32.Author(s): Abdelouahed Ouardghi, Mohammed Seaid, Mofdi El‐Amrani, Nabil El MocaydPublished in International Journal for Numerical Methods in Fluids by Wiley in 2023, page: 336-36310.1002/fld.5248
- 33.Author(s): Denise Degen, Daniel Caviedes Voullième, Susanne Buiter, Harrie-Jan Hendricks Franssen, Harry Vereecken, Ana González-Nicolás, Florian WellmannPublished in Geoscientific Model Development by Copernicus GmbH in 2023, page: 7375-740910.5194/gmd-16-7375-2023
- 34.Author(s): Jon Hill, Graham Rush, Jeff Peakall, Michael Johnson, Luke Hodson, Natasha L. M. Barlow, Elisabeth T. Bowman, W. Roland Gehrels, David M. Hodgson, Georges KesserwaniPublished in The Depositional Record by Wiley in 2023, page: 1046-106510.1002/dep2.247
- 35.Author(s): Sarah A. Woodroffe, Jon Hill, Emmanuel Bustamante‐Fernandez, Jerry M. Lloyd, Jake Luff, Sarah Richards, Ian ShennanPublished in Journal of Quaternary Science by Wiley in 2023, page: 1219-123210.1002/jqs.3539
- 36.Author(s): Can Zhang, Jisheng Zhang, Athanasios Angeloudis, Yudi Zhou, Stephan C. Kramer, Matthew D. PiggottPublished in Energies by MDPI AG in 2023, page: 174210.3390/en16041742
- 37.Author(s): Joseph G. Wallwork, Athanasios Angeloudis, Nicolas Barral, Lucas Mackie, Stephan C. Kramer, Matthew D. PiggottPublished in Journal of Ocean Engineering and Marine Energy by Springer Science and Business Media LLC in 2023, page: 193-21610.1007/s40722-023-00307-9
- 38.Author(s): Georges Kesserwani, Janice Lynn Ayog, Mohammad Kazem Sharifian, Domenico BaúPublished in Journal of Hydraulic Engineering by American Society of Civil Engineers (ASCE) in 202310.1061/jhend8.hyeng-13244
- 39.Author(s): Majdi Fanous, Alireza Daneshkhah, Jonathan M. Eden, Renji Remesan, Vasile PaladePublished in Coastal Engineering by Elsevier BV in 2023, page: 10430310.1016/j.coastaleng.2023.104303
- 40.Author(s): William I. Scott, Stephan C. Kramer, Paul R. Holland, Keith W. Nicholls, Martin J. Siegert, Matthew D. PiggottPublished in Ocean Modelling by Elsevier BV in 2023, page: 10217810.1016/j.ocemod.2023.102178
- 41.Author(s): Ange Pacifique Ishimwe, Eric Deleersnijder, Vincent Legat, Jonathan LambrechtsPublished in Ocean Modelling by Elsevier BV in 2023, page: 10227310.1016/j.ocemod.2023.102273
- 42.Author(s): Tuomas Kärnä, Joseph G. Wallwork, Stephan C. KramerPublished in Journal of Advances in Modeling Earth Systems by American Geophysical Union (AGU) in 202310.1029/2022ms003169
- 43.Author(s): Majdi Fanous, Jonathan M. Eden, Renji Remesan, Alireza DaneshkhahPublished in Environmental Modelling & Software by Elsevier BV in 2023, page: 10565810.1016/j.envsoft.2023.105658
- 44.Author(s): Jamie M. Lilly, Darren Engwirda, Giacomo Capodaglio, Robert L. Higdon, Mark R. PetersenPublished in Monthly Weather Review by American Meteorological Society in 2023, page: 3191-320810.1175/mwr-d-23-0113.1
- 45.Author(s): Anastasia K. Fragkou, Christopher Old, Vengatesan Venugopal, Athanasios AngeloudisPublished in Ocean Modelling by Elsevier BV in 2023, page: 10219310.1016/j.ocemod.2023.102193
- 46.Author(s): César Quilodrán-Casas, Rossella ArcucciPublished in Physica A: Statistical Mechanics and its Applications by Elsevier BV in 2023, page: 12856410.1016/j.physa.2023.128564
- 47.Author(s): Joseph G. Wallwork, Nicolas Barral, David A. Ham, Matthew D. PiggottPublished in Computer-Aided Design by Elsevier BV in 2022, page: 10318710.1016/j.cad.2021.103187
- 48.Author(s): D. Rhodri Davies, Stephan C. Kramer, Sia Ghelichkhan, Angus GibsonPublished in Geoscientific Model Development by Copernicus GmbH in 2022, page: 5127-516610.5194/gmd-15-5127-2022
- 49.Author(s): Simon C. Warder, Athanasios Angeloudis, Matthew D. PiggottPublished in Ocean Dynamics by Springer Science and Business Media LLC in 2022, page: 361-38210.1007/s10236-022-01507-x
- 50.Author(s): Can Zhang, Stephan C. Kramer, Athanasios Angeloudis, Jisheng Zhang, Xiangfeng Lin, Matthew D. PiggottPublished in International Marine Energy Journal by European Wave and Tidal Energy Conference in 2022, page: 273-28010.36688/imej.5.273-280
- 1.Author(s): Emils Brazovskis, Lindsay Beevers, Athanasios AngeloudisPublished by Elsevier BV in 202610.2139/ssrn.6149462
- 2.Author(s): Clint Dawson, Mark Loveland, Benjamin Pachev, Eirik Valseth, Jennifer ProftPublished by Research Square Platform LLC in 202410.21203/rs.3.rs-4432763/v1
- 3.Author(s): Connor Jordan, Joseba Agirre, Athanasios AngeloudisPublished by Elsevier BV in 202410.2139/ssrn.4767878
- 4.Author(s): Andrew PorterPublished by Copernicus GmbH in 202410.5194/sp-2024-32-ac2
- 5.Author(s): Konstantinos Pappas, Nguyen Chien, Ilias Zilakos, Lindsay Beevers, Athanasios AngeloudisPublished by California Digital Library (CDL) in 202310.31223/x50975
- 6.Author(s): Tridib Banerjee, Sergey Danilov, Knut KlingbeilPublished by arXiv in 202310.48550/arxiv.2310.16768
- 7.Author(s): Andrew Francis Lyden, Wei Sun, Iain A. Struthers, Lukas Franken, Seb Hudson, Yifan Wang, Daniel FriedrichPublished by Elsevier BV in 202310.2139/ssrn.4509311
- 8.Author(s): Anastasia Fragkou, Christopher Old, Vengatesan Venugopal, Athanasios AngeloudisPublished by California Digital Library (CDL) in 202210.31223/x5hs9d
- 9.Author(s): Shuaib Rasheed, Simon C. Warder, Yves Plancherel, Matthew D. PiggottPublished by Copernicus GmbH in 202210.5194/nhess-2022-95
- 10.Published by Copernicus GmbH in 202210.5194/gmd-2021-367-rc5
- 11.Published by Copernicus GmbH in 202210.5194/gmd-2021-367-rc7
- 12.Author(s): Connor Jordan, Davor Dundovic, Anastasia Fragkou, Georgios Deskos, Daniel Coles, Matthew Piggott, Athanasios AngeloudisPublished by California Digital Library (CDL) in 202210.31223/x53s55
- 13.Author(s): Joseph Wallwork, Nicolas Barral, David Ham, Matthew PiggottPublished by California Digital Library (CDL) in 202210.31223/x56021
- 14.Published by Copernicus GmbH in 202210.5194/gmd-2021-367-rc6
- 15.Published by Copernicus GmbH in 202210.5194/gmd-2021-367-rc1
- 16.Author(s): Simon Warder, Athanasios Angeloudis, Matthew PiggottPublished by California Digital Library (CDL) in 202210.31223/x5g048
- 17.Author(s): Joseph Wallwork, Athanasios Angeloudis, Nicolas Barral, Lucas Mackie, Stephan Kramer, Matthew PiggottPublished by California Digital Library (CDL) in 202210.31223/x5h06b
- 18.Published by Copernicus GmbH in 202210.5194/gmd-2021-367-cc1
- 19.Author(s): Mariana Clare, Stephan Kramer, Colin Cotter, Matthew PiggottPublished by California Digital Library (CDL) in 202110.31223/x5f327
- 20.Author(s): Vera SidorenkoPublished by Copernicus GmbH in 202110.5194/gmd-2020-438-ac1
- 21.Author(s): Simon Warder, Stephan Kramer, Matthew PiggottPublished by California Digital Library (CDL) in 202110.31223/x55g7f
- 22.Published by ETH Zurich in 202110.3929/ethz-b-000463520
- 23.Author(s): Joseph Wallwork, Lucas Mackie, Stephan Kramer, Nicolas Barral, Athanasios Angeloudis, Matthew PiggottPublished by California Digital Library (CDL) in 202110.31223/x5d61k
- 24.Author(s): Simon Warder, Matthew PiggottPublished by California Digital Library (CDL) in 202110.31223/x5cg79
- 25.Published by Copernicus GmbH in 202110.5194/gmd-2020-438-ec1
- 26.Published by Copernicus GmbH in 202110.5194/gmd-2020-438-rc2
- 27.Published by Copernicus GmbH in 202110.5194/gmd-2020-438-cec1
- 28.Author(s): Simon Warder, Kevin Horsburgh, Matthew PiggottPublished by California Digital Library (CDL) in 202010.31223/osf.io/ywn6j
- 29.Author(s): Amy Baker, Robert Craighead, Emma Jarvis, Harriett Stenton, Athanasios Angeloudis, Lucas Mackie, Alexandros Avdis, Matthew Piggott, Jon HillPublished by California Digital Library (CDL) in 202010.31223/osf.io/vapmu
- 30.Author(s): Mariana Clare, James Percival, Athanasios Angeloudis, Colin Cotter, Matthew PiggottPublished by California Digital Library (CDL) in 202010.31223/osf.io/tpqvy
- 31.Author(s): Athanasios Angeloudis, Stephan Kramer, Noah Hawkins, Matthew PiggottPublished by California Digital Library (CDL) in 202010.31223/osf.io/ancu8
- 32.Author(s): Simon Warder, Athanasios Angeloudis, Stephan Kramer, Colin Cotter, Matthew PiggottPublished by California Digital Library (CDL) in 202010.31223/osf.io/mv9qy
- 33.Author(s): Mariana Clare, Joseph Wallwork, Stephan Kramer, Hilary Weller, Colin Cotter, Matthew PiggottPublished by California Digital Library (CDL) in 202010.31223/x54g6r
- 34.Author(s): Lucas Mackie, Paul Evans, Magnus Harrold, Tim O`Doherty, Matthew Piggott, Athanasios AngeloudisPublished by California Digital Library (CDL) in 202010.31223/osf.io/8txmd
- 35.Author(s): Joseph Wallwork, Nicolas Barral, Stephan Kramer, David Ham, Matthew PiggottPublished by California Digital Library (CDL) in 201910.31223/osf.io/cs4we
- 36.Author(s): Freddie Harcourt, Athanasios Angeloudis, Matthew PiggottPublished by California Digital Library (CDL) in 201910.31223/osf.io/j2u9k