Skip to contents

Write Pump Curves

Usage

writePumpCurves(
  epanetConfig,
  TDH,
  curveNamePrefix = "TDH",
  deleteOldCurves = FALSE,
  dbg = TRUE
)

Arguments

epanetConfig

EPANET configuration, as retrieved by readEpanetInputFile

TDH

data.frame(ID, X_Value, Y_Value)

curveNamePrefix

(default: "TDH")

deleteOldCurves

if TRUE all curves in epantetConfig$CURVES will be deleted before adding new ones (default: FALSE)

dbg

show debug messages? (default: TRUE)

Value

Modified EPANET configuration