Skip to content

A simple finite difference scheme for the Rayleigh-Bernard equations (buoyancy driven convection).

License

Notifications You must be signed in to change notification settings

larsgeb/Rayleigh-Bernard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

38eea81 · Nov 10, 2020

History

20 Commits
Nov 10, 2020
Nov 10, 2020
May 25, 2018
Nov 10, 2020
Mar 22, 2018
Mar 22, 2018
Nov 10, 2020
Nov 10, 2020
Mar 21, 2018
Apr 1, 2018

Repository files navigation

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

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

Releases

No releases published

Packages

No packages published

Languages