Published April 16, 2024 | Version 1.3.2
Software Open

FEniCS-full-Stokes

  • 1. Kiel University

Contributors

Data curator:

  • 1. ROR icon Kiel University

Description

This Python 3 source code solves the full-Stokes equations with different solvers and step size controls.

We solve the full-Stokes equations with different algorithms and test these with the experiment ISMIP-HOM B, see (Pattyn et al.; Benchmark experiments for higher-order and full-Stokes ice sheet models (ISMIP-HOM; 2008; The Cryosphere). The program allows one to choose between Armijo step sizes, exact step sizes, and constant step sizes; the Picard iteration and the Newton iteration; the functional and the residual norm as a minimization term; and an experiment in two and three dimensions. A combination of exact step sizes with the residual norm as the minimization term is not possible as the exact step sizes rely on a convex function as the minimization term. An executable example with comments is in examples/run_fullStokes.py. In this example are written comments on how to switch between algorithms.

This source code relies on FEniCS https://fenicsproject.org/download/archive/ version 2019.1.0. FEniCS allows us to formulate the problem in the variational formulation. The use of Finite Elements is implemented by FEniCS. We only consider an iterative solver to solve the nonlinear full-Stokes equations.

 

The mathematical background can be seen here: https://link.springer.com/article/10.1007/s11075-024-01941-6

Examples are discussed here: https://gmd.copernicus.org/articles/17/4943/2024/

Notes

New in this version:

  • For the time-dependent Arola E1 problem, we fixed the mistake of using the exact step size method on the interval (0.5,4) for the Picard iteration. Now, we use the interval (0,4). The results are qualitatively the same as in version 1.3.1.
  • Note that the commented out lines 17, 56-58 in picard.py and 16, 50-52 in newton.py are used for the stopping criteria that the residual norm reduced enough compared to the initial guess. They are not used for the experiments in which the number of iterations is fixed.

Files

solvers_full_Stokes_equations_v1_3_2.zip

Files (97.1 MB)

Name Size Download all
md5:0e7db6f09de3dcef3254cf56384a0948
97.1 MB Preview Download