Flowy is a probabilistic code to simulate the emplacement of lava. It is a re-implementation of the Mr. Lava Loba method [1,2] in C++20.
Installation of dependencies with micromamba
To install micromamba, execute
"${SHELL}" <(curl -L micro.mamba.pm/install.sh)
For details, refer to the micromamba docs here.
Then, create and activate the environment.
micromamba create -f environment.yml
micromamba activate flowyenv
We use meson
to compile and build flowy
.
meson setup build
meson compile -C build
To install flowy
to your conda
environment, run the following:
meson setup build --prefix $CONDA_PREFIX
meson install -C build
Both codes were run on the examples and the runtime was averaged over 10 runs. Flowy is about 100 times faster on the Kilauea example and about 50 times faster on the Mt. Etna example.
Etna | Kilauea | |
---|---|---|
Flowy |
|
|
Mr. Lava Loba |
|
|
[1] Mattia de' Michieli Vitturi, Simone Tarquini, "MrLavaLoba: A new probabilistic model for the simulation of lava flows as a settling process" Journal of Volcanology and Geothermal Research, 2018.