2D incompressible fluid solver implemented in Taichi.

Overview

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.9
  • Taichi 1.0

GeForce GTX 1080 or higher recommended.

Usage

  • Boundary Condition 1, Reynolds Number = 0.2, dt = 0.01
    python main.py -re 1.0
    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

You might also like...

A 3D demo of blender in civil/geotechnical/geological engineering based on Taichi DEM

GeoBlender A 3D demo of blender in civil/geotechnical/geological engineering refer to Taichi DEM repo. Download & Installation dependency $ git clone

Sep 20, 2022

Revolt account generator. Bypassing Hcaptcha using AI solver.

Revolt account generator. Bypassing Hcaptcha using AI solver.

RevoltGenerator Revolt account generator. Bypassing Hcaptcha using AI solver. Config settings in config.json then put your usernames / proxies. If you

Sep 8, 2022

A SAT-based sudoku solver

A SAT-based sudoku solver

SAT Sudoku solver A SAT-based Sudoku solver made in the context of a small project in the "Logic Problem Solving" class in the first year at the Polyt

Apr 15, 2022

Travelling Salesman Problem Solver made in Python with Google Or-Tools simplex linear programming.

Travelling Salesman Problem Solver made in Python with Google Or-Tools simplex linear programming.

travelling_salesman_problem_lp Travelling salesman problem solver using linear programming with Google Or-Tools. Description The Travelling Salesman P

Sep 13, 2022

The quickets hCaptcha Solver, simple asf to use and completely free to run, without trojans ofc.

⭐ & 🍴 for updates hCaptcha-Solver A quick hCaptcha solver, free of trojans. I'm pretty sure h0nde originially made this, all credits to the creators

Jun 11, 2022

Sudoku solver that uses Poetry's dependency resolver

poetry-sudoku-solver Sudoku solver that uses Poetry's dependency resolver How it works This package is supposed to be used with devpi, a local PyPI se

Jul 7, 2022

Zefoy OCR bruteforce captcha solver using cv2, PIL and pytesseract aswell as the Zefoy API

Zefoy OCR bruteforce captcha solver using cv2, PIL and pytesseract aswell as the Zefoy API

Zefoy Captcha Solver 👻 Zefoy OCR bruteforce captcha solver using cv2, PIL and pytesseract aswell as the Zefoy API 🌌 ・Discord 📜 ・ChangeLog Zefoy Cap

Aug 26, 2022

Funcaptcha Scraper / Solver (under developement) ~ feel free to commit

funcaptcha under developement feel free to commit install funcaptcha pip install funcaptcha current example (get key - not solved) from funcaptcha im

Aug 23, 2022

Rubik's Cube Solver

Rubik's Cube Solver Python Program for solving a 3x3x3 Rubik's Cube. Support this project by leaving a ⭐ Program Description The Program solves the cu

Sep 14, 2022
Comments
  • 境界条件6を追加

    境界条件6を追加

    takah29様:

    Taichi Graphicsの包です。

    境界条件の追加が非常に便利になっているようで、勝手ながら任意形状の障害物をpng画像から読み込む機能を実装してみました。試しにいくつかマスキング用の画像を.image/bc_mask/の下に置いておきました。 問題点としては、まだ固定解像度の画像にしか対応しておらず、800x400ではない画像を入れると入力エラーになります。

    内容に関してもし興味があるようでしたらレビューしてみてください。

    dragon.pngをマスキングとして読み込んだ時の様子です: Screen Shot 2022-06-21 at 20 20 18

    opened by houkensjtu 1
Owner
horio
horio
Understanding the Finite-Difference Time-Domain Method, implemented in Taichi

UFDTD-Taichi See also the Julia version. Understanding the Finite-Difference Time-Domain Method, implemented in Taichi. Table of Contents: UFDTD-Taich

Zihua Wu 3 Aug 2, 2022
Grain growth in polycrystal, described by multi-phase field model, implemented by cross-platform parallel (CPU/GPU) computing language of Taichi

grain growth in polycrystal Grain growth described by multi-phase field model, implemented by cross-platform parallel (CPU/GPU) computing language of

莫翰轩 3 Sep 18, 2022
[ICML 2022] NeuroFluid: Fluid Dynamics Grounding with Particle-Driven Neural Radiance Fields

NeuroFluid Code reposity for this paper: NeuroFluid: Fluid Dynamics Grounding with Particle-Driven Neural Radiance Fields. Shanyan Guan, Huayu Deng, Y

Guan Shanyan 28 Aug 19, 2022
Official code for "DPM-Solver: A Fast ODE Solver for Diffusion Probabilistic Model Sampling in Around 10 Steps"

DPM-Solver: A Fast ODE Solver for Diffusion Probabilistic Model Sampling in Around 10 Steps The official code for the paper DPM-Solver: A Fast ODE Sol

Cheng Lu 148 Sep 22, 2022
💣 Minesweeper solver implemented using pysat and visualized using pygame. Also a version of Minesweeper with no guessing needed!

Introduction: Minesweeper is a popular single-player logic/puzzle game. In Minesweeper, you are given a grid of rectangular cells. Cells may or may no

James Wang 0 Jul 29, 2022
Voxel challenge at Taichi dev.

Taichi Voxel Challenge Installation Assume you have a Python 3 environment properly, you can simply run: pip3 install -r requirements.txt to install t

Qian Bao 5 Aug 4, 2022
Taichi Voxel Challenge

Taichi Voxel Challenge Figure: result of python3 example6.py. Please replace the image above (demo.jpg) with yours, so that other people can immediate

Liming Xu 20 Jul 16, 2022
Taichi Implementation of "The Power Particle-in-Cell Method"

Power-PIC Taichi Implementation of "The Power Particle-in-Cell Method" Running the Demo python3 main_2d.py parameters: usage: main_2d.py [-h] [--flip]

Chang Yu 10 Sep 22, 2022
A minimal DEM simulation demo written in Taichi.

Taichi DEM A minimal DEM simulation demo written in Taichi. To implement your own version, click the "Use this template" button on this page and simpl

Taichi Developers 12 Sep 19, 2022
Crystalline growth of dendrite snow simulated by phase field with Taichi-based cross-platform parallel (CPU/GPU) computing

Snowflake by Phase Field Crystalline growth of dendrite snow simulated by phase field with Taichi-based cross-platform parallel (CPU/GPU) computing In

莫翰轩 2 Sep 19, 2022