tests2.py 文件源码

python
阅读 51 收藏 0 点赞 0 评论 0

项目:OpenSAPM 作者: pathfinder14 项目源码 文件源码
def stup():
    x0 = x[0]
    init_cond = np.zeros_like(X)
    for i in range(0, x_nods_quantity):
        if 0 <= x0 < 0.3:
            init_cond[i] = 0
            x0 += h
        elif(0.3 <= x0 <= 0.7):
            init_cond[i] = 1
            x0 += h
        else:
            init_cond[i] = 0
            x0 += h
    return init_cond
#stupenka end
#different initial conditions end

# different transfer velocity
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号