Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.bin file not writing when running epanet simulation #78

Closed
tyjchen opened this issue Mar 25, 2019 · 4 comments
Closed

.bin file not writing when running epanet simulation #78

tyjchen opened this issue Mar 25, 2019 · 4 comments

Comments

@tyjchen
Copy link

tyjchen commented Mar 25, 2019

i notice that a .bin file is not writing to file when i call the following command on my wntr object "wn". the ".inp" and ".rpt" files are writing just fine.
simulation = wntr.sim.EpanetSimulator(wn)
results = simulation.run_sim()
as a result i keep getting an error back "enData.ENopen(inpfile, rptfile, outfile)...wntr.epanet.toolkit.EpanetException: EPANET Error 200".
any pointers as to why the .bin file is not saving?

@dbhart
Copy link
Collaborator

dbhart commented Mar 25, 2019 via email

@tyjchen
Copy link
Author

tyjchen commented Mar 25, 2019

i tried specifying a new file prefix and it didn't help, i even specified that the hydraulic models be saved

simulation.run_sim(file_prefix = "temp_", save_hyd = True, use_hyd = True)

is this implying that theres something inherently wrong with the model? causing the hydraulic solver to crash?

@dbhart
Copy link
Collaborator

dbhart commented Mar 25, 2019 via email

@tyjchen
Copy link
Author

tyjchen commented Mar 26, 2019

seems like it was an error with the network design, the problem went away after i tweaked the design a bit. thank you for your helpful pointers!

@tyjchen tyjchen closed this as completed Mar 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants