ENrunQ: Computs WQ results at current time .

View source: R/quality.r

ENrunQR Documentation

Computs WQ results at current time .

Description

Computs WQ results at current time .

Usage

ENrunQ()

Details

used in a loop with ENnextQ() to run an extended period WQ simulation.

Value

current simulation time in seconds

Examples

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

epanet2toolkit documentation built on Nov. 6, 2023, 9:06 a.m.