LBM Shan-Chen

  • a0_987805
    了解作者
  • 4.1KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 3
    下载次数
  • 2022-05-23 00:48
    上传日期
基于MATLAB的原始Shan-Chen伪势多相流模型,单组份多相基本LBM模型
Two phase flow - basic Shan-Chen model.zip
  • Two phase flow - basic Shan-Chen model
  • forces.m
    992B
  • visua.m
    1.2KB
  • constant.m
    1.6KB
  • tflow.m
    829B
  • collision.m
    841B
  • initialization.m
    843B
内容介绍
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % constant.m: consant setting % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Shan Chen Lattice Boltzmann sample in Matlab % Copyright Wei Gong % Address: Nottingham NG7 2RD, UK % E-mail: wei.gong@nottingham.ac.uk % D2Q9 lattice constants lx = single(200); % x length of computational domain ly = single(150); % y length of computational domain lxy = lx*ly; tau = single(1); % dimensionless relaxation time cc = single(1); % speeds c_squ = cc*cc/3; % square of sound speed visc = c_squ*(tau - 0.5); % viscosity t_k = single([4/9 1/9 1/9 1/9 1/9 1/36 1/36 1/36 1/36]); % weighting factors ee = single([0 1 0 -1 0 1 -1 -1 1; % velocity model 0 0 1 0 -1 1 1 -1 -1]); % General flow constants rho = 200 + rand(lx, ly); p = single(zeros(lx, ly)); % pressure psx = single(zeros(lx, ly)); % mean field potential u = single(zeros(2, lx, ly)); % velocity ue = single(zeros(2, lx, ly)); % equilibrium velocity up = single(zeros(2, lx, ly)); % real fluid velocity F = single(zeros(2, lx, ly)); % for the interaction between fluid nodes S = single(zeros(2, lx, ly)); % interaction components between the dluid nodes and solid nodes ff = single(zeros(9, lx, ly)); % distribution function psx_re = single(zeros(9, lx, ly)); % psx(x+ei*dt,t) rho_h = 650; rho_h = 577; rho_l = 78; % parameters in C-S EOS G = single(-125); psx0 = single(4); rho0 = single(200);
评论
    相关推荐
    • matlab 课件
      matlab 功能很强大,本课件详细的介绍了matlab在科学计算中的应用。
    • Matlab教程
      MatlaB经典ppt,主要讲解了MatlaB的入门知识,图形编程以及仿真。
    • matlab入门
      matlab的入门教程,很值得仔细看看,对提高matlab能力有帮助
    • matlab编译器
      matlab编译为exe文件所需要的文件; 使用时解压,将解压后文件拖入至matlab命令行即可
    • matlab
      matlab的基础知识进行介绍
    • MatLab
      “#MatLab
    • MATLAB编译器
      基于MATLAB 2018b版本介绍MATLAB编译器。介绍如何利用编译器将MATLAB代码编译为独立应用程序或组件,并在没有安装MATLAB的计算机上进行部署。
    • MATLAB 论文
      基于MATLAB的论文撰写!可以为你指明一条写作MATLAB论文的道路!
    • matlab
      matlab经典课堂讲义
    • matlab
      matlab