Hello.

I want to know if there’s a function or method to retrieve the Pump Efficiency curve Index, there’s a function to retrieve The index of Pump curve but i cant find the one for Pump Efficiency curve. ( in MATLAB of course).

Thank you so much.

Hello.

I want to know if there’s a function or method to retrieve the Pump Efficiency curve Index, there’s a function to retrieve The index of Pump curve but i cant find the one for Pump Efficiency curve. ( in MATLAB of course).

Thank you so much.

As far as I know, the retrieval of efficiency curves is the same as pump curves (and any other type of curves)

Curves are recognized by a unique ID and index

The retrieval is done with `EN_getcurvevalue()`

function that gets as input the index of the curve and the index of the desired point, such that some kind of loop is possible to get the entire curve

Also, see the `EN_getcurvetype()`

function that returns the type of the curve (Tank volume, Pump Head, Pump Efficiency etc.)

Thank you “GalPzezlman” for your answer.

But “EN_getcurvevalue()” you have to put the index of the curve that you want, my problem is that I don’t know the Pump efficiency curve index, example : this function “getLinkPumpHeadCurveIndex” gives me the index of pump curve, but I want the same function for pump efficiency curve.

For more information: In a network with 15 curves, how to find witch one of all this curves are the Pump efficiency curve.

Thank you.

Hi @sono,

First call the `EN_getlinkvalue`

function with the parameter `EN_PUMP_ECURVE`

to get the pump efficiency vs. flow curve index, then use the curve functions to get the curve itself.

See here:

http://wateranalytics.org/EPANET/group___links.html#ga700c19fcdecb4e61e1641324d983c3d6

http://wateranalytics.org/EPANET/group___enumerations.html#ga84af78c42cef7c16a513fbdba3b7f4ed

http://wateranalytics.org/EPANET/group___curves.html

1 Like

thank you @eladsal

Your solution might work but I am new with epanet toolkit, i use only functions with d.get…,

I don’t know how to use EN_getLinkvalue, and i cant find this function in d.getLinkvalue

thank you.

Hi @sono,

Based on @eladsal, I think you need something like the example below:

```
% Pump efficiency v. flow curve index.
PumpECurveIndex = d.getLinkPumpECurve;
CurvesInfo = d.getCurveValue{PumpECurveIndex}
```

Regards,

Thank you so much @Mariosmsk

That what I was looking for, thank you.

but question out subject the function “d.getLinkPumpECurve” where did you find it, cuz i can’t find it in GitHub- List of Matlab Class Functions.

But thank you anyway.

Regards,

Please check again here: https://github.com/OpenWaterAnalytics/EPANET-Matlab-Toolkit/tree/dev-2.2-edit