I converted these two equations into MATLAB code before but I lost the file and now I am trying to write them again but there is a problem and I can't figure it out.
This is the main equation:
This is the equilibrium radius equation:
This is the figure that I got from the MATLAB code that I lost.
This is the MATLAB code that I am writing now:
clc
%Converting to SI units
Contact_angle = 142*pi/180;
Volume = 5* 1e-9;
ST_L = 0.072 ;
Density = 997 ;
Gravity = 9.807;
Shape_factor = 37.1;
T_zero = 0; Dynamic_viscosity = 8.9e-4 ;
R_e = ((4*Volume)/(pi*Contact_angle))^(1/3);
T = 0:0.1:5.2;
R = R_e * (1 - exp(((-(2*ST_L)/R_e^12) + ((Density*Gravity)/(R_e^10))) * ((24*Shape_factor*Volume^4 * (T+T_zero))/((pi^2)*Dynamic_viscosity)))).^(1/6);
%Convert R to mm R = R*1000;
plot(T,R);
grid on xlim([0 6]);
ylim([0 6]);
legend('Water','Location','northwest');
ylabel('Radius (mm)');
xlabel("Time (s)");
I tried playing around with the shape factor (because it's an arbitrary constant) and playing with the units to get similar results to my previous code. However, when I tried to use a different fluid to test my mathematical model, I realized that changing units or constants is not a proper solution.