登录
首页 » Matlab » LBM入门小案例matlab格式书写

LBM入门小案例matlab格式书写

于 2022-01-27 发布 文件大小:1.35 kB
0 131
下载积分: 2 下载次数: 1

代码说明:

代码注释清晰,适合初学者学习使用 %给定初始的密度,流速,设定粒子分布函数的初始值 rho=ones(nx,ny);  %rho=1 u=zeros(nx,ny);   %x方向速度分量 v=zeros(nx,ny);   %y方向速度分量 f=zeros(nx,ny,9); %nx*ny个节点,每个节点有9个方向 for m=1:9         %粒子分布函数f(:,:,m)表示同一页的数值,f1=1/9 f2=1/9...1/36, 4/9      f(:,:,m)=w(m)*rho.*(1 ...       +3*(e(1,m)*u+e(2,m)*v)...       +9/2*(e(1,m)*u+e(2,m)*v).^2 ...       -3/2*(u.^2+v.^2));  end  ftemp=zeros(nx,ny,9);   flag=ones(nx,ny); %nx*ny的单位矩阵Flag,用于区分上下边界的位置 flag(:,1)=0;      %flag矩阵的第一列赋值为0 flag(:,ny)=0;     %矩阵的ny列赋值为0

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • genetic_algorithm_example
    A example of application of genetic algorithm on matlab.
    2010-06-10 01:07:12下载
    积分:1
  • tiqu
    Centroid extraction MATLAB program for star point extraction algorithm
    2014-11-23 20:44:58下载
    积分:1
  • 49636992ciccomp
    级联积分-梳状(Cascaded Integrator–Comb,CIC)滤波器,是种高 效滤波器。它是一种线形相位FIR滤波器,由工作在高抽样率的级联理 想积分器和低抽样率的级联微分器组成,根据抗混叠和抗镜像的指标 确定所需的级联数目。 (Cascaded integrator- comb (Cascaded Integrator-Comb, CIC) filter, is the kind of high efficiency filter. It is a linear phase FIR filter, high sampling rate by the work in the cascade of an ideal integrator and a low sampling rate of the cascade differentiator formed, according to anti-aliasing and anti-mirror of the indicators to determine the number of required cascade.)
    2010-06-05 12:00:39下载
    积分:1
  • wavetoframe1
    wav文件的与处理,包括预加重,分帧,合并,测试通过(wav files with the treatment, including pre-emphasis, sub-frame, combined, tested through)
    2007-10-16 11:38:07下载
    积分:1
  • imageconversionfunctions
    rgb2lab() Converte de RGB image to para LAB, a LAB2RGB Convert an image from CIELAB to RGB.
    2010-12-01 13:49:39下载
    积分:1
  • quad_M
    分别给出利用自适应Simpson积分的数值积分方法(QUAD.m)和自适应Lobatto的数值积分算法(QUADL.m)。(were given the use of adaptive Simpson integral numerical integration methods (QUAD.m) and adaptive Lobatto should the numerical integration algorithm (QUADL.m).)
    2007-03-19 22:28:41下载
    积分:1
  • test
    已采集线性震动系统(钢板)的输入与输出(时域幅值),求解系统数值解,幅频特征,并作图比较。(Have been collected linear vibration system (steel) input and output (time domain amplitude), numerical solution for solving the system, the amplitude-frequency characteristics, and mapping to compare.)
    2013-09-17 19:14:40下载
    积分:1
  • uniformcirclearray
    阵元数16下均匀圆阵的零限形成,先建立约束函数,再创建目标函数,计算零陷(Element number 16 under the Uniform Circular Array of zero-threshold shape, to create constraint function, and then create the objective function, calculated Null)
    2008-12-13 11:49:35下载
    积分:1
  • StewartPlatform
    Simulation of Stewart 6DoF motion platform
    2020-06-29 18:20:01下载
    积分:1
  • wavelet-image-enchance
    这是一篇数字图像增强的课程设计,大家有需要的可以参考一下(This is a digital image enhancement of the curriculum, we need to refer to)
    2011-04-20 09:50:02下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载