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/13 07:58] (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:// | ||
| that provides some results and animation, but no Fortran program. | that provides some results and animation, but no Fortran program. | ||
| - | The coding style evolved from a program passed down to Prof. Fiedler by his dissertation adviser, in the late 1970s. Notable ancient features are the Fortran 77 style, for the '' | + | The coding style evolved from a program passed down to Prof. Fiedler by his dissertation adviser, in the late 1970s. Notable ancient features are the Fortran 77 style, for the '' |
| + | see the Fortran code at [[https:// | ||
| === FORTRAN === | === FORTRAN === | ||
| Line 75: | Line 78: | ||
| The program '' | The program '' | ||
| + | |||
| + | Make your own browser with [[https:// | ||
| + | < | ||
| + | f90tohtml tornadobox.f2h | ||
| + | </ | ||
| === An example case === | === An example case === | ||
| Line 218: | Line 226: | ||
| enter ' | enter ' | ||
| ' | ' | ||
| - | </ | ||
| $ ln -s bF10E015000.sav restart.sav | $ ln -s bF10E015000.sav restart.sav | ||
| $ makefiletimes.py 0 202 .05 > filetimes.txt | $ makefiletimes.py 0 202 .05 > filetimes.txt | ||
| Line 281: | Line 288: | ||
| $ 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: by admin
