Learn R Programming

epanet2toolkit (version 1.0.8)

ENnextQ: Advances WQ simulation to start of the next hydraulic time period.

Description

Advances WQ simulation to start of the next hydraulic time period.

Usage

ENnextQ()

Arguments

Value

seconds until next hydraulic event occurs or 0 if at the end of the simulation period.

Examples

Run this code
inp <- file.path( find.package("epanet2toolkit"), "extdata","Net1.inp")  
ENopen( inp, "Net1.rpt")
ENsolveH()
ENsetqualtype("EN_CHEM", "Chlorine", "mg/L", "")
ENopenQ()
ENinitQ(0)
ENrunQ()
ENnextQ()
ENrunQ()
ENcloseQ()
ENclose()
# clean-up the created files
file.remove("Net1.rpt") 

Run the code above in your browser using DataLab