Skip to content

It uses Navier-Stokes equation as the physical model, the numerical solution obtained by real-time calculation includes scalar and velocity fields displayed in the OpenGL control. Users have a choice of 64x64 and 128x128 resolutions and 7 color options.|使用纳维-斯托克斯方程作为物理模型,实时计算得到的数值解便是标量场及速度场的分布情况,并显示在OpenGL控件中。用户有64x64和128x128两种分辨率以及7种颜色选项可供选择。

License

Notifications You must be signed in to change notification settings

MuGeminorum/FluidS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FluidS

license AppVeyor Github All Releases GitHub release

其仿真过程的核心算法参考了 Robert Bridson 的 Fluid Simulation for Computer Graphics。它使用 Navier-Stokes 方程的数值解来预测 Qt 的 OpenGL 小部件中显示的每一帧中粒子的密度和速度分布。有两种分辨率可供用户选择:64 × 64 和 128 × 128。用户还可以在 7 种颜色的密度和速度之间切换显示模式。

Its core algorithm of the simulation process refers to Robert Bridson's Fluid Simulation for Computer Graphics. It uses the numerical solution of Navier-Stokes equations to predict the density and velocity distribution of particles in each frame displayed in the OpenGL widget of Qt. There are two resolution options for users: 64 × 64 and 128 × 128. Users can also change display mode between density and velocity in 7 colors.

密度场 (Density field) 速度场 (Velocity field)

代码下载 Code download

git clone https://github.com/MuGeminorum/FluidS.git
cd FluidS

环境安装配置及代码调试发布 Environment installation, configuration & code debugging, release

此部分内容请统一参考此博文

Please refer to this blog post for this section.

About

It uses Navier-Stokes equation as the physical model, the numerical solution obtained by real-time calculation includes scalar and velocity fields displayed in the OpenGL control. Users have a choice of 64x64 and 128x128 resolutions and 7 color options.|使用纳维-斯托克斯方程作为物理模型,实时计算得到的数值解便是标量场及速度场的分布情况,并显示在OpenGL控件中。用户有64x64和128x128两种分辨率以及7种颜色选项可供选择。

Topics

Resources

License

Stars

Watchers

Forks