Coder Social home page Coder Social logo

jannertje / spacetime-fullgrid-parallel Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 1.57 MB

This is the code that supplements arXiv:2009.08875, where we describe a parallel algorithm for solving linear parabolic equations.

License: MIT License

Python 100.00%
finite-element-method parallel-computing partial-differential-equations space-time

spacetime-fullgrid-parallel's Introduction

A parallel algorithm for solving linear parabolic equations

DOI

This repository supplements arXiv:2009.08875.

We implemented our algorithm in Python3 using the open source finite element library NGSolve for meshing and descretization of the bilinear forms in space and time, MPI through mpi4py for distributed computations, and SciPy for the sparse matrix-vector computations.

Requirements

  • NGsolve (tested with v6.2.2): see install instructions.
  • Python pacakges (requirements.txt): mpi4py, numpy, pets4py, psutil, scipy.

Run instructions

A normal, single-threaded, implementation is given in heateq.py.

python3 heateq.py --J_time=3 --J_space=6 --problem=square

The parallel MPI implementation, used for the numerical results in the paper, is given in heateq_mpi.py.

mpirun -np 2 python3 heateq_mpi.py --J_time=3 --J_space=6 --problem=square

The tests can be run using pytest.

pytest
mpirun -np 2 pytest

License

This project is licensed under the terms of the MIT license.

spacetime-fullgrid-parallel's People

Contributors

jannertje avatar rvanvenetie avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  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.