Replies: 4 comments
-
|
I think you should be able to provide either a 2D array of shape The docstring does make it seem like it must be a structured grid cell index. |
Beta Was this translation helpful? Give feedback.
-
|
I provide 2d array (nlay, ncpl) and it gives error saying 3d array required. I will try doing (nlay, 1, ncpl) and can give an update if it works |
Beta Was this translation helpful? Give feedback.
-
|
Update: I have tried both. it does not work and gives the same error. I am attaching the code i am runing and the error. When i remove the stopzones, zones and zonedata option in the code the model run just fine. npf = gwf.get_package("npf") ##Store vertical hydraulic conductivity (K33) as a variable ##broadcast to full array pdata = ParticleData(partlocs=cellid_loc_iol, mp7_path=r"C:\als\ALS_092125\mp7.exe" ERROR********* File "", line 41, in File "C:\anaconda\envs\ropen\lib\site-packages\flopy\modpath\mp7sim.py", line 531, in init File "C:\anaconda\envs\ropen\lib\site-packages\flopy\utils\util_array.py", line 560, in init ValueError: Util3d: expected 3 dimensions, found shape (12, 218793) zones_.shape |
Beta Was this translation helpful? Give feedback.
-
|
It looks like you have a pretty old version of flopy. This issue seems to have been fixed in #1415 a few years ago. Does updating solve it? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to run particle tracking on modflow 6 model that has a unstructued grid (DISV package). When i run the modpath7 for it. It runs smoothly but when i want to define zones, it gives error and ask for a 3d array (layer, row, col). First, I thought that modpath7 is not recognizing that its an unstructured grid but then I checked the type of data allowed in defining zones in flopy.modpath.mp7sim module and i understood that there is no option for unstructured grid array, i.e 2d array of (layer, nodes) .
I would really like if someone can explain if there is something that i am understanding wrong, or there is another way to put zones and stopzones in modpath7 which i am unaware of.
Beta Was this translation helpful? Give feedback.
All reactions