Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/larsgeb/rayleigh-bernard
A simple finite difference scheme for the Rayleigh-Bernard equations (buoyancy driven convection).
https://github.com/larsgeb/rayleigh-bernard
fdtd finite-difference finite-difference-time-domain porous-media rayleigh-taylor thermal-conductivity thermal-convection transport-equation
Last synced: 10 days ago
JSON representation
A simple finite difference scheme for the Rayleigh-Bernard equations (buoyancy driven convection).
- Host: GitHub
- URL: https://github.com/larsgeb/rayleigh-bernard
- Owner: larsgeb
- License: bsd-3-clause
- Created: 2018-02-20T06:27:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-10T09:45:55.000Z (almost 4 years ago)
- Last Synced: 2024-10-09T08:08:16.119Z (28 days ago)
- Topics: fdtd, finite-difference, finite-difference-time-domain, porous-media, rayleigh-taylor, thermal-conductivity, thermal-convection, transport-equation
- Language: Python
- Homepage:
- Size: 1.95 MB
- Stars: 13
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
A finite difference code to simulate 2D advection-convection, or Rayleigh-Bernard, systems.
Has the dependencies:1. Python 3.7
2. Numpy
3. SciPy
4. MatplotlibRun the code by changing the configuration values in `main.py` and entering the following on your terminal:
```
python main.py
```Make a video out of the results by going into the `simulations` directory and using ffmpeg like this:
```
ffmpeg -framerate 5 -pattern_type glob -i '*.png' \
-c:v libx264 -r 30 -pix_fmt yuv420p out.mp4
```An example simulation with an unstable initial condition and 3:1 aspect ratio (which will favour 3 convection cells) is given below. This is the parameters currently set in `main.py`.
![](example_simulation.gif)