ENgetheadcurveindex function

Retrieves index of head curve used by a pump