Lumerical scripting language - By category

本文介绍了Lumerical的脚本语言,可用于自动化任务和分析,如操作模拟对象、启动模拟和分析结果。详细列举了添加对象、操作对象、运行模拟、访问和分析数据等方面的命令,还涉及文件格式、用户自定义GUI及与其他工具的互操作性等内容。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Lumerical's scripting language allows you to automate tasks and analysis such as manipulating simulation objects, launching simulations and analyzing results. Script commands can be entered directly into the script prompt, be run from a saved script file (.lsf), or used within some simulation objects. Browse the commands by category on this page, or search the  Alphabetical list of all script commands  .

You can also take the introductory  Scripting AIC Learning Track to learn more. Videos from this Learning Track are also directly available from Scripting - List of videos.

Adding objects

The following commands can be used to add objects. Objects are always added to the location specified by the groupscope variable. Please note that not all the commands are available for all products. Please refer to the table at the bottom of the page for each command to see which products it applies to.

Simulation environment

  • switchtolayout  : Closes the analysis window, deletes current simulation data and allows you to manipulate simulation objects for a new simulation.
  • layoutmode  : Used to determine if the simulation file is open in layout or in analysis mode.
  • groupscope  : Changes the group scope.
  • addgroup  : Adds a container group to the simulation environment.
  • addanalysisgroup  : Add an analysis group.
  • addobject  : Add an object from the object library.
  • addgridattribute  : Add a grid attribute object.
  • importcsvlc  : Add LC grid attribute and optionally LC structure from CSV file.
  • addport  : Adds a port object to the ports group in the FDTD solver region object.

Structures

Simulation region

  • addeme  : Adds an Eigenmode Expansion (EME) solver region.
  • addfdtd  : Adds an FDTD simulation area.
  • addrcwa : Adds an RCWA solver region.
  • addfde  : Adds an Finite Difference Eigenmode (FDE) solver region.
  • addmesh  : Adds a mesh override region.
  • addsimulationregion  :  Adds a simulation region to the Finite Element IDE design environment.
  • adddevice  : Adds an electrical (CHARGE) simulation
  • addvarfdtd  : Adds a 2.5D varFDTD simulation region.
  • addchargesolver  : Adds an electrical (charge transport) simulation region in Finite Element IDE.
  • addheatsolver  : Adds a thermal (heat transport) simulation region in Finite Element IDE.
  • addchargemesh  : Adds a mesh override region to the 'CHARGE' simulation environment.
  • addheatmesh  : Adds a mesh override region to the 'HEAT' simulation environment.
  • adddgtdsolver  : Adds an optical  'DGTD' solver simulation region.
  • adddgtdmesh  : Adds a mesh override region to the 'DGTD' simulation environment.
  • addfeemsolver  : Adds a  'FEEM' solver simulation region.
  • addfeemmesh  : Adds a mesh override region to the 'FEEM' simulation environment.

Sources

Monitors

Create objects in Deck

  • createbeam  : Creates a new Gaussian beam that is accessible from the deck.

Simulation environment

  • switchtolayout  : Closes the analysis window, deletes current simulation data and allows you to manipulate simulation objects for a new simulation.
  • switchtodesign  : Switches INTERCONNECT to design mode.
  • layoutmode  : Used to determine if the simulation file is open in design (layout) or in analysis mode.
  • designmode  : Returns true if the simulation is currently in design mode.
  • groupscope  : Changes the group scope.

Adding Elements

  • addelement  : Adds an element from the INTERCONNECT element library.

Adding materials and properties to the Material Group in Finite Element IDE

Adding Boundary Conditions in Finite Element IDE

Adding simulation objects


Manipulating objects

Physical structures, sources, monitors, and the simulation volume itself are considered objects. Objects generally have properties that can be modified.

Selecting and deleting objects

  • groupscope  : Changes the group scope.
  • deleteall  : Deletes all objects in the current group scope.
  • delete  : Deletes the selected objects.
  • selectall  : Selects all objects in the current group scope.
  • unselectall  : Unselect all objects.
  • select  : Selects objects with a given name in the current group scope.
  • selectpartial  : Selects any objects where partialname can be found in the name.
  • shiftselect  : The same as select("name"); but does not unselect currently selected objects. Can be used to select multiple objects.
  • shiftselectpartial  : The same as selectpartial("partialname"); but does not unselect currently selected objects. Can be used to select multiple objects.

Moving and copying objects

Object properties

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值