Learn R Programming

epanet2toolkit (version 1.0.8)

ENsetqualtype: Set the type of water quality analysis called for.

Description

ENsetqualtype sets the type of water quality analysis called for.

Usage

ENsetqualtype(qualcode, chemname = "", chemunits = "", tracenode = "")

Value

returns NULL invisibly on success

Arguments

qualcode

An integer or a character string, the water quality analysis code (see below).

chemname

A character string, the name of the chemical being analyzed.

chemunits

A character string, units that the chemical is measured in.

tracenode

A character string, ID of node traced in a source tracing analysis.

Details

Water quality analysis codes are as follows:

EN_NONE0No quality analysis
EN_CHEM1Chemical analysis
EN_AGE2Water age analysis
EN_TRACE3Source tracing

Chemical name and units can be an empty string if the analysis is not for a chemical. The same holds for the trace node if the analysis is not for source tracing. Note that the trace node is specified by ID and not by index.

See Also

ENgetqualtype

Examples

Run this code
inp <- file.path( find.package("epanet2toolkit"), "extdata","Net1.inp")  
ENopen( inp, "Net1.rpt")
ENgetqualtype()
ENsetqualtype("EN_CHEM", "Chlorine", "mg/L", "")
ENgetqualtype()
ENclose()
# clean-up the created files
file.remove("Net1.rpt") 

Run the code above in your browser using DataLab