基于MATLAB的LBM代码: Rough jet model

该博客通过MATLAB代码实现了一个粗糙喷射模型,利用Lattice Boltzmann Method(LBM)。代码展示了如何设置流体流动的边界条件,进行碰撞和流速更新,并提供了周期性的可视化输出。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

%By liu-2017.0403. 谢谢这位没写名字的大佬。

%又上网扒代码了。 感人的效果。流体流入水腔。

%还是老样子,有啥问题Feel free to tell us~毕竟群众力量大嘛~QQ群:293267908。

 

 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
clear
% GENERAL FLOW CONSTANTS
lx         = 250;
ly         = 250;
obst_x = lx/5+1;   % position of the cylinder; (exact
obst_y = ly/2+1;   % y-symmetry is avoided)
obst_r = ly/10+1;  % radius of the cylinder
uMax  = 0.06;      % maximum velocity of Poiseuille inflow
Re     = 100;      % Reynolds number
nu    = uMax * 2.*obst_r / Re;   % kinematic viscosity
omega  = 1. / (3*nu+1./2.);      % relaxation parameter
maxT   = 4000;   % total number of iter

评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值