ENgetnodetype | R Documentation |
ENgetnodetype
retrieves the node-type code
ENgetnodetype(nodeindex)
nodeindex |
An integer specifying the node index. |
integer type-code of the node.
Node indexes are consecutive integers starting from 1.
Node type codes consist of the following constants:
EN_JUNCTION | 0 | Junction node |
EN_RESERVOIR | 1 | Reservoir node |
EN_TANK | 2 | Tank node |
# path to Net1.inp example file included with this package
inp <- file.path( find.package("epanet2toolkit"), "extdata","Net1.inp")
ENopen( inp, "Net1.rpt")
ENgetnodetype(1)
ENgetnodetype(10)
ENgetnodetype(11)
ENclose()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.