-
-
August 2, 2021 at 7:44 pmTongyuLiuSubscriberAugust 3, 2021 at 12:49 amChih-Hao ChenAnsys Employee您好
請問代碼有錯誤訊息嗎?
另外,我在代碼中沒看到指定材料的折射率。
覺得會與wg_1D_slab這個檔案有關,不知道書中有沒有更多描述。
謝謝
August 3, 2021 at 7:46 amTongyuLiuSubscriberselect"MODE"这里报错,说是找不到MODE这个函数,另外它指定的材料是硅,谢谢。August 3, 2021 at 8:50 amChih-Hao ChenAnsys Employee您好
我猜應該要先跑wg_1D_slab這個檔案。
如果您直接跑這個腳本,因為object tree甚麼都沒有,找不到MODE solver這個object,所以才會報錯。
August 5, 2021 at 1:58 pmjiaqing.liSubscriberHi @cchen 您好. 问题是这样的,我们从书中提供的源代码,想得到相同的参数扫描结果图(提问中的最后一个图)。我们能理解代码含义,但是软件一直在报错,所以我们想会不会是有可能随着软件版本的更新,有些旧命令被新命令所取代,从而造成执行错误提示。 现以text形式附上主代码(文件名:wg_1D_slab_neff_sweep)及其调用程序,烦请您帮我们看下,能不能debug至得到最终的参数扫描结果图,代码应运行在Lumerical Mode环境中.This is an embed external element. It can be deleted using the delete key or the backspace key. To view the full element, press the preview button below.wg_1D_slab.txt492 BThis is an embed external element. It can be deleted using the delete key or the backspace key. To view the full element, press the preview button below.wg_1D_slab_neff_sweep.txt946 BThis is an embed external element. It can be deleted using the delete key or the backspace key. To view the full element, press the preview button below.wg_2D_draw.txt2.46 KBAugust 6, 2021 at 12:11 amChih-Hao ChenAnsys Employee家青您好 因為IT的限制,想問一下,您能否截圖給我們看呢? 包含錯誤訊息,以及對應code的哪一行。 謝謝幫忙August 10, 2021 at 9:35 amAugust 10, 2021 at 9:36 amTongyuLiuSubscriber有时是第四行MODE找不到对象或者第九行findmode找不到对象
August 11, 2021 at 1:13 amAugust 18, 2021 at 4:09 pmjiaqing.liSubscriber
Viewing 9 reply threads- The topic ‘参数扫描确定波导厚度的问题’ is closed to new replies.
Ansys Innovation SpaceTrending discussionsTop Contributors-
1301
-
591
-
544
-
524
-
366
Top Rated Tags© 2025 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-
The Ansys Learning Forum is a public forum. You are prohibited from providing (i) information that is confidential to You, your employer, or any third party, (ii) Personal Data or individually identifiable health information, (iii) any information that is U.S. Government Classified, Controlled Unclassified Information, International Traffic in Arms Regulators (ITAR) or Export Administration Regulators (EAR) controlled or otherwise have been determined by the United States Government or by a foreign government to require protection against unauthorized disclosure for reasons of national security, or (iv) topics or information restricted by the People's Republic of China data protection and privacy laws.