Adding Head Observation Points to FloPy (mf6)

249 views
Skip to first unread message

Omowumi Erukubami

unread,
Oct 30, 2023, 11:39:19 PM10/30/23
to MODFLOW Users Group
Hello,

I am new to FloPy and have gotten my model running. However, I face a challenge right now which is:

- I have tried adding head observation points to my model, but that has been impossible, and I sincerely do not find the example in the documentation helpful. Does anyone have insights or a tutorial on how to add these points to my model? My data is in a csv file.

Thank you! Your help would be greatly appreciated!

Best,
Omowumi


Mart Dayniel

unread,
Nov 2, 2023, 12:09:00 PM11/2/23
to MODFLOW Users Group
Hi Omowumi,


The idea is to create the obs object with this flopy class and sample arguments:
obs = flopy.mf6.ModflowUtlobs(gwf, digits=6, continuous={("simulated_values.csv"): data)})

The variable "data" is a list of tuple where each tuple is:
(obsname, obstype, cellid)

for example, assuming disv grid, extracting result on layer 1, cell 1:

("well_1", "head", (1, 1))

Regards,
Mart

Omowumi Erukubami

unread,
Nov 4, 2023, 12:03:45 AM11/4/23
to MODFLOW Users Group
Hi Mart,

Thank you so much for your response!

It was helpful and I have been able to add the points to my model.

Best,
Omowumi.

Reply all
Reply to author
Forward
0 new messages