Ansys Learning Forum Forums Discuss Simulation Photonics How to access variables in varfdtd from the script. Reply To: How to access variables in varfdtd from the script.

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