tornadobox
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tornadobox [2025/03/19 13:11] – admin | tornadobox [2025/04/03 17:13] (current) – admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== Tornado Box==== | + | ==== 3-D Fortran CFD code for tornado-like vortices |
- | This page provides | + | Grab the code: [[https:// |
+ | |||
+ | This page describes | ||
{{ : | {{ : | ||
I also still offer [[https:// | I also still offer [[https:// | ||
Line 281: | Line 283: | ||
$ sav2pkl.py b*.sav | $ sav2pkl.py b*.sav | ||
</ | </ | ||
+ | If your python does not have the '' | ||
To make the times tidy and complete, let's rename a file: | To make the times tidy and complete, let's rename a file: | ||
< | < | ||
- | mv bF10E015000.pkl bF10D015000.pkl | + | $ mv bF10E015000.pkl bF10D015000.pkl |
+ | $ pkl2png.py -s -hg -vg | ||
</ | </ | ||
+ | Note that '' | ||
+ | The '' | ||
+ | |||
+ | Next we zoom in to 25% of the camera distance, and plot at $t=30$: | ||
+ | < | ||
+ | $ pkl2png.py -s -hg -c .25 bF10D030000 | ||
+ | </ | ||
+ | And add a $w$ isosurface: | ||
+ | < | ||
+ | $ pkl2png.py -s -hg -w -c .25 bF10D030000 | ||
+ | </ | ||
+ | $ Now we go for it, and plot the frames for movie. | ||
+ | < | ||
+ | $ mkdir pngs | ||
+ | $ pkl2png.py -hg -w -c .25 bF10D0 pngs | ||
+ | </ | ||
+ | That required 10 minutes on my computer to produce 301 '' | ||
+ | < | ||
+ | $ cd pngs | ||
+ | $ eog bF10D015000.png | ||
+ | </ | ||
+ | The '' | ||
+ | < | ||
+ | $ cd ~/boxout | ||
+ | $ maketitle.py pngs/ | ||
+ | $ pip install moviepy | ||
+ | $ png2mp4.py -t title.png pngs/bF10D | ||
+ | $ mpv video.mp4 | ||
+ | </ | ||
+ | **FINISHED!** | ||
+ | |||
tornadobox.1742407900.txt.gz · Last modified: 2025/03/19 13:11 by admin