ENepanet {epanet2toolkit}R Documentation

ENepanet

Description

runs a complete EPANET simulation

Usage

ENepanet(inpFile, rptFile, binOutFile = "")

Arguments

inpFile

name of input file

rptFile

name of report file (to be created)

binOutFile

name of optional binary output file

Value

Returns NULL invisibly; called for side effect

Examples

# path to Net1.inp example file included with this package
inp <- file.path( find.package("epanet2toolkit"), "extdata","Net1.inp") 
print(inp)
ENepanet( inp, "Net1.rpt") 
# try opening Net1.rpt in a text editor or reading it back
# into R with the read.rpt() function in package epanetReader
myRpt <- epanetReader::read.rpt("Net1.rpt")
summary(myRpt)
# clean-up the created file 
file.remove("Net1.rpt")

[Package epanet2toolkit version 1.0.4 Index]