LBM-matlab代码(Red-and-Blue-Fluids)

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

%FLUIDPROPERTIES(2IMISCIBLEFLUIDS)physicalproperties%dPdL=Pressure/dL;%Externalpressuregradient[atm/cm]cP_visco=1;%[cP]1CPwaterviscosity20Cdensity=1;%fluiddensity%latticeprop.somega=1,cs2=1/3;%omega:relaxationfrequencyomegaR=0.9;%RedomegaB=0.8;%Blue%colourcompositioni.e.amountofRedandBluecolorsatstartfct_Red=0.40;%volumetricfractionofRedfluidfct_Blue=1-fct_Red;%fractionBluefluidSigma=0.0002;%surfacetensionparametermin_M_Grad=0.0001;%mingradientforre-colouringAdes_RNB=-1;%Ades_RNB=1ifredisonthesurfaceofthedryarea%N_c=9;%declarativestatemetsrelatedtothe2fluidsf=zeros([Nr,Mc,N_c]);%arrayoffluiddensitydistribution%f=zeros(Nr,Mc,N_c);Red=zeros(Nr,Mc,N_c);%e.g.oilBlue=zeros(Nr,Mc,N_c);%e.g.waterrho=zeros(Nr,Mc);%macro-scopicdensityrhoR=zeros(Nr,Mc);rhoB=zeros(Nr,Mc);%alsoforthe2fluidsrhoR_B=zeros(Nr,Mc);%Conc_fct=zeros(Nr,Mc);%if(0)isOpen=matlabpool('size')0ifisOpen==1,matlabpoolclose,endmatlabpoolopenlocal4,f=zeros([Nr,Mc,N_c],'single',codistributor());%arrayend

1 / 1
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功