Learn R Programming

epanet2toolkit (version 1.0.8)

ENsettimeparam: Set the value of a time parameter.

Description

ENsettimeparam sets the value of a time parameter.

Usage

ENsettimeparam(paramcode, timevalue)

Arguments

paramcode

An integer or character

timevalue

An integer or character value of the time parameters in seconds.

Details

Time parameter codes consist of the following constants:

EN_DURATION0Simulation duration
EN_HYDSTEP1Hydraulic time step
EN_QUALSTEP2Water quality time step
EN_PATTERNSTEP3Time pattern time step
EN_PATTERNSTART4Time pattern start time
EN_REPORTSTEP5Reporting time step
EN_REPORTSTART6Reporting starting time
EN_RULESTEP7Time step for evaluating rule-based controls
EN_STATISTIC8Type of time series post-processing to use:
EN_NONE (0) = none
EN_AVERAGE (1) = averaged
EN_MINIMUM (2) = minimums
EN_MAXIMUM (3) = maximums
EN_RANGE (4) = ranges

Do not change time parameters after calling ENinitH in a hydraulic analysis or ENinitQ in a water quality analysis

Examples

Run this code
# path to Net1.inp example file included with this package 
inp <- file.path( find.package("epanet2toolkit"), "extdata","Net1.inp") 
ENopen(inp, "Net1.rpt")
ENgettimeparam("EN_HYDSTEP")
ENsettimeparam("EN_HYDSTEP", 600)
ENgettimeparam("EN_HYDSTEP")
ENclose()

Run the code above in your browser using DataLab