Git Product home page Git Product logo

2d-fluid-simulator's Introduction

2D Fluid Simulator

baundary_condition_2_dye baundary_condition_2_norm

Features

  • Finite Difference Method (MAC Method)
  • Advection Scheme
    • Upwind Differencing
    • Kawamura-Kuwahara
    • CIP (Constrained Interpolation Profile)
  • Flow Visualization
    • Norm (Velocity) and Pressure
    • Pressure
    • Vorticity
    • Dye
  • Vorticity Confinement

Requirements

  • Python 3.10
  • Taichi 1.5

GeForce GTX 1080 or higher recommended.

Usage

  • Boundary Condition 1, Reynolds Number = 0.2, dt = 0.01
    python main.py -re 0.2
    Press V key switches the flow visualization method.
  • Boundary Condition 2, Reynolds Number = 100.0, resolution = 800, dt = 0.01
    python main.py -bc 2 -re 100 -res 800
  • Boundary Condition 3, Reynolds Number = 100.0, resolution = 800, dt = 0.01, no vorticity confinement, upwind scheme
    python main.py -bc 3 -re 100 -res 800 -vor_eps 0.0 -scheme upwind
  • Boundary Condition 3, Reynolds Number = 100.0, resolution = 800, dt = 0.01, no vorticity confinement, cip scheme
    python main.py -bc 3 -re 100 -res 800 -vor_eps 0.0
  • Boundary Condition 5, Reynolds Number = 100.0, dt = 0.01
    python main.py -bc 5 -re 100
  • Boundary Condition 6, Reynolds Number = 100.0, dt = 0.01
    python main.py -bc 6 -re 100
  • Help
    python main.py -h

For CPU

  • Boundary Condition 2, Reynolds Number = 100.0, resolution = 200, dt = 0.01
    python main.py -bc 2 -re 100.0 -res 200 -cpu

Screenshots

Flow Visualization

  • Norm and Pressure norm_and_pressure
  • Pressure pressure
  • Vorticity vorticity
  • Dye dye

Vorticity Confinement

  • eps = 0.0 no_vorticity_confinement
  • eps = 4.0 vorticity_confinement

References

2d-fluid-simulator's People

Contributors

takah29 avatar zemora avatar houkensjtu 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.