TAGGED: RCWA
-
-
August 14, 2024 at 12:39 pmChangjin SonBbp_participant
Hi, I'm using RCWA to simulate my periodic structure.
I use the 'RCWA field monitor' in the simulation to see the field distribution inside my structure.
For multiple data sets, I would like to use Python script but I couldn't find any commands for the 'RCWA field monitor'.
How can I add the monitor in the Python script?
-
August 15, 2024 at 7:40 pmAmrita PatiAnsys Employee
Hi Changjin,
My understanding is that the script command for adding an RCWA monitor has not been documented yet. I will check with the team and try to publish it soon. But you can use the addrcwafieldmonitor() function for adding the monitor, next you can use set() function to set the monitor properties, and then you can use the getresult() function to extract the relevant datasets as you would do in an FDTD simulation.
For example, you may use something like for adding the RCWA monitor:
rcwa = lumapi.FDTD(filename="my_RCWA_file.fsp")#If there is an existing simulation file, pass it as an argument
rcwa.addrcwa()
rcwa.addrcwafieldmonitor()Please feel free to let me know if you come across any difficulties.
Regards,
Amrita -
August 21, 2024 at 2:22 pmChangjin SonBbp_participant
Hi Amrita,
Thank you a lot! It works well.
Best regards,
Changjin Son
-
- You must be logged in to reply to this topic.
-
416
-
187
-
167
-
156
-
140
© 2024 Copyright ANSYS, Inc. All rights reserved.