Functions to plot BCs for vertex-grid using existing MF-files generated externally? #2155
-
Hi, I'm looking for some script/functions to plot the recharge-array (amongst other BCs) for a modflow-6 model using vertex grid. So far I have been able to plot the k-values for all layers using: ml.npf.k.plot() If i call the function for rch like below: ml.npf.rch.plot() I get an attribute error saying there is no 'rch' attribute. I also saw an example where the function ml.rch.rech.plot(kper="all", masked_values=[0.0], colorbar=True) is used to plot the rch-array. This gives me "AttributeError: 'ModflowGwfrch' object has no attribute 'rech'" Can anyone advice me on how to plot it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Only To plot recharge for an mf6 model, you can use e.g. |
Beta Was this translation helpful? Give feedback.
flopy.mf6.ModflowGwfnpf
is the node property flow package, it does not have anrch
attribute.Only
flopy.modflow.ModflowRch
(non-mf6) has arech
attribute.To plot recharge for an mf6 model, you can use e.g.
PlotMapView.plot_bc("RCH")
, seeplot_grid()
here for example. Or more generally, you can pass an array of data toPlotMapView.plot_array()
, seeplot_recharge()
here.