Photonics

Photonics

Topics related to Lumerical and more.

How to access variables in varfdtd from the script.

TAGGED: ,

    • Vahram Voskerchyan
      Subscriber

      How can I edit the varFDTD test potins x and y and also slab mode position x0 and y0 from the script. I have tried to set the test points like a column vector but didn't work. 

    • Amrita Pati
      Ansys Employee

      Hi Vahram,

      You can use the following code to edit the slab mode postions:

      setnamed("varFDTD","x0",0.0e-6);

      setnamed("varFDTD","y0",0.0e-6);

      You can save the test points in a 4X2 matrix (4 test points' x and y co-ordinates) and then use this with the setnamed command as shown below:

      V = [1e-6,1e-6;

      1e-6,-1e-6;

      -1e-6,-1e-6;

      -1e-6,1e-6];

       

      setnamed("varFDTD","test points",V);

      Please let me know if you have any further questions.

       

      Regards,
      Amrita

Viewing 1 reply thread
  • The topic ‘How to access variables in varfdtd from the script.’ is closed to new replies.