Question: function F = turbfriction ( x ) % x ( 1 ) = diameter % x ( 2 ) = velocity % x ( 3

function F=turbfriction(x)
%x(1)=diameter
%x(2)=velocity
%x(3)=Reynolds Number
%x(4)=friction
F=[x(2)-0.35/(3.14*x(1)*x(1)/4);
x(3)-x(2)*x(1)/(1.655*10^(-5));
1/sqrt(x(4))+2.0*log10(2.51/(x(3)*sqrt(x(4))));
x(4)-20*x(1)*2*9.81/(150*x(2)*x(2))];function F=turbfriction(x)
options=optimset('tolx',1e-18,'maxfunevals',4000000,'tolfun',1e-18,'maxiter',200000)
[x,fval]= fsolve('turbfriction',[0.10.11000000.1],options)
can you calculate the diameter with using octave for assigned conditions for methanol? and please use codes and results screenshots?
\table[[\table[[Methanol],[(liquid)]],10,30,803.0,6.953\times 10^(-4)]]
 function F=turbfriction(x) %x(1)=diameter %x(2)=velocity %x(3)=Reynolds Number %x(4)=friction F=[x(2)-0.35/(3.14*x(1)*x(1)/4); x(3)-x(2)*x(1)/(1.655*10^(-5)); 1/sqrt(x(4))+2.0*log10(2.51/(x(3)*sqrt(x(4)))); x(4)-20*x(1)*2*9.81/(150*x(2)*x(2))];function

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!