[MAE 242] Solving the Colebrook formula using Matlab

Описание к видео [MAE 242] Solving the Colebrook formula using Matlab

Matlab function (00:04:50)
function y = root(x)
y = x^2-1;

Finding two roots (00:05:40 and 00:06:10)
fzero(@root, [-2 0])
fzero(@root, [0 2])

Matlab function (00:06:39)
function y = frictionfactor(f)
Re = 50000;
e = 0.001;
y = 1/sqrt(f) + 2*log10(e/3.7 + 2.51/Re/sqrt(f));

Finding the friction factor (00:08:03)
fzero(@frictionfactor, [1e-3 1e-1])

Комментарии

Информация по комментариям в разработке