Skip to content

Commit b7cbbc2

Browse files
committed
include new parameters when loading inp
CurveIndex, LinkPumpPower
1 parent 27cfbe3 commit b7cbbc2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

epanet_matlab_toolkit/epanet.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
ControlTypes; % Set of control types
5858
ControlTypesIndex; % Index of the control types
5959
CurveCount; % Number of curves
60+
CurveIndex; % Index of curves
6061
CurvesInfo; % Curves info
6162
DemandModelCode; % Demand model code DDA - 0, PDA - 1
6263
DemandModelPmin; % Demand model Pmin - Pressure below which there is no demand
@@ -96,6 +97,7 @@
9697
LinkPumpNameID; % Name ID of pumps
9798
LinkPumpPatternIndex; % Index of pump pattern
9899
LinkPumpPatternNameID; % ID of pump pattern
100+
LinkPumpPower; % Power value
99101
LinkPumpPowerUnits; % Units of power
100102
LinkPumpType; % Pump type e.g constant horsepower, power function, user-defined custom curv
101103
LinkPumpTypeCode; % Pump index/code
@@ -687,6 +689,7 @@ function set_node_demand_pattern(obj, fun, propertie, value, extra)
687689
obj.LinkCount = obj.getLinkCount;
688690
obj.PatternCount = obj.getPatternCount;
689691
obj.CurveCount = obj.getCurveCount;
692+
obj.CurveIndex = obj.getCurveIndex;
690693
obj.ControlRulesCount = obj.getControlRulesCount;
691694
obj.NodeJunctionCount = obj.NodeCount-obj.NodeTankReservoirCount; %obj.getNodeJunctionCount;
692695
% Get type of the parameters
@@ -797,6 +800,7 @@ function set_node_demand_pattern(obj, fun, propertie, value, extra)
797800
obj.LinkPumpPatternIndex = obj.getLinkPumpPatternIndex;
798801
obj.LinkPumpTypeCode = obj.getLinkPumpTypeCode;
799802
obj.LinkPumpType = obj.getLinkPumpType;
803+
obj.LinkPumpPower = obj.getLinkPumpPower;
800804
obj.CurvesInfo = obj.getCurvesInfo;
801805
catch
802806
end

0 commit comments

Comments
 (0)