如何在 Flopy MF6 的横截面视图中绘制放电矢量?
我知道这个平面图的情节:
quiver = mapview.plot_specific_discharge(spdis[0])
我尝试使用以下代码获得特定放电,但出现错误:
AttributeError: module 'flopy.utils.postprocessing' has no attribute 'get_specific_discharge'
代码:
hds_file = os.path.join(workspace, headfile)
hds = flopy.utils.binaryfile.HeadFile(hds_file)
cbb_file = os.path.join(workspace, budgetfile)
cbb = flopy.utils.CellBudgetFile(fname, precision='double')
q = flopy.utils.postprocessing.get_specific_discharge(gwf,cbb_file, precision='single', kstpkper=(0,1),
hdsfile=hds_file, position='centers')