%--- close all clear all %--- %========================= % meniscus on an inclined plate %========================= %--- % data %--- gac = 1.0; % acceleration of gravity rhop = 1.0; % density of the pool rhoa = 0.0; % density of the ambient fluid gamma = 1.0; % surface tension beta = 0.01*pi; % plate inclination angle alpha = 0.99*pi; % contact angle alpha = 0.01*pi; alpha = 0.90*pi; ndiv = 2*64; %--- % prepare %--- drho = rhop-rhoa; if(drho<0) disp 'The density of the pool must be higher than' disp 'the density of the ambient fluid' return end capls = gamma/(gac*abs(drho)); capl = sqrt(capls); dbeta = 0.05; Irepeat = 1; %======== while (Irepeat==1) % loop over inclination angles %======== %-------------------------------- % angle theta at the contact line %-------------------------------- thcl = alpha+beta; cst = cos(thcl); %----------------------------------------- % compute the magnitude of meniscus rise h %----------------------------------------- if((thcl>0.5*pi)&(thcl<1.5*pi)) h = sqrt(2.0*capls*(1.0-abs(cst))); else h = sqrt(2.0*capls*(1.0+abs(cst))); end %--- % sign of meniscus rise %--- if(thcl0.99*pi|beta<0.01*pi) dbeta=-dbeta; end %==== end %====