Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Wells from CBC not summed #1502

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

Closed
WouterSwierstra opened this issue Apr 4, 2025 · 3 comments
Closed

Wells from CBC not summed #1502

WouterSwierstra opened this issue Apr 4, 2025 · 3 comments
Assignees
Labels
bug Something isn't working waiting for author Waiting for input from the author

Comments

@WouterSwierstra
Copy link

Bug description

I have a model (created with iMOD 5) and want to convert the ouput using iMOD python, but the well discharges are not processed correctly when there is more then one well in a cell. (note; there was a simular problem with rivers in the past, which has been fixed).

Steps to reproduce

There is no error message but the dicharge given is incorrect.

Make a model which has more then one well in a cell.
I made a 3 by 3 model with in layer six in the middle cell (2,2) 2 wells with dicharge -1000 m3/day. The well input file looks like this:
6 2 2 -1000.000 1
6 2 2 -1000.000 1

See the attached CBC the there are 2 wells with discharge 1000 in the center cell (the model has 9 cells). The total discharge from the cell should be 2000. The wells are active in the same modellayer (6).

https://wml4.sharepoint.com/:u:/s/Dashboard-OA/EQAhF32G6MhMhKUIUswk-EABXUIqFKqQwdbyZ27tqeAJwg?e=0Yo0tS

Wouter

@WouterSwierstra WouterSwierstra added the bug Something isn't working label Apr 4, 2025
@github-project-automation github-project-automation bot moved this to 📯 New in iMOD Suite Apr 4, 2025
@WouterSwierstra
Copy link
Author

@ghost ghost marked this as a duplicate of #1501 Apr 4, 2025
@JoerivanEngelen
Copy link
Contributor

JoerivanEngelen commented Apr 7, 2025

Hi @WouterSwierstra, thanks for providing the small example.

What iMOD Python version are you using?
This issue has already been resolved (same issue as with the rivers in the past), and been incorporated in the imod 1.0.0rc2 release.

Running your script and file in my debugger, I'm getting:

Image

So that seems to work, if you make a pixi.toml as follows, you should be able to recreate my python env (note I had to downgrade fastcore, as otherwise the installation didn't work. The new release will not use fastcore anymore so this isn't necessary anymore):

[project]
authors = ["MyName <[email protected]>"]
channels = ["conda-forge"]
description = "Add a short description here"
name = "BUGMELDING_OUTPUT"
platforms = ["win-64"]
version = "0.1.0"

[tasks]

[dependencies]
imod = "1.0.0rc2.*"
fastcore = "1.7.20"

I hope this resolves the issue on your machine as well, could you check for me if this resolves the issue?

@JoerivanEngelen JoerivanEngelen moved this from 📯 New to 🧐 In Review in iMOD Suite Apr 8, 2025
@JoerivanEngelen JoerivanEngelen added the waiting for author Waiting for input from the author label Apr 16, 2025
@JoerivanEngelen
Copy link
Contributor

JoerivanEngelen commented May 26, 2025

I'm doing a board cleanup. As my comment states, I think this issue has been resolved by now. I'm therefore closing this issue.

This bug was fixed in iMOD Python 1.0.0rc2, so probably you were working with an earlier version (perhaps the latest full release 0.18.1?). If not, please re-open this issue.

@github-project-automation github-project-automation bot moved this from 🧐 In Review to ✅ Done in iMOD Suite May 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working waiting for author Waiting for input from the author
Projects
Status: ✅ Done
Development

No branches or pull requests

2 participants