Git Product home page Git Product logo

flostr_report's Introduction

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.

flostr_report's People

Contributors

pythonpadawanexe avatar

Watchers

 avatar

Forkers

gdmcbain

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.