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

Different results when running Epanet from WNTR than directly on Epanet #257

Closed
apollner opened this issue Apr 4, 2022 · 2 comments
Closed

Comments

@apollner
Copy link

apollner commented Apr 4, 2022

I'm running a 24h PDD simulation on WNTR using EpanetSimulator. I use wn.write_inpfile and save the file. When I run this saved file directly on Epanet I get different results than what I get with WNTR. You can see this discrepancy starts around 7:00 .Any Ideas what could be causing this? Thanks
wntrvsepanet

@apollner apollner changed the title Different results when running Epanet from WNTR and directly on Epanet Different results when running Epanet from WNTR than directly on Epanet Apr 4, 2022
@kaklise
Copy link
Collaborator

kaklise commented Apr 11, 2022

It's difficult to debug without the original INP file. Can you identify differences between the original INP file and the file written by WNTR? WNTR includes a function we use for debugging to find differences (_diff_inp_files in the io.py). Also, if the original and new INP file are not in the same units, that could cause discrepancies in the results. You can set the units convention when calling write_inpfile.

@apollner
Copy link
Author

apollner commented May 18, 2022

Thank you and sorry I didn't react to your response before. At the end I think I managed to get similar results when I changed the time step to a smaller one.

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