-
Notifications
You must be signed in to change notification settings - Fork 179
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
Comments
The default file prefix is “temp”, which could be a problem for you for some reason. Try adding an argument to the run_sim using a different name to see if you can see any differences between the original temp.* and the new files:
e.g.: results = simulation.run_sim(file_prefix="test2")
You can also use the “save_hyd” and “hydfile” options to see if it is solving through the hydraulics and crashing at the water quality, or if it is crashing before that point.
…-dbh
From: tyjchen <notifications@github.com>
Reply-To: USEPA/WNTR <reply@reply.github.com>
Date: Monday, March 25, 2019 at 12:36 PM
To: USEPA/WNTR <WNTR@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Subject: [EXTERNAL] [USEPA/WNTR] .bin file not writing when running epanet simulation (#78)
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" are writing just fine.
simulation = wntr.sim.EpanetSimulator(wn)
results = simulation.run_sim()
as a result i keep getting an error back "wntr.epanet.toolkit.EpanetException: EPANET Error 200".
any pointers as to why the .bin file is not saving?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#78>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AFQ5San0yY1Y4ThnX0rgIT_N0hGQBP7-ks5vaRcVgaJpZM4cIDvg>.
|
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? |
This would seem (along with error code 200) that there is something wrong with the input file somewhere. We have frequently used the EPANET GUI to open and debug models where there is an input file error; occasionally, just opening it in EPANET GUI, then saving it again as a .inp file will fix the problem (this is the EPANET equivalent of turning it off and back on again).
…-dbh
From: tyjchen <notifications@github.com>
Reply-To: USEPA/WNTR <reply@reply.github.com>
Date: Monday, March 25, 2019 at 12:48 PM
To: USEPA/WNTR <WNTR@noreply.github.com>
Cc: David Hart <dbhart@sandia.gov>, Comment <comment@noreply.github.com>
Subject: [EXTERNAL] Re: [USEPA/WNTR] .bin file not writing when running epanet simulation (#78)
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?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#78 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AFQ5STKWkdLJdSLBe2-GEPFq7-2U6oKuks5vaRnigaJpZM4cIDvg>.
|
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! |
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?
The text was updated successfully, but these errors were encountered: