Skip to content

pythonpadawanEXE/flostr_report

Repository files navigation

flostr

flow structure analysis

Thesis C JAKE ALLAN EDWARDS.pdf

Developed in conjunction with:

  • andrefvaq
  • G. D. McBain
  • SamMallinson
  • TracUNSW
  • JakeEdwards (pythonpadawanexe)

Installation

Miniconda

Download one of the Miniconda Windows Installers and run it.

(Anaconda is fine too.)

conda env

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.

Requirements

Download the requirements.txt file.

pip install -r requirements.txt
conda install pyamg

ParaView

Install ParaView.

Getting started

Download the scripts:

Simulation

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.

Postprocessing

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.

Point probe

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.

Proper orthogonal decomposition

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.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages