Exemplo n.º 1
0
def singlesegment(
        dt,  # dt
        qup=None,  # qup
        quc=None,  # quc
        qdp=None,  # qdp
        qlat=None,  # ql
        dx=None,  # dx
        bw=None,  # bw
        tw=None,  # tw
        twcc=None,  # twcc
        n_manning=None,  #
        n_manning_cc=None,  # ncc
        cs=None,  # cs
        s0=None,  # s0
        velp=None,  # velocity at previous time step
        depthp=None,  # depth at previous time step
):
    # call Fortran routine
    return mc.muskingcungenwm(
        dt,
        qup,
        quc,
        qdp,
        qlat,
        dx,
        bw,
        tw,
        twcc,
        n_manning,
        n_manning_cc,
        cs,
        s0,
        velp,
        depthp,
    )
def singlesegment(
    dt,  # dt
    qup=None,  # qup
    quc=None,  # quc
    qdp=None,  # qdp
    qlat=None,  # ql
    dx=None,  # dx
    bw=None,  # bw
    tw=None,  # tw
    twcc=None,  # twcc
    n_manning=None,  #
    n_manning_cc=None,  # ncc
    cs=None,  # cs
    s0=None,  # s0
    velp=None,  # DUMMY -- dropped from the computation
    depthp=None,  # depth at previous time step
):

    # call Fortran routine
    rv = muskingcunge_module.muskingcungenwm(
        dt,
        qup,
        quc,
        qdp,
        qlat,
        dx,
        bw,
        tw,
        twcc,
        n_manning,
        n_manning_cc,
        cs,
        s0,
        0,
        depthp,
    )
    # return qdc, vel, depth

    return rv[:3]
Exemplo n.º 3
0
def singlesegment(
    dt,  # dt
    qup=None,  # qup can be anything
    quc=None,  # quc will not be more than a 10 percent diff than qup
    qlat=None,  # ql can be anything - key
    qdp=None,  # qdp will not be more than 20 percent diff than qup+qlat
    dx=None,  # dx fully variable
    bw=None,  # bw correlated to tw, tw always > bw
    tw=None,  # tw correlated to bw, bw always < tw
    twcc=None,  # twcc always > than tw, tw of broader floodplain
    n_manning=None,  # usually smaller than n_manning_cc
    n_manning_cc=None,  # ncc usually greater than n_manning
    cs=None,  # cs correlated to bw and tw
    s0=None,  # s0 variable
    velp=None,  # velocity at previous time step not rel
    depthp=None,  # depth at previous time step starting point for iteration depthp = approx(y_direct(bw,n_manning,s0,avg(qup,qdp)))
):

    # call Fortran routine
    return mc.muskingcungenwm(
        dt,
        qup,
        quc,
        qdp,
        qlat,
        dx,
        bw,
        tw,
        twcc,
        n_manning,
        n_manning_cc,
        cs,
        s0,
        velp,
        depthp,
    )