Giter Club home page Giter Club logo

pizza's Introduction

GPLv3

Foreword

  • pizza is a high-performance numerical code for quasi-geostrophic and non-rotating convection in a 2-D annulus geometry. pizza solves for the Navier-Stokes equation including Coriolis force coupled with a temperature equation and/or an equation for the chemical composition under the Boussinesq approximation.

  • pizza uses either a Chebyshev collocation or a sparse Chebyshev formulation in the radial direction and a Fourier decomposition in the azimuthal direction. Several Implicit-Explicit (IMEX) time-steppers are implemented including multistep time schemes (Crank-Nicolson-Adams Bashforth, Semi-implicit Backward Difference) as well as IMEX Runge-Kutta schemes.

  • pizza is written in Fortran and designed to be used on supercomputing clusters. It requires CMake, an MPI library, FFTW and LAPACK to be compiled and executed. Postprocessing functions written in python (requiring matplotlib and scipy) are also provided to allow a useful data analysis.

  • pizza is a free software. It can be used, modified and redistributed under the terms of the GNU GPL v3 licence.

Quickly start using pizza

1) In order to check out the code, use the command

$ git clone https://github.com/magic-sph/pizza.git

or via SSH (it requires a public key):

$ git clone ssh://[email protected]/magic-sph/pizza.git

2) Set up your compiler and compile the code

Create a directory where the sources will be built

$ mkdir build
$ cd build

Set up your compilers

$ export FC=mpiifort

or

$ export FC=mpif90

Compile and produce the executable

$ cmake ..
$ make -j

The executable pizza.exe has been produced!

3) Go to the samples directory and check that everything is fine

$ cd pizza/samples
$ ./pizza_wizard.py --nranks 4 --mpicmd mpiexec

If everything is correctly set, all auto-tests should pass!

4) You're ready for a production run

$ mkdir run
$ cp path_to/pizza/build/pizza.exe .
$ cp path_to/pizza/samples/RotE1e3EkPump/input.nml .

Then change the input namelist to the setup you want and run the code:

$ mpiexec -n 4 ./pizza.exe input.nml

5) Data visualisation and postprocessing

a) Set-up your PYTHON environment (ipython, scipy and matplotlib are needed)

b) Add pizza to your PYTHONPATH

$ export PYTHONPATH=$PYTHONPATH:path_to/pizza/python

c) You can now import the python classes:

python> from pizza import *

and use them to read time series, graphic files, movies, ...

python> ts = PizzaTs(field='e_kin', all=True)
python> f = PizzaFields(verbose=True)
python> ...

pizza's People

Contributors

tgastine avatar af0974 avatar obarrois avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.