Giter Club home page Giter Club logo

Comments (4)

kaklise avatar kaklise commented on June 25, 2024 1

Leaks are not compatible with the EpanetSimulator (EPANET models leaks using Emitters). I believe if you change EpanetSimulator to WNTRSimulator, the difference in pressures will be positive.

from wntr.

soroushmisc avatar soroushmisc commented on June 25, 2024

Hello Katherine @kaklise ,
Thank you for the respond. I have tried the code with WNTRSimulator. There is an error when I ran the code:

.....anaconda3\lib\site-packages\wntr\sim\core.py:1299: UserWarning: Simulation did not converge at time 08:00:00. Reached maximum number of iterations: 2999
warnings.warn('Simulation did not converge at time ' + self._get_time() + '. ' + mesg)

Do you have any idea of the reasons this could happen and how to resolve that, please?
Thanks

from wntr.

kaklise avatar kaklise commented on June 25, 2024

You can increase the number of iterations using sim.run_sim(solver_options={"MAXITER": 6000}), but this might indicate a larger issue. For example, if you created many leaks at critical pipes, the system might be able to solve. You should be able to look at simulation results up to the point where the system did not converge.

from wntr.

michaelbynum avatar michaelbynum commented on June 25, 2024

Another couple of suggestions are below. These all stem from the same reasoning which is that large sudden changes to the hydraulics make convergence more difficult.

  1. Try decreasing the hydraulic timestep
  2. Try making each leak start at a different time
  3. Try starting with a smaller leak area and increasing it over a small time frame (e.g., 10 minutes)

from wntr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.