We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.
Photonics

Photonics

Topics related to Lumerical and more.

Script code for field apodization

    • Sangyeon_Cho
      Subscriber

      Hi learning forum,

      I am working on writing the script for a simple FDTD simulation of the microdisk cavity.

      I suffered the problem that I cannot find any code for setting apodization related settings on the profile.

      I used add profile code for this. Thanks for your help in advance!.

      # Field profile

      addprofile;

      set("name","XY field_profile");

      set("monitor type",7); # 2D z-normal

      set("x",0);

      set("x span",3*radius);

      set("y",0);

      set("y span",3*radius);

      set("z",0);

    • Kyle
      Ansys Employee

      Are you referring to the time apodization settings in this tab?
      You can use the set command for modifying the monitor apodization settings in a script, for example set("apodization", "Start");. A useful trick is to input ?set in the Script Prompt with the monitor selected, this will print out all the settings that the "set" command can change for this object:



Viewing 1 reply thread
  • The topic ‘Script code for field apodization’ is closed to new replies.