OpenWaterAnalytics/EPANET-Matlab-Toolkit

Final check if all new features are included v2.2

Mariosmsk opened this issue · 0 comments

https://github.com/OpenWaterAnalytics/EPANET/blob/dev/ReleaseNotes2_2.md

Function Description
  • EN_setflowunits | Sets the project's flow units
  • EN_addnode | Adds a new node to a project
  • EN_addlink | Adds a new link to a project
  • EN_addcontrol | Adds a new simple control to a project
  • EN_addrule | Adds a new control rule to a project
  • EN_deletenode | Deletes a node from the project
  • EN_deletelink | Deletes a link from the project
  • EN_deletepattern | Deletes a time pattern from the project
  • EN_deletecurve | Deletes a data curve from the project
  • EN_deletecontrol | Deletes a simple control from the project
  • EN_deleterule | Deletes a rule-based control from the project
  • EN_setnodeid | Changes the ID name for a node
  • EN_setjuncdata | Sets values for a junction's parameters
  • EN_settankdata | Sets values for a tank's parameters
  • EN_setlinkid | Changes the ID name for a link
  • EN_setlinknodes | Sets a link's start- and end-nodes
  • EN_setlinktype | Changes the type of a specific link
  • EN_setpipedata | Sets values for a pipe's parameters
  • EN_getdemandmodel | Retrieves the type of demand model in use
  • EN_setdemandmodel | Sets the type of demand model to use
  • EN_adddemand | Adds a new demand category to a node
  • EN_deletedemand | Deletes a demand category from a node
  • EN_getdemandindex | Finds a demand category's index given its name
  • EN_getdemandname | Gets the name of a node's demand category
  • EN_setdemandname | Sets the name of a node's demand category
  • EN_setdemandpattern | Assigns a time pattern to a node's demand category
  • EN_setpatternid | Changes the ID name of a time pattern
  • EN_setcurveid | Changes the ID name of a data curve
  • EN_getcurvetype | Gets a curve's type
  • EN_setheadcurveindex | Sets the index of a head curve used by a pump
  • EN_getruleinfo | Gets the number of elements in a rule-based control
  • EN_getruleid | Gets the name assigned to a rule-based control
  • EN_getpremise | Gets the contents of a premise in a rule-based control
  • EN_setpremise | Sets the contents of a premise in a rule-based control
  • EN_setpremiseindex | Sets the index of an object in a premise of a rule-based control
  • EN_setpremisestatus | Sets the status of an object in a premise of a rule-based control
  • EN_setpremisevalue | Sets the value of a property in a premise of a rule-based control
  • EN_getthenaction | Gets the contents of a THEN action in a rule-based control
  • EN_setthenaction | Sets the contents of a THEN action in a rule-based control
  • EN_getelseaction | Gets the contents of an ELSE action in a rule-based control
  • EN_setelseaction | Sets the contents of an ELSE action in a rule-based control
  • EN_setrulepriority | Sets the priority of a rule-based control
  • EN_gettitle | Gets a project's title
  • EN_settitle | Sets a project's title
  • EN_getcomment | Gets the descriptive comment assigned to an object
  • EN_setcomment | Assigns a descriptive comment to an object
  • EN_clearreport | Clears the contents of a project's report file
  • EN_copyreport | Copies the contents of a project's report file
  • EN_getresultindex | Gets the order in which a node or link was saved to file
  • EN_getvertexcount | Gets the number of vertex points in a link
  • EN_getvertex | Gets the coordinates of a vertex point in a link
  • EN_setvertices | Assigns a new set of vertex points to a link

New API Constants

Node value types:

  • EN_CANOVERFLOW
  • EN_DEMANDDEFICIT

Link value types:

  • EN_PUMP_STATE
  • EN_PUMP_EFFIC
  • EN_PUMP_POWER
  • EN_PUMP_HCURVE
  • EN_PUMP_ECURVE
  • EN_PUMP_ECOST
  • EN_PUMP_EPAT

Count types:

  • EN_RULECOUNT

Head loss formula:

  • EN_HW
  • EN_DW
  • EN_CM

Hydraulic option types:

  • EN_HEADERROR
  • EN_FLOWCHANGE
  • EN_HEADLOSSFORM
  • EN_GLOBALEFFIC
  • EN_GLOBALPRICE
  • EN_GLOBALPATTERN
  • EN_DEMANDCHARGE
  • EN_SP_GRAVITY
  • EN_SP_VISCOS
  • EN_EXTRA_ITER
  • EN_CHECKFREQ
  • EN_MAXCHECK
  • EN_DAMPLIMIT

Quality option types:

  • EN_SP_DIFFUS
  • EN_BULKORDER
  • EN_WALLORDER
  • EN_TANKORDER
  • EN_CONCENLIMIT

Simulation statistic types:

  • EN_MAXHEADERROR
  • EN_MAXFLOWCHANGE
  • EN_MASSBALANCE
  • EN_DEFICIENTNODES
  • EN_DEMANDREDUCTION

Action code types:

  • EN_UNCONDITIONAL
  • EN_CONDITIONAL

Curve types:

  • EN_VOLUME_CURVE
  • EN_PUMP_CURVE
  • EN_EFFIC_CURVE
  • EN_HLOSS_CURVE
  • EN_GENERIC_CURVE

Demand model types:

  • EN_DDA
  • EN_PDA