two-phase-flow-master

所属分类:数值算法/人工智能
开发工具:C/C++
文件大小:240KB
下载次数:0
上传日期:2021-03-24 18:27:37
上 传 者不加糖加壹
说明:  采用C语言对不可压缩两相流动进行模拟,依次求解质量守恒方程、动量守恒方程和能量守恒方程
(Simulation of incompressible two phase flow)

文件列表:
bubble.py (1553, 2019-01-23)
bubble (0, 2019-01-23)
bubble\BOUT.inp (2076, 2019-01-23)
bubble_position.py (904, 2019-01-23)
capillary.py (2765, 2019-01-23)
capillary (0, 2019-01-23)
capillary\BOUT.inp (1629, 2019-01-23)
data (0, 2019-01-23)
data\BOUT.inp (1171, 2019-01-23)
doc (0, 2019-01-23)
doc\bubble_flows.png (176450, 2019-01-23)
doc\bubble_vorticity.pdf (15963, 2019-01-23)
doc\capillary_1.pdf (23708, 2019-01-23)
doc\capillary_2.pdf (25694, 2019-01-23)
doc\makefile (99, 2019-01-23)
doc\two-phase-manual.tex (16973, 2019-01-23)
makefile (82, 2019-01-23)
makeimg.py (1145, 2019-01-23)
non-newtonian (0, 2019-01-23)
non-newtonian\BOUT.inp (1632, 2019-01-23)
pipe (0, 2019-01-23)
pipe\BOUT.inp (1572, 2019-01-23)
three-fluid (0, 2019-01-23)
three-fluid\BOUT.inp (2048, 2019-01-23)
two-phase-flow.cxx (26880, 2019-01-23)

Incompressible two/three phase flow in 2D ========================================= A simple model for two or three fluids (e.g. liquid, gas, solid) in 2D, with different densities and viscosities. Includes models for buoyancy and surface tension. The flow is assumed to be incompressible, so a vorticity equation is evolved for the momentum equation and no pressure equation is needed. Uses Arakawa's 2nd-order method to advect the vorticity, and upwinding with regularised anti-diffusion to advect the fluid type and track the location of boundaries between fluids. Compiled with [BOUT++ version 4.0](https://github.com/boutproject/BOUT-dev/releases/tag/v4.0.0) Stationary bubble ----------------- A test of the handling of surface tension is a stationary bubble. This should produce no flows, but numerically parasitic flows are observed. $ ./two-phase-flow -d bubble $ python bubble.py Capillary wave -------------- A boundary between two viscous fluids is initially perturbed. The frequency and damping rate of the resulting oscillation can be compared to analytic theory and previous results $ python capillary.py Flow in a pipe -------------- Simple flow of a single fluid in a pipe. Starts with an initial flow which damps due to viscosity. Includes no-slip boundary conditions on the walls, using Thom's formula. input in `pipe` directory Three fluid ----------- Models air, water and sand with a simple model. A pile of sand in the middle of the domain acts to break waves in the water around it. Note that because the sand is evolved as a simple fluid, it slowly collapses. A large viscosity is used to slow down the rate at which this happens. input in `three-fluid`

近期下载者

相关文件


收藏者