Code covered by the BSD License  

Highlights from
immiscible LB

immiscible LB

by

 

23 Jul 2009 (Updated )

Implements Immiscible Lattice Boltzmann (ILB, D2Q9) method for two phase flows

Avi_Initialization2.m
% Inizialization of the avi file 

close all
stringa= [avi_fname '.avi'];
%delete(stringa); 
fclose('all');
clear mov;
%H_avi=figure(100,'Visible','off'); 
%iptsetpref('imshowInitialMagnification','fit')
H_avi=figure(100); % 
Maximize_figure_window(H_avi)
frame = getframe(gcf);
mov=avifile(avi_fname,'compression','None');%'Indeo5'
%mov=avifile(avi_fname);
display('avi inizialized')
%set(gca,'units','normalized','outerposition',[0 0 1 1])    
%get(gca,'LooseInset',get(gca,'TightInset'))


%%

D_Press_max_init=0;uy_iniz_in=0;den_Ir=1;
Bkt_flag=false; 
H_finger=1; H_finger_old=1;
i_regist=0;% indice registrazione Sw e k per Corey fitting
Qw_in=0; Rel_Inj_1=0; QwIr_1=0; 

% inizializza vettore per registrazione 
v_Sw=nan(1,1000); 
v_KrB=nan(1,1000);
v_KrR=NaN(1,1000);


 bc_guess_R=1;  bc_guess_B=1;

Contact us