1 引言
HYRCAN【HYRCAN使用Python进行边坡稳定性的参数化分析;Update---新增SHANSEP材料模型(HYRCAN V1.90.0) 】已经更新到版本V2.0.2(7/26/2022),这次微小的更新主要是与Python相关,目前使用的Python版本是3.9.13。一个奇怪的想法是把plxle【二维和三维边坡稳定性分析模块plxle】安装在HYRCAN的环境中,使用一个输入参数同时运行两个软件,结果在安装后不能正确输入模块plxle,在初始化时出现错误信息[cannot import name 'cygrpc' from 'grpc._cython'];另一个问题是HYRCAN与Python的集成使用了与Itasca软件相同的内嵌方法,也就是Python代码只能在它的软件环境中运行,不能使用象Plaxis那种远程编程方式【Plaxis使用Spyder替换默认编辑器SciTE的方法】;此外,外部参数如何传递到hy.command()命令也没尝试到合适的方法,Itasca软件通过FISH可以实现,但HYRCAN似乎没有直接的方法。
2 命令流
(1) 项目设置
在项目设置中,主要设置单位和重力加速度。所有的数值模拟软件自身都不提供单位换算功能,输入数据的单位由用户定义,但必须符合单位一致性的规则,否则计算结果出错。
newmodel()
set("language","en")
set("unit","metric","waterUW",9.81)
set("failureDir","l2r","numSlice",50)
set("Method","GLE/M-P","on","Method","JanbuSim","on","Method","Spencer","on")
(2) 边界定义
边界由外部边界和材料边界组成:
extboundary(20,25,30,25,50,35,70,35,70,20,20,20,20,25)
matboundary(30,25,50,29,54,31,70,31)
(3) 材料定义
材料模型包括: (1) Mohr-Coulomb (2) Hoek-Brown (3) SHANSEP
definemat("ground","matID",1,"matName","soil 1","uw",19.5,"cohesion",0,"friction",38)
(4) 赋值材料
assignsoilmat("matid",1,"atpoint",44.1517,29.8778)
(5) 边坡限制
definelimits("limit",20,36.665,"limit2",45,70)
(6) 水位定义
addwatertable(0,10,30,3,40,3)
(7) 载荷定义
applyload("constant","loadid",1,"mag",50,"orientation","normal","frompoint",8,16,"topoint",14,16)
applyload("seismic","horizCoeff",0.15)
(8) 支护定义
definemat("support","matID",1,"supportType","SoilNail","matName","soil_nail","spacing",1.5,"tensCapacity",118,"plateCapacity",86,"bondStrength",15)
addsupport("pattern","id",1,"matid",1,"orientation","anglefromhoriz","angle",-15,"length",4.9,"spaced","along","dist",1.5,"frompoint",0,1.5,"topoint",0,5)
(9) 计算过程
compute("silence")
getminfos("JanbuSim")
(10) 结果显示
show("slices")
hide("allsurfaces")
savemodel()