求解悬链线方程的Python库
pycatenar的Python项目详细描述
悬链线
特点
这个python软件包求解静态平衡状态下的悬链线方程。在
- 考虑弹性
- 考虑与地面/海床的接触
- 处理部分或完全提升的管线
- 可采用多段电缆
安装
python setup.py install --user
入门
要创建电缆:
^{pr2}$导缆器和锚具的位置可按以下方式更改:
# change fairlead positionl1.setFairleadCoords([5.4,0.,2.65])# recompute solutionl1.computeSolution()
存在其他功能:
# get tension along line (between 0. and total line length)s=5.T=l1.getTension(s)# get xyz coordinates along linexyz=l1.s2xyz(s)
有关其他功能,请参阅文档:https://tridelat.github.io/pycatenary
- 项目
标签: