Epanet Matlab Toolkit Help

7 views (last 30 days)
Helena on 2 Jan 2013
Hello, I am a Matlab beginner and use Epanet Matlab Toolkit. I run it for 24 hours, 1 hour time step. I expect to get 25 result values (0-24), but I get 26. It seems that some random number (time step) is generated at the time 7.1225 hrs. Could someone advise me please how to change a code to get rid of it? I basically need to get only values which would Epanet generate if I ran the model from Epanet (not from Matlab). Thank you very much! Helena

Accepted Answer

Demetrios Eliades
Demetrios Eliades on 4 Jan 2013
Sometimes, EPANET will create some additional points, when something important (a hydraulic event) happens into your network. So basically at time 7.1225 a hydraulic event has occurred (e.g. a tank started to empy), and EPANET creates an intermediate measurement, even though you did not ask it to do that.
A simple solution is to always check the time corresponding to each measurement, and reject it if you don't use it.
  1 Comment
Helena on 30 Jan 2013
Hi Demetrios,
Thank you for your answer. I did it as you suggested. I have two water distribution networks. Interestingly, it works for one network, but it does not work for the second network. In the second network, although intermediate time steps are shown (in 'tv' table), the energy values are reported in much more intermediate time steps. Therefore, I really cannot identify those 'extra' values.
Is there a way to solve this issue? For example, can Epanet dll file be changed, and how this can be done, to report values only in the regular time steps?
Thank you.
Best Regards,

Sign in to comment.

More Answers (0)


Find more on Weather and Atmospheric Science in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by