This repository is part of an emerging collection of computational geodynamics utilities.
Fluidity is an open source CFD project, with adaptive mesh support and ready-made, tested solvers.
A tarball of the template files can be downloaded from https://builds.sr.ht/~adigitoleo/fluidity-sim by clicking on the latest (top-most) build number and finding the
fluidity-sim.tar.gz download link under "Artifacts". You can alternatively clone the repository with
The provided template requires a Fluidity executable built with Python support.
You will also need gmsh version 4.4.1 and the accompanying Python bindings.
Fluidity is not compatible with meshes from the most recent gmsh versions.
Furthermore, the gmsh API is not stable across minor versions.
Instead, you will need to clone the gmsh repository with git and
git checkout gmsh_4_4_1 in the gmsh directory.
gmsh/api/gen.py script to create the API header files,
gmsh/api to your
(and ensure that gmsh is installed)
before generating your mesh
(see e.g. https://stackoverflow.com/questions/3402168/permanently-add-a-directory-to-pythonpath).
In general, you will want to edit all the files in the
functions.pydefines functions for the diagnostic algorithms
constants.pydefines constants that can be used in
functions.pyor in the flml file
meshgen.pyis a script to generate the initial mesh (run automatically from the Makefile)
.flmlfile defines the fluidity options in an XML tree
Finally, edit the option declarations at the top of the Makefile and run the simulation with