Giter Site home page Giter Site logo

kszenes / dg_code Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nickdisca/dg_code

0.0 0.0 2.0 44.13 MB

Discontinuous Galerkin solver in cartesian and spherical geometry

License: GNU General Public License v3.0

MATLAB 22.88% Python 75.85% Gnuplot 1.26%

dg_code's Introduction

DG_code

Overview

This repository contains a Discontinuous Galerkin (DG) solver for various consevations laws that I implemented during my 4-month internship at the Swiss Supercomputing Center (CSCS). The solver makes use of GT4Py, a Domain-Specific-Language (DSL) for weather and climate simulations, to produce a high-performance implementation. GT4Py provides the user with a high-level Python interface for stencil computations and generates high-performance implementations for a target architecture, including CPUs and GPUs.

This work builds upon a previous intenship at CSCS conducted by Niccolo Discacciati in 2019. In particular, his Matlab code has been adapted and used as a reference implementation.

The repository has the following filestructure:

DG_code
├── docs                   <-- Report containing documentation and benchmarks
├── gt4py                  <-- GT4Py implementation
    ├── linear_advection   <-- Linear Advection Solver
    ├── sph_swe_3d         <-- Shallow Water Equation on the Sphere Solver
    ├── swe_3d             <-- Planar Shallow Water Equation Solver
└── matlab                 <-- Reference Matlab implementation

Documentation

  • All the directories are complemented with dedicated README files.
  • In addition, my final report contains the mathematical theory behind the DG method, implementation details as well as performance benchmarks carried out on the Piz Daint supercomputer.

Installation

  • First install GT4Py. Currently, this must be done through my personal fork of GT4Py however it will be merged into the production code soon.
  • Then install the additional dependencies contained in the requirements.txt file using pip: pip install -r requirements.txt.

dg_code's People

Contributors

kszenes avatar fomics avatar nickdisca avatar vectorflux 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.