Skip to content

ebreard/IMEX_SfloW2D_v2

 
 

Repository files navigation

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 fortran_env conda-forge::gfortran_linux-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.

About

Shallow water variable density gas-particle flow

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Fortran 67.8%
  • Python 22.4%
  • Shell 5.4%
  • Makefile 4.1%
  • Other 0.3%