YouTube-simulations/README.md

62 lines
1.5 KiB
Markdown
Raw Normal View History

2021-07-19 14:31:34 +02:00
### Tool to create videos of particles of waves in different 2D domains.
Created by **Nils Berglund** and optimized by **Marco Mancini**
C code for videos on YouTube Channel https://www.youtube.com/c/NilsBerglund
I plan to add a list of parameter values later on.
There are two groups of 4 files:
### Simulations of classical particles in billiards.
2021-07-19 14:35:12 +02:00
1. global_particles.c
2021-07-19 14:33:46 +02:00
2021-07-19 14:35:12 +02:00
2. sub_part_billiard.c
2021-07-19 14:32:50 +02:00
2021-07-19 14:35:12 +02:00
3. particle_billiard.c
2021-07-19 14:32:50 +02:00
2021-07-19 14:35:12 +02:00
4. drop_billiard.c
2021-07-19 14:31:34 +02:00
2021-07-19 14:36:59 +02:00
- Create subfolders 'tif_part', 'tif_drop'
2021-07-19 14:31:34 +02:00
2021-07-19 14:36:59 +02:00
- Customize constants at beginning of .c file
2021-07-19 14:31:34 +02:00
2021-07-19 14:36:59 +02:00
- Compile with
2021-07-19 14:31:34 +02:00
gcc -o particle_billiard particle_billiard.c-O3 -L/usr/X11R6/lib -ltiff -lm -lGL -lGLU -lX11 -lXmu -lglut
2021-07-19 14:32:50 +02:00
2021-07-19 14:31:34 +02:00
gcc -o drop_billiard drop_billiard.c-O3 -L/usr/X11R6/lib -ltiff -lm -lGL -lGLU -lX11 -lXmu -lglut
2021-07-19 14:36:59 +02:00
- Generate movie with
2021-07-19 14:31:34 +02:00
ffmpeg -i part.%05d.tif -vcodec libx264 part.mp4
### Simulations of wave equation, heat equation and Schrodinger equation.
2021-07-19 14:35:12 +02:00
1. global_pdes.c
2021-07-19 14:32:50 +02:00
2021-07-19 14:35:12 +02:00
2. sub_wave.c
2021-07-19 14:32:50 +02:00
2021-07-19 14:35:12 +02:00
3. wave_billiard.c
2021-07-19 14:32:50 +02:00
2021-07-19 14:35:12 +02:00
4. heat.c
2021-07-19 14:32:50 +02:00
2021-07-19 14:35:12 +02:00
5. schrodinger.c
2021-07-19 14:31:34 +02:00
2021-07-19 14:36:59 +02:00
- Create subfolders 'tif_wave', 'tif_heat', 'tif_schrod'
2021-07-19 14:31:34 +02:00
2021-07-19 14:36:59 +02:00
- Customize constants at beginning of .c file
2021-07-19 14:31:34 +02:00
2021-07-19 14:36:59 +02:00
- Compile with
2021-07-19 14:31:34 +02:00
gcc -o wave_billiard wave_billiard.c -L/usr/X11R6/lib -ltiff -lm -lGL -lGLU -lX11 -lXmu -lglut -O3 -fopenmp
2021-07-19 14:32:50 +02:00
2021-07-19 14:31:34 +02:00
gcc -o heat heat.c -L/usr/X11R6/lib -ltiff -lm -lGL -lGLU -lX11 -lXmu -lglut -O3 -fopenmp
2021-07-19 14:32:50 +02:00
2021-07-19 14:31:34 +02:00
gcc -o schrodinger schrodinger.c -L/usr/X11R6/lib -ltiff -lm -lGL -lGLU -lX11 -lXmu -lglut -O3 -fopenmp
2021-07-19 14:36:59 +02:00
- Generate movie with
2021-07-19 14:31:34 +02:00
ffmpeg -i wave.%05d.tif -vcodec libx264 part.mp4