Guilin Sun
Ansys Employee
以后发中文帖子请到中文论坛: Photonics - Chinese — Ansys Learning Forum

请参考这个帖子将问题描述清楚,你是像修改FDTD中光源的频率、“model”还是分析中的频率,还是INTERCONNECT里面的频率?

一般用setnamed,参见

Ansys Insight: 几个简单实用的脚本Script命令:用于设置

Ansys Insight: Lumerical脚本命令Script列表

可以用问号加setnamed了解某个物件里面所有的可设置变量名字,比如

?setnamed("source");

NA

additional delay

amplitude

angle

angle phi

angle theta

bandwidth

beam diameter

beam parameters

beam radius wz

center frequency

center wavelength

current index

direction

distance from focus

distance from waist

divergence angle

eliminate dc

eliminate discontinuities

enabled

fill lens

frequency

frequency dependent profile

frequency span

frequency start

frequency stop

injection axis

lens diameter

maximum convolution time window

name

number of field profile samples

number of plane waves

offset

optimize for short pulse

override global source settings

phase

plane wave type

polarization angle

pulse type

pulselength

set frequency

set maximum convolution time window

set time domain

set wavelength

source shape

type

use custom pupil function

use global source settings

use relative coordinates

use scalar approximation

use thin lens

waist radius w0

wavelength span

wavelength start

wavelength stop

x

x max

x min

x span

y

y max

y min

y span

z

z max

z min

z span

知道以后就可以设置,比如,在光源里是显示频率设置的情况下,



可以用

?setnamed("source","frequency start", 1e15);

如果在Wavelength情况下应该是不能设置频率,建议就用波长。