MATLAB 代码,用于计算给定雷诺数 (Re) 和相对粗糙度系数 (epsilon) 值的管道中的摩擦系数。
句法: f = colebrook(Re,epsilon)
示例 1:单个 Re,单个 epsilon Re = 1e5; epsilon = 1e-4; f = colebrook(Re,epsilon)
示例 2:多个 Re,单个 epsilon Re = 5000:1000:100000; epsilon = 1e-4; f = colebrook(Re,epsilon); 情节(重新,f)
示例 3:单个 Re,多个 epsilon Re = 1e5; epsilon = linspace(1e-4,1e-1,100); f = colebrook(Re,epsilon); 情节(epsilon,f)
示例 4:多个 Re,多个 epsilon Re = lo
2022-03-04 12:38:12
2KB
matlab
1