colebrook.m

버전 1.0.0.0 (1.07 KB) 작성자: Didier Clamond
Efficient resolution of the Colebrook-White equation.
다운로드 수: 5.7K
업데이트 날짜: 2008/11/4

라이선스 없음

% F = COLEBROOK(R,K) fast, accurate and robust computation of the
% Darcy-Weisbach friction factor F according to the Colebrook equation:
% - -
% 1 | K 2.51 |
% --------- = -2 * Log_10 | ----- + ------------- |
% sqrt(F) | 3.7 R * sqrt(F) |
% - -
% INPUT:
% R : Reynolds' number (should be >= 2300).
% K : Equivalent sand roughness height divided by the hydraulic
% diameter (default K=0).
%
% OUTPUT:
% F : Friction factor.
%
% FORMAT:
% R, K and F are either scalars or compatible arrays.
%
% ACCURACY:
% Around machine precision forall R > 3 and forall K>=0,
% i.e. forall values of physical interest.
%
% EXAMPLE: F = colebrook([3e3,7e5,1e100],0.01)

This m-file is more efficient than the solution of the Colebrook equation via the Lambert W-function, or the simple approximations.

PS: For the first submission of this m-file, the author accidentaly uploaded a test version. This resubmission should be the correct one.

인용 양식

Didier Clamond (2024). colebrook.m (https://www.mathworks.com/matlabcentral/fileexchange/21990-colebrook-m), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2006b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Fluid Dynamics에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0