Code Monkey home page Code Monkey logo

simple-taichi's Introduction

SIMPLE-taichi

SIMPLE-taichi is an incompressible fluid solver implementing the SIMPLE method written in Taichi. The target flow field is rectangular with typical boundary conditions (inflow/outflow/wall).

Features

  • Finite Volume Method (FVM)
  • Built-in Conjugate-Gradient (CG) and BiCGSTAB solver

Requirement

  • Taichi 1.0.0
  • Matplotlib

Demo

As a concrete validation, the computation results of a lid-driven cavity case are compared with the well-know literature values.

Re=100

压力修正法

$$ 不可压缩流连续方程离散格式:[(\rho u)_w - (\rho u)_e] \cdot \Delta y + [(\rho v)_s - (\rho v)_n] \cdot \Delta x = b\

a_W = \rho_e d_e \Delta y = \rho_e {A_e \over a_n} \Delta y = \rho \Delta y \Delta y / a_w $$

交错网格

求解代数方程

BICG算法

双共轭梯度求解压力修正的离散方程

BICG

BICGSTAB算法

稳定双共轭梯度求解动量守恒的离散方程

初始化:

初始化阶段

迭代:

迭代阶段

迭代阶段

部分公式: $$ rho = \bold r^T_k \bold r_k \ alpha_lower = \bold p^T_k \bold A \bold p_k \ alpha = rho / alpha_lower \

\bold s = \bold r_k - \alpha_k * \bold A \bold p_k \

\bold p_{k+1} := \bold r_{k+1} + \beta_k ·(\bold p_k - \omega *\bold A \bold p) \ $$

simple-taichi's People

Contributors

houkensjtu avatar freshlu11 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.