ENrunH {epanet2toolkit} | R Documentation |
run hydraulics engine
Description
ENrunH
Runs a single period hydraulic analysis, retrieving the
current simulation clock time t
.
Usage
ENrunH()
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.
Value
Returns NULL invisibly; called for side effect
See Also
ENopenH
, ENinitH
, ENnextH
, ENcloseH
Examples
# 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()
# clean-up the created files
file.remove("Net1.rpt")
[Package epanet2toolkit version 1.0.5 Index]