ENsetheadcurveindex function

Sets index of head curve used by a pump