| ENrunH | R Documentation |
ENrunH Runs a single period hydraulic analysis, retrieving the
current simulation clock time t.
ENrunH()
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.
Current simulation clock time.
ENopenH, ENinitH, ENnextH, ENcloseH
# 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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.