ENinitQ: Initialize water quality analysis

Description Usage Arguments Details Value Examples

View source: R/quality.r

Description

Initialize water quality analysis

Usage

1
ENinitQ(saveFlag)

Arguments

saveFlag

boolean or integer indicating whether to save quality results to a file

Details

Call ENinitQ before running quality analysis using ENrunQ with ENnextQ or ENstepQ. ENopenQ must have been called prior to calling ENinitQ. Do not call ENinitQ with ENsolveQ.

Value

Returns NULL invisibly on success or throws an error or warning

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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 April 22, 2021, 9:08 a.m.