Giter Site home page Giter Site logo

timo-asif / animated-pdes Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 33.68 MB

Solving coupled PDEs in C using a finite difference scheme then animating the solution via Python.

C 0.10% Jupyter Notebook 99.90%
scientific-computing partial-differential-equations matplotlib-animation python c

animated-pdes's Introduction

Animated Solutions to Coupled PDEs

Motivation

During my formulation of a solution of a large Scientific Computing assignment in C, I realised that it would be very difficult to analyse my results without a nice way to visualise them.

To tackle this, I first looked at MATLAB to try quickly plot my results using 3D scatter plots. This worked well for its purpose, but it felt a bit incomplete as the true behaviour of the solutions arise when viewed as a pair of functions changing in time.

Since I had more experience creating visualisations within Python, I looked into creating some animated GIFs. I found that the matplotlib.Animation was a very good fit for my problem as I could control what goes into each frame of my animation due to how my output files are set up.

Full problem formulation located on the Animation.ipynb Jupyter Notebook. Open on Google Colab to ensure full LaTeX rendering of formulas. I have included example input and output files to create a quick 20s animation.

Examples

Low Gamma Solution

Alt Text

High Gamma Solution

Alt Text

Slow Transport Solution

Alt Text

Fast Transport Solution

Alt Text

animated-pdes's People

Contributors

timo-asif avatar

Stargazers

 avatar  avatar

Watchers

 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.