랭킹으로 돌아가기

doyubkim/fluid-engine-dev

C++fluidenginedevelopment.org

Fluid simulation engine for computer graphics applications

physics-enginefluid-simulation-enginecomputer-graphicscomputational-physicsanimationc-plus-pluscomputational-fluid-dynamics
스타 성장
스타
2.1k
포크
283
주간 성장
이슈
60
1k2k
2016년 7월2019년 11월2023년 3월2026년 7월
README

Fluid Engine Dev - Jet

License Windows Windows-MinGW Ubuntu macOS codecov

Jet framework is a fluid simulation engine SDK for computer graphics applications that was created by Doyub Kim as part of the book, "Fluid Engine Development". The code is built on C++11 and can be compiled with most of the commonly available compilers such as g++, clang++, or Microsoft Visual Studio. Jet currently supports macOS (10.10 or later), Ubuntu (14.04 or later), and Windows (Visual Studio 2015 or later). Other untested platforms that support C++11 also should be able to build Jet. The framework also provides Python API for faster prototyping.

The latest code is always available from the main branch. Since the code evolves over time, the latest from the main branch could be somewhat different from the code in the book. To find the version that is consistent with the book, check out the branch book-1st-edition.

Key Features

  • Basic math and geometry operations and data structures
  • Spatial query accelerators
  • SPH and PCISPH fluid simulators
  • Stable fluids-based smoke simulator
  • Level set-based liquid simulator
  • PIC, FLIP, and APIC fluid simulators
  • Upwind, ENO, and FMM level set solvers
  • Jacobi, Gauss-Seidel, SOR, MG, CG, ICCG, and MGPCG linear system solvers
  • Spherical, SPH, Zhu & Bridson, and Anisotropic kernel for points-to-surface converter
  • Converters between signed distance function and triangular mesh
  • C++ and Python API
  • Intel TBB, OpenMP, and C++11 multi-threading backends

Every simulator has both 2-D and 3-D implementations.

Quick Start

You will need CMake to build the code. If you're using Windows, you need Visual Studio 2015 or 2017 in addition to CMake.

First, clone the code:

git clone https://github.com/doyubkim/fluid-engine-dev.git --recursive
cd fluid-engine-dev

Python API

Build and install the package by running

pip install -U .

Now run some examples, such as:

python src/examples/python_examples/smoke_example01.py

C++ API

For macOS or Linux:

mkdir build && cd build && cmake .. && make

For Windows:

mkdir build
cd build
cmake .. -G"Visual Studio 14 2015 Win64"
MSBuild jet.sln /p:Configuration=Release

Now run some examples, such as:

bin/hybrid_liquid_sim

Docker

docker pull doyubkim/fluid-engine-dev:latest

Now run some examples, such as:

docker run -it doyubkim/fluid-engine-dev
[inside docker container]
/app/build/bin/hybrid_liquid_sim

More Instructions of Building the Code

To learn how to build, test, and install the SDK, please check out INSTALL.md.

Documentations

All the documentations for the framework can be found from the project website including the API reference.

Examples

Here are some of the example simulations generated using Jet framework. Corresponding example codes can be found under src/examples. All images are rendered using Mitsuba renderer and the Mitsuba scene files can be found from the demo repository. Find out more demos from the project website.

FLIP Simulation Example

FLIP Example

PIC Simulation Example

PIC Example

Level Set Example with Different Viscosity

Level Set Example

Smoke Simulation with Different Advection Methods

Cubic-smoke Example Linear-smoke Example

Point-to-Surface Examples

Point-to-Surface Example

Top-left: spherical, top-right: SPH blobby, bottom-left: Zhu and Bridson's method, and bottom-right: Anisotropic kernel

Developers

This repository is created and maintained by Doyub Kim (@doyubkim). Chris Ohk (@utilForever) is a co-developer of the framework since v1.3. Many other contributors also helped improving the codebase including Jefferson Amstutz (@jeffamstutz) who helped integrating Intel TBB and OpenMP backends.

License

Jet is under the MIT license. For more information, check out LICENSE.md. Jet also utilizes other open source codes. Checkout 3RD_PARTY.md for more details.

I am making my contributions/submissions to this project solely in my personal capacity and am not conveying any rights to any intellectual property of any third parties.

Acknowledgement

We would like to thank JetBrains for their support and allowing us to use their products for developing Jet Framework.

JetBrains

관련 저장소
liabru/matter-js

a 2D rigid body physics engine for the web ▲● ■

JavaScriptnpmMIT Licensephysicsjavascript
18.3k2k
jrouwe/JoltPhysics

A multi core friendly rigid body physics and collision detection library. Written in C++. Suitable for games and VR applications. Used by Horizon Forbidden West and Death Stranding 2.

C++MIT Licensephysicsvr
11k813
chrxh/alien

ALIEN is a CUDA-powered artificial life simulation program.

C++BSD 3-Clause "New" or "Revised" Licenseartificial-lifeopen-ended-evolution
alien-project.org
5.5k188
piqnt/planck.js

2D JavaScript Physics Engine

TypeScriptnpmMIT Licensegame-developmentjavascript
piqnt.com/planck.js/
5.3k254
schteppe/cannon.js

A lightweight 3D physics engine written in JavaScript.

JavaScriptnpmMIT Licensephysics-enginejavascript
schteppe.github.com/cannon.js
5k740
FormidableLabs/react-game-kit

Component library for making games with React & React Native

JavaScriptnpmMIT Licensephysics-bodiesspritesheet
reactnext.surge.sh
4.6k311
cyberbotics/webots

Webots Robot Simulator

C++Apache License 2.0roboticsrobot
cyberbotics.com
4.5k2k
avianphysics/avian

ECS-driven 2D and 3D physics engine for the Bevy game engine.

Rustcrates.ioApache License 2.0bevyphysics
crates.io/crates/avian3d
3.1k265
projectchrono/chrono

High-performance C++ library for multiphysics and multibody dynamics simulations

C++BSD 3-Clause "New" or "Revised" Licensesimulationphysics-simulation
projectchrono.org
2.9k617
bepu/bepuphysics2

Pure C# 3D real time physics simulation library, now with a higher version number.

C#Apache License 2.0physics-3dphysics-engine
2.9k310
schteppe/p2.js

JavaScript 2D physics library

JavaScriptnpmOtherphysics-enginephysics
2.7k330
simbody/simbody

High-performance C++ multibody dynamics/physics library for simulating articulated biomechanical and mechanical systems like vehicles, robots, and the human skeleton.

C++Apache License 2.0multibody-dynamicsphysics-engine
simtk.org/home/simbody
2.5k496