添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

Hi, I’m asking for help because I’m in trouble.
When opening the gmsh_diode2d.py in python spyder, the error ‘NameError: name ‘device’ is not defined’ appears continuously. How do I prevent errors?
KakaoTalk_20230223_155418111 1558×878 93 KB

And if I output gmsh_diode2d.py normally, will it output the same as the result mesh of gmsh_diode2d.msh?
KakaoTalk_20230223_171450693 841×561 26.7 KB

Hi @psj0118

Usually there is 1 device, and you can get the device name using:

device=devsim.get_device_list()[0]

and if there is only 1 region:

region=devsim.get_region_list(device=device)[0]