-
-
May 29, 2021 at 3:33 pm
-
June 1, 2021 at 3:29 pm
Guilin Sun
Ansys EmployeeHi, I think this question appears in different posts. However I do not know what quantity you have at hand in script. In general, you can get the the intensity by use of
E2=getelectric("monitor")
This is in general a 4D matrix: x,y,z, and f, even some of them has only one element, eg, for a 3D simulation, a 2D DFT monitor perpendicular to z axis, E2 would have (please pick up x,y,z, and f from the monitor using script)
nx=length(x)
ny=length(y)
nz=length(z), which is 1
and
nf=length(f).
In order to plot the graph shown above, you will need to find the y value. For example, at y=0, you can use
E2_x=pinch(E2(:,find(y,0),1,2)) This script picks up the 2nd frequency point (4th dimension), and y=0 plane.
Then you can plot
plot(x*1e6, E2_x,"x um","E2");
You can also plot the normalized result with max=1:
plot(x*1e6, E2_x/max(E2_x),"x um","E2");
Please refer the script introduction website and related edu videos for more information.
-
Viewing 1 reply thread
- The topic ‘Normalized intensity’ is closed to new replies.
Ansys Innovation Space
Trending discussions
- Errors Running Ring Modulator Example on Cluster
- INTERCONNECT – No results unless rerun simulation until it gives any
- Difference between answers in version 2024 and 2017 lumerical mode solution
- Import material .txt file with script
- Trapezoidal ring
- Help for qINTERCONNECT
- Issues with getting result from interconnent analysis script
- Topology Optimization Error
- Edge Coupler EME Example Issue
- The two modes overlap the integral
Top Contributors
-
1191
-
508
-
488
-
225
-
209
Top Rated Tags
© 2024 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.