-
-
July 23, 2024 at 3:37 amJudy KwanSubscriber
I am working on planar concave grating. May I know there is any tutorial on that?
I tried to start with the tutorial on Blazed grating(https://optics.ansys.com/hc/en-us/articles/360041613174-Blazed-grating). However, I cannot get the second graph (reflection of all orders) following the instruction. I also tried to change the range for the light source and target wavelength in the setting but the graphs are not changing corresphondingly. Could you please advise how to amend the script?
Thanks a lot
-
July 23, 2024 at 4:58 pmAmrita PatiAnsys Employee
Hi Judy,
The example is a single wavelength simulation. If you are running a broadband simulation, then make sure that the monitor is accounting for a large number of wavelengths. Currently, if you look at the global monitor the data is being recorded at 1 frequency point. You can change it to include more frequencies.
Once you do that, the dimension of the results would change, so we have to make sure that the plot command is modified (put in a loop) accordingly. As an example, here I have only used 5 frequency points, so I plot the reflection orders and the corresponding power 5 times, for each frequency/wavelength point using a for loop:
for(i=1:1:5)#for 5 frequency points
{
plot(theta(:,i),R_grating(:,i),
"angle (degrees)",
"fraction of reflected power",
"order strength",
"plot points");
}If you use 100 frquency points, you will see 100 plots, so if you are interested only in specific wavelengths you can find their indices and plot the corresponding orders. Please feel free to let me know in case I missed anything.
Regards,
Amrita
-
- You must be logged in to reply to this topic.
- 怎么修改生成远场图片的横纵坐标以及坐标标签的字体大小
- INTERCONNECT – No results unless rerun simulation until it gives any
- INTERCONNECT – obtain power output over time & check for SNR
- Import material .txt file with script
- Inverse Design Freezing Issue
- Calculation of correlation values in laser modulation bandwidth simulation
-
461
-
215
-
194
-
177
-
162
© 2024 Copyright ANSYS, Inc. All rights reserved.