Batch run in HAMMER

Applies To 
Product(s): HAMMER
Version(s): CONNECT Edition, V8i
Area:  Modeling
Original Author: Scott Kampa, Bentley Technical Support Group


How can a user do a batch run in HAMMER, to compute transient simulations for multiple scenarios at once? (so as not to have to wait for each one)


Starting with the V8i SELECTseries 5, Bentley HAMMER now has the ability to execute batch runs on multiple scenarios, similar to the functionality found in WaterGEMS and WaterCAD.

Scenario Batch Run File

Starting with HAMMER CONNECT Edition Update 2, a new import and export feature has been included in the Batch dialog. You can select a set of scenarios in a batch and export these selections out to a Scenario Batch Run (.sbr) file. If you clear the batch selection, you can then quickly select them again by importing the Scenario Batch Run file again. This can be particularly useful for models with a large number of scenarios, to enable you to switch between different batch runs quickly.

Initial Conditions

Optimally, the user should have the setting “Always Calculate Initial Conditions” active (Analysis > Always Calculate Initial Conditions), but HAMMER will generate a prompt that will allow the user to calculate initial conditions at the prompt without needing to go back to model.

Note that you cannot perform a batch run of just the initial conditions. If you need to batch run steady state or EPS scenarios, you will need to use WaterGEMS or WaterCAD.

Viewing Results

Results for multiple scenarios can be viewed on the same graph for Time Histories and Extended Node Data by selecting the ellipsis button next to the Additional Scenarios item in the Transient Results Viewer:

If you are using an older version of HAMMER, batch run is not available and you will have to compute each scenario individually. You can then view the results from the individual results in the transient results viewer by changing the scenario.

Note that you may need to reopen the Transient Results Viewer after changing scenarios. This is because different scenarios may have different active elements, and therefore, different available profiles and active elements in the time history graphs.

There is also a tool based on WaterObjects.NET created by Bentley Technical Support that will allow for batch runs to be used in older versions of HAMMER. The following section has some details

The following forum post has instructions on how to use this WaterObjects.NET tool, as well as a download file to obtain this:

Note that this tool is not an officially certified tool or feature, so appropriate precautions should be taken. The simplest solution to the issue would be to upgrade to the latest version of HAMMER

See Also

Scenario and Alternative Management