Welcome to the RAS Solution Forums HECRAS Controller steady flow analysis

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8250
    Sauhardra Joshi
    Participant

    i have error message while executing output_nodeoutput in PYTHON.

    # computations of the current plan
    v1,NMsg,TabMsg,v2 = RC.Compute_CurrentPlan(NMsg,TabMsg,block)
    # ID numbers of the river and the reach
    RivID,RchID = 1,1
    # to be populated: number of nodes, list of RS and node types
    NNod,TabRS,TabNTyp = None,None,None
    # reading project nodes: cross-sections, bridges, culverts, etc.
    v1,v2,NNod,TabRS,TabNTyp = \
    RC.Geometry_GetNodes(RivID,RchID,NNod,TabRS,TabNTyp)
    # ID of output variables: WSE, ave velocity
    WSE_id,AvVel_id = 2,23
    TabWSE = numpy.empty([NNod],dtype=float) # NumPy array for WSE
    TabVel = numpy.empty([NNod],dtype=float) # NumPy array for velocities
    #for i in range(0,NNod): # reading over nodes
    if TabNTyp[i] == “”: # simple cross-section
    # reading single water surface elevation
    TabWSE[i],v1,v2,v3,v4,v5,v6 =
    RC.Output_NodeOutput(RivID,RchID,i+1,0,1,WSE_id)
    # reading single velocity
    TabVel[i],v1,v2,v3,v4,v5,v6 =\
    RC.Output_NodeOutput(RivID,RchID,i+1,0,1,AvVel_id)

    This code is from a paper i found.
    Code works fine upto “Compute_CurrentPlan”. Can anyone help me?

    #13620
    Sauhardra Joshi
    Participant

    This is the screenshot of the code.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.