imex_sflow2d_v2

Shallow water variable density gas-particle flow

https://github.com/demichie/imex_sflow2d_v2

Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 1 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.0%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Shallow water variable density gas-particle flow

Basic Info
Statistics
  • Stars: 9
  • Watchers: 4
  • Forks: 3
  • Open Issues: 3
  • Releases: 3
Created over 6 years ago · Last pushed 6 months ago
Metadata Files
Readme Changelog Contributing License Code of conduct Citation Authors

README.md

Depth-averaged gas-particles model

SQAaaS badge

SQAaaS badge shields.io

DOI

Shallow water model for multiphase flow (gas+particles) with density of gas temperature-dependent.

To compile the code you need a Fortran compiler and the NetCDF library for Fortran. You can install both with anaconda, by creating an anaconda environment and activating it:

conda create -n fortranenv conda-forge::gfortranlinux-64 sysroot_linux-64 make conda-forge::netcdf-fortran conda-forge::liblapack conda-forge::libblas

conda activate fortran_env

or, on a osx computer:

conda create -n fortran_env conda-forge::gfortran make conda-forge::netcdf-fortran conda-forge::liblapack conda-forge::libblas

conda activate fortran_env

To compile:

autoreconf -i

Then on linux (replace USERNAME with you user account):

./configure --with-netcdf=/home/USERNAME/anaconda3/envs/fortran_env

On OSX (replace USERNAME with you user account):

./configure --with-netcdf=/USERS/USERNAME/anaconda3/envs/fortran_env

To compile the code with OpenMP add the following flag in src/Makefile: 1) with gfortran: -fopenmp 2) with intel: -qopenmp

make

make install

The executable is copied in the bin folder.

Several examples can be found in the EXAMPLES folder.

Docker container

If you do not have a compiler on your system, there is a Docker container with the executable of the latest version of the model at the following link:

https://github.com/demichie/IMEX_SfloW2D_v2/pkgs/container/imex_sflow2d_v2

If you have docker installed on your computer, you can download the container from the commant line with:

docker pull ghcr.io/demichie/imexsflow2dv2:sha256-080bf69dd96c57482ca27fa37096e96b9b15813ca5d7a8a5736ea9a0599884f9

LINUX/MAC

Create a folder for your simulation with all the input files and then run the container with:

docker run -v $PWD:/home/usersw/SWRUNS -i -t demichie/imexsflow2dv2 run

If your simulation produced .asc output files, you can post-process those files to have .png files with:

docker run -v $PWD:/home/usersw/SWRUNS -i -t demichie/imexsflow2dv2 plot_overlay

If your simulation produced .p_2d output files, you can post-process those files to have a netCDF4 file with:

docker run -v $PWD:/home/usersw/SWRUNS -i -t demichie/imexsflow2dv2 p2dtonetcdf

WINDOWS COMMAND LINE

Create a folder for your simulation with all the input files and then run the container with:

docker run -v %cd%:/home/usersw/SWRUNS -i -t demichie/imexsflow2dv2 run

If your simulation produced .asc output files, you can post-process those files to have .png files with:

docker run -v %cd%:/home/usersw/SWRUNS -i -t demichie/imexsflow2dv2 plot_overlay

If your simulation produced .p_2d output files, you can post-process those files to have a netCDF4 file with:

docker run -v %cd%:/home/usersw/SWRUNS -i -t demichie/imexsflow2dv2 p2dtonetcdf

WINDOWS POWERSHELL

Create a folder for your simulation with all the input files and then run the container with:

docker run -v ${PWD}:/home/usersw/SWRUNS -i -t demichie/imexsflow2dv2 run

If your simulation produced .asc output files, you can post-process those files to have .png files with:

docker run -v ${PWD}:/home/usersw/SWRUNS -i -t demichie/imexsflow2dv2 plot_overlay

If your simulation produced .p_2d output files, you can post-process those files to have a netCDF4 file with:

docker run -v ${PWD}:/home/usersw/SWRUNS -i -t demichie/imexsflow2dv2 p2dtonetcdf

Owner

  • Name: Mattia de' Michieli Vitturi
  • Login: demichie
  • Kind: user
  • Location: Pisa, Italy
  • Company: Istituto Nazionale di Geofisica e Vulcanologia

My research interests lie in the study and modeling of multiphase and geophysical systems, in particular with application to volcanic eruptions.

Citation (CITATION.cff)

cff-version: 1.1.0
title: IMEX_SfloW2D_v2
message: "If you use this software, please cite it as below."
authors:
  - given-names: Mattia
    family-names: de' Michieli Vitturi
    name-particle: Mattia
    email: mattia.demichielivitturi@ingv.it
    affiliation: Istituto Nazionale di Geofisica e Vulcanologia
    orcid: 'https://orcid.org/0000-0002-6750-9245'
title: demichie/IMEX_SfloW2D_v2
version: 1.0.1
date-released: 2023-03-25
license: GPL-3.0

GitHub Events

Total
  • Release event: 1
  • Watch event: 2
  • Member event: 1
  • Issue comment event: 1
  • Push event: 318
  • Pull request event: 2
  • Fork event: 1
  • Create event: 1
Last Year
  • Release event: 1
  • Watch event: 2
  • Member event: 1
  • Issue comment event: 1
  • Push event: 318
  • Pull request event: 2
  • Fork event: 1
  • Create event: 1

Dependencies

Dockerfile docker
  • phusion/baseimage bionic-1.0.0 build
docker-compose.test.yml docker
.github/workflows/github-repo-stats.yml actions
  • jgehrcke/github-repo-stats RELEASE composite