flow structure analysis
Thesis C JAKE ALLAN EDWARDS.pdf
Developed in conjunction with:
- andrefvaq
- G. D. McBain
- SamMallinson
- TracUNSW
- JakeEdwards (pythonpadawanexe)
Download one of the Miniconda Windows Installers and run it.
(Anaconda is fine too.)
In the Anaconda PowerShell:
conda create -n flostr python
conda activate flostr
The conda env
doesn't have to be called "flostr"; call it whatever.
Download the requirements.txt
file.
pip install -r requirements.txt
conda install pyamg
Install ParaView.
Download the scripts:
Run the simulation:
python st08_navier_stokes_cylinder.py
It takes about five minutes on a modern desktop.
This produces an XDMF solution file containing the mesh (about 1600 nodes) and the nodal velocity and pressure at 5000 time-steps.
st08_navier_stokes_cylinder.xdmf
st08_navier_stokes_cylinder.h5
It also calls cylinder.py
to create a mesh and store it in cylinder.json
. If present, this is reread rather than regenerated.
These can be inspected with ParaView; just open the .xdmf file while the .h5 file is in the same directory.
paraview st08_navier_stokes_cylinder.xdmf
(Or launch ParaView from the MS-Windows start-bar and open the .xdmf file.)
Choose Xdmf3ReaderS from the list of readers.
Download probe.py
and run it in the directory containing st08_navier_stokes_cylinder.xdmf
.
python probe.py
It should produce st08_navier_stokes_cylinder.png
, showing the history of the pressure at the nominal fore and aft stagnation points.
Download pod.py
and run it in the directory containing st08_navier_stokes_cylinder.xdmf
.
python pod.py
It should produce pod.xdmf
, showing the first half-dozen POD modes. It can be viewed in ParaView, as above.