ENrunH: run hydraulics engine

Description Usage Details See Also Examples

View source: R/hydraulics.r

Description

ENrunH Runs a single period hydraulic analysis, retrieving the current simulation clock time t.

Usage

1

Details

Use ENrunH along with ENnextH in a while loop to analyze hydraulics in each period of an extended period simulation. This process automatically updates the simulation clock time so treat t as a read-only variable.

ENinitH must have been called prior to running the ENrunH-ENnextH loop.

See ENnextH for an example of using this function.

See Also

ENopenH, ENinitH, ENnextH, ENcloseH

Examples

1
2
3
4
5
6
7
8
# path to Net1.inp example file included with this package
inp <- file.path( find.package("epanet2toolkit"), "extdata","Net1.inp")  
ENopen( inp, "Net1.rpt")
ENopenH()
ENinitH(0)
ENrunH()
ENcloseH()
ENclose()

epanet2toolkit documentation built on July 28, 2018, 1:06 a.m.