Git Product home page Git Product logo

datadrivenfluid's Introduction

DataDrivenFluid

Illustration of Proper Orthogonal Decomposition (POD) and (DMD)

Data : flow past a cylinder at Reynolds number, Re = 200. There are two data files. The data can be downloaded from the given link.

      cyldata6h.csv contains  600 snapshots of the vorticity at a time step of dt = 0.125
      the first data (~2.2GB) can be downloaded from this link:
      https://www.dropbox.com/s/7r5djn0vykkhgtk/cyldata6h.csv?dl=0
      
      cyldata1k.csv contains 1000 snapshots of the vorticity at a time step of dt = 0.125
      the second data (~3.6GB) can be downloaed from the following link:
      https://www.dropbox.com/s/nmb9yqxyoswqgkz/cyldata1k.csv?dl=0
        
      The grid consists of 768 x 192 points in the streamwise and spanwise directions. 
      The field is stored as an 1D vector of size 768*192 = 147456
      
      A smaller data (~121MB), cyl_data_clean.csv, contains the vorticity at a time step of dt = 0.02
      https://www.dropbox.com/s/gjyimyf2eo1aajd/cyl_data_clean.csv?dl=0
      This field is stored as 151 of 1D vectors of size 199*499.
      See the notebook to read this data. 
      
      There are two example codes (python script and nobebook) showing how to read and visualize the data. 

Example : (xburgers_pod.py): Solve 1D viscous Burgers equation using using spectral method.

     First part of the code uses FFT from numpy to discretize Burgers equation using periodic boundary condition.
     Then, it uses scipy.odeint to integrate discretized Burgers equation.
     Then, it uses matplotlib.pyplot to visualize space time solution and time snapshots.
     
     This code can be modified to solve a similar 1D PDE, such as wave equation or heat equation. 
     
     Second part of the code uses SVD from mumpy.linalg to compute POD modes. 
     It illustrates low-dimensional approximation of the solution.
     Then, it shows first 4 POD modes.

datadrivenfluid's People

Contributors

alamj avatar

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.