计算colebrook-white近似的一个小模块
colebrook的Python项目详细描述
科尔布鲁克.py
当前状态:开发
版本:20190213
目录
待办事项
- 增加了进一步的逼近函数。
- 为超出给定公式范围的参数添加警告。
免责声明
不保证准确性,请与其他来源确认结果。
背景
colebrook-white方程用于求解Darcy Friction Factor(f),用于确定管流和明渠流中的摩擦损失。
方程式用以下公式表示:
Parameters | Description |
---|---|
Reynolds Number | A dimensionless value that describes the type of flow - As per |
Pipe Relative Roughness | A value which describes the roughness of the pipe material compared to its inner diameter. |
此模块实现了用于管道流量计算的函数的各种近似。
如何使用
用作模块
每一个近似都将雷诺兹数和相对粗糙度作为所需参数,以有效的数字作为可选参数,格式为例如:
importcolebrookfactor=colebrook.sjFriction(60000,0.0023)print(factor)
哪个输出
0.027
用作独立应用程序
从命令行运行脚本的能力也有限。脚本将针对所有可用函数运行。
python colebrook.py <reynolds number> <roughness> [Optional Significant figures]$ python colebrook.py 600000.0023 Ensure values are within range of applicability for equations (specifically around transition and laminar region)!|METHOD | VALUE |---------------------------|sjFriction | 0.027 ||bntFriction | 0.0203 ||fngFriction | 0.0267 ||akFriction | 0.0262 ||bkcFriction | 0.0271 ||eptFriction | 0.0269 |DISCLAIMER: Use secondary verification. No guarantee of accuracy
colebrook-white近似值
本模块提供以下功能。它们改编自维基百科页面。
FUNCTIONAME | AUTHOR | YEAR | VALIDITY RANGE | REF |
---|---|---|---|---|
sjFriction() | Swamee and Jain | 1976 | Re= 5000 to 10^8 and e/D = 0.00001 - 0.05 | Paper |
btnFriction() | Bellos, Nalbantis, Tsarkris | 2018 | All Flow Regimes | Paper |
fngFriction() | Fang et al. | 2011 | R>=2300 | Paper |
eptFriction() | Evangelides, Papaevangelou, Tzimopoulos | 2010 | R>=2300 | Paper |
akFriction() | Avci, Kargoz | 2009 | R>=2300 | Paper |
bkcFriction() | Brkic | 2011 | R>=2300 | Paper |
修订历史
REVISION | DESCRIPTION |
---|---|
20190213 | Initial Development Version |