MF/MT3DMS/sewat mod的Namefile不存在

2024-06-02 12:55:30 发布

您现在位置:Python中文网/ 问答频道 /正文

建立了MODFLOW-MT3DMS-seavat耦合模型。与this example类似,根据软件包和可执行swt\uv4(当然,我使用了更多的输入变量)。你知道吗

但是,当我尝试运行模型时,出现以下错误:

FloPy is using the following  executable to run the model: /usr/bin/swt_v4
Traceback (most recent call last):

  File "<ipython-input-202-77d16ae8d2d8>", line 1, in <module>
    runfile('/Users/Dylan/Desktop/model_0705_swt.py', wdir='/Users/Dylan/Desktop')

  File "/Users/Dylan/anaconda3/lib/python3.7/site-packages/spyder_kernels/customize/spydercustomize.py", line 704, in runfile
    execfile(filename, namespace)

  File "/Users/Dylan/anaconda3/lib/python3.7/site-packages/spyder_kernels/customize/spydercustomize.py", line 108, in execfile
    exec(compile(f.read(), filename, 'exec'), namespace)

  File "/Users/Dylan/Desktop/model_0705_swt.py", line 388, in <module>
    swt.run_model()

  File "/Users/Dylan/anaconda3/lib/python3.7/site-packages/flopy/mbase.py", line 970, in run_model
    normal_msg=normal_msg)

  File "/Users/Dylan/anaconda3/lib/python3.7/site-packages/flopy/mbase.py", line 1387, in run_model
    raise Exception(s)

Exception: The namefile for this model does not exists: swt_model_0605.nam

如果我运行命令print(swt.namfile),它通常会被提示为swt_model_0605.nam

我使用以下软件包:DIS、BAS、LPF、PCG、OC、GHB、WEL、ADV、BTN、DSP、GCG、SSM和VDF。你知道吗

有没有办法追踪这个错误?你知道吗


Tags: runinpy模型modellibpackagesline