Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #8161
    Chris G.
    Keymaster

    Yes…there is a “Run Multiple Plans” menu item already in HEC-RAS, but for fun, I’ve written a simple subroutine that does the same thing. This subroutine might serve as a starting point for a more sophisticated Monte Carlo simulation or an optimization run. Give it a try…

    Sub RunMultiplePlans()

    ‘**********************************************************
    ‘Demonstrates Project_Open subroutine and the _
    Compute_CurrentPlan function in a Do-Loop to run _
    mulitple plans.

    ‘Written by Christopher Goodell
    ‘March 5, 2015
    ‘**********************************************************

    ‘Instantiate a new HECRASController
    Dim RC As New RAS500.HECRASController

    ‘Open a new project
    Dim strFilename As String
    Sheets(“RASProjects”).Select
    strFilename = Range(“C4”).Value ‘In Cell C4, Paste in _
    path and filename of the RAS project you want to open.
    RC.Project_Open (strFilename)

    ‘Determine the number of plans
    Dim blnIncludeBasePlansOnly As Boolean
    Dim lngPlanCount As Long, strPlanNames() As String
    blnIncludeBasePlansOnly = True
    RC.Plan_Names lngPlanCount, strPlanNames(), _
    blnIncludeBasePlansOnly

    ‘Loop through the plans and run each one.
    Dim i As Integer
    Dim blnSetIt As Boolean
    Dim lngMessages As Long
    Dim strMessages() As String
    Dim blnDidItCompute As Boolean
    i = 1
    Do Until i > lngPlanCount
    blnSetIt = RC.Plan_SetCurrent(strPlanNames(i))
    i = i + 1

    ‘Compute the selected plan.
    blnDidItCompute = RC.Compute_CurrentPlan(lngMessages, _
    strMessages(), True)
    Loop

    MsgBox “Done!”

    ‘Close HEC-RAS
    RC.QuitRAS
    End Sub

    #13474
    stephane
    Participant

    Hi Chris,
    You said “there is a “Run Multiple Plans” menu item already in HEC-RAS” in your message.
    It seems that we haven’t the same HECRAS version … No Multiple Plans option in my version (last beta).
    Maybe I’m wrong.
    Stephane

    #13475
    user
    Participant

    To run multiple plan.

    In HecRAS, under Run menu > Run Multiple Plans

    #13476
    Anonymous
    Guest

    Hi!
    I´m using the “Run Multiple Plans” option in order to run 48 plans that I have already set up, but my issue is that whenever it finishes a run it says “Error when loading plan data” and I have to click on the message and right after that it starts to run the next plan.
    Do you know what could be happening here?

    Thanks in advance

    #13479
    Anonymous
    Guest

    Is there a way to get RAS to run multiple water quality plans?

    #13477
    Anonymous
    Guest

    Did you ever receive any feedback on this question?

    I getting the same error but I’m noticing that my colleague, running the same files, is not getting the error on her computer.

    It occurs in versions 4.1, 5.0.1 and 5.0.3 for me.

    #13478
    stephane
    Participant

    Return-Path:
    X-Original-To: [email protected]
    Delivered-To: [email protected]
    Received: from nm4-vm4.bullet.mail.ir2.yahoo.com (nm4-vm4.bullet.mail.ir2.yahoo.com [212.82.96.102])
    by mbob.nabble.com (Postfix) with ESMTP id 2A5FA367313E
    for ; Mon, 21 Nov 2016 14:44:03 -0800 (PST)
    DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s2048; t=1479768871; bh=RHUTbnh+K/mTdjT6oDGw+/J1nxfC/mlfeht9V6XvYKg=; h=Subject:To:References:From:Date:In-Reply-To:From:Subject; b=RuWYZFUIX5pDzqgwiGOjp+h1WhC6mUo33zE4B1oKeetnSDP5B3BNGk69MTfH/RA1xyjmJ59uAJPf4fKf1JSOVm8npn38i6YcIQmTHChZJjjQviyHbehvPxNpGsgYe9bOP/z+eXQGsbz2F+pFE3ZRB3s1M813rQrDVGfavMrBNU5C6l2xHurAa53VvqE0XKm22rmFO38ifekev39Sq8DKVy7IgM1PhmzkvKtj9Txu9QJF7FoJgQTz5P7iV9yejS65pu69DH44d12gOCl6VoPmYKy34zMXFbzxPZ7Z6/DUvkFhrOH6Xq7EmAbECj0uPYoWAMfCAlDfUOnrtPF/peFlIw==
    Received: from [212.82.98.63] by nm4.bullet.mail.ir2.yahoo.com with NNFMP; 21 Nov 2016 22:54:31 -0000
    Received: from [46.228.39.86] by tm16.bullet.mail.ir2.yahoo.com with NNFMP; 21 Nov 2016 22:54:31 -0000
    Received: from [127.0.0.1] by smtp123.mail.ir2.yahoo.com with NNFMP; 21 Nov 2016 22:54:31 -0000
    X-Yahoo-Newman-Id: [email protected]
    X-Yahoo-Newman-Property: ymail-3
    X-YMail-OSG: GWSXL9gVM1ksE_2LQ02wq1.7Qgpn5rFyfZGUnlDc7Q3tJyp
    cZHQJLsCl9mnaz7O8Myn3mls9s0j29PlFRXT2OAeJC1aG__XQ3OQPwyXK78A
    TSfEeF.R4zYMFDaaN1zGE.pZ36CXNQrgAyF1mOM0XnpEB0RojoijK9Kw9_ek
    W08M_d8jNYuoT81TrMqNw8eqJGObSM91OJrcE4J6Qt81p9k7VlZNPNFTHI9_
    1nxggn9Yy7qMNj3mqVAxyHjAhTSwGj5wbxCAcMKVOYuXGMvJ5wslbW6a3cn.
    i9KjYK1DbosdNYAybfCvzqQ9R0eRsvuMIjqrfvaZpBOOVhJaaggKicqHwdti
    hGuUmyFdDktC60oY2RmElgGTcCu.hytQcpzNdwy7laJ6Qdq_r8r8TV0U3L5b
    VJWxrJz_Ye8FU7upM05Feqxreb6krXdWENBAKz6hForKVygyoNBMsTBcHw9a
    Te0fcNFkZHjVwC7V5bLWrYcS5lKnj66B6c53eXoylQ8OL6i.Wvy9bH9DM8t8
    ZkyV_W3N_HtV0y4lAXvOZ5N_elfxocBM.KEpvYZbKkapleUOb4wSobAI3
    X-Yahoo-SMTP: BVMPXd.swBD4r.x2I5uY4kLBMQ–
    Subject: Re: [Bulk] Re: Run Multiple Plans
    To: “Greg [via HEC-RAS Help]”
    References: <[email protected]>
    <[email protected]>
    <[email protected]>
    <[email protected]>
    <[email protected]>
    From: Stephane GAIJI
    Message-ID: <[email protected]>
    Date: Mon, 21 Nov 2016 23:53:16 +0100
    User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101
    Thunderbird/45.4.0
    MIME-Version: 1.0
    In-Reply-To: <[email protected]>
    Content-Type: multipart/alternative;
    boundary=”————5CB1BA2248110373BF49EDEA”

    This is a multi-part message in MIME format.
    ————–5CB1BA2248110373BF49EDEA
    Content-Type: text/plain; charset=windows-1252; format=flowed
    Content-Transfer-Encoding: 8bit

    The only feedback I received is that there is an option to run multiple
    plans under the “RUN” menu in the project window of HECRAS.

    Le 11/21/2016 à 10:08 PM, Greg [via HEC-RAS Help] a écrit :
    > Did you ever receive any feedback on this question?
    >
    > I getting the same error but I’m noticing that my colleague, running
    > the same files, is not getting the error on her computer.
    >
    > It occurs in versions 4.1, 5.0.1 and 5.0.3 for me.
    >
    >
    >
    > ————————————————————————
    > If you reply to this email, your message will be added to the
    > discussion below:
    > http://hec-ras-help.1091112.n5.nabble.com/Run-Multiple-Plans-tp1398p3285.html
    >
    > To unsubscribe from Run Multiple Plans, click here
    > <http://hec-ras-help.1091112.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1398&code=c2dhaWppQHlhaG9vLmZyfDEzOTh8LTE0NjM3MzI1MQ==>.
    > NAML
    > <http://hec-ras-help.1091112.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
    >

    ————–5CB1BA2248110373BF49EDEA
    Content-Type: text/html; charset=windows-1252
    Content-Transfer-Encoding: 8bit





    The only feedback I received is that there is an option to run
    multiple plans under the “RUN” menu in the project window of
    HECRAS.

    Le 11/21/2016 à 10:08 PM, Greg [via
    HEC-RAS Help] a écrit :
    type="cite"> Did you ever receive any feedback on this question?

    I getting the same error but I’m noticing that my colleague,
    running the same files, is not getting the error on her computer.

    It occurs in versions 4.1, 5.0.1 and 5.0.3 for me.


    If you reply to this email, your
    message will be added to the discussion below:

    http://hec-ras-help.1091112.n5.nabble.com/Run-Multiple-Plans-tp1398p3285.html


    To unsubscribe from Run Multiple Plans, click
    here
    .
    NAML


    ————–5CB1BA2248110373BF49EDEA–

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