TAGGED: #Modal_Analysis, Lumerical-Mode
-
-
March 29, 2023 at 10:17 amXuanchang ZhangSubscriber
Hi,
I am trying to use matlab to plot the distribution of fraction integrated along the x-axis for my laser structure. However, I noticed that this value is not directly exported. Instead, I can see Ex Ey Ez have been exported. I am wondering if there is an algorithm that I can use to find the integrated power.
Many thanks,
-
March 29, 2023 at 10:53 pmGuilin SunAnsys Employee
For a given region, you can use
getanalysis("fraction integrated");
to get the integrated result.
It seems you want to get results from different regions. In such case I would suggest to get the field data, and do the integration for whatever the region you want with script.
Be aware that, FDE may use non uniform mesh but matlab always assumes uniform mesh. So you might need to interpolate the data into uniform mesh before exporting the data to matlab.
Please refer to this post  /forum/forums/topic/ansys-insight:--matlabhuatushizhenwenti/
-
March 30, 2023 at 10:20 amXuanchang ZhangSubscriber
Â
Hi,
Thanks for the quick reply. I am afraid I didn’t express the question very clearly. I am wondering if I can get the value of integrated power of each (x,z) coordinate so that I can plot the distribution of power along x or z axis. In another word, would it be possible to calculate the energy density of each coordinate as shown in this screenshot?
To me, getanalysis is more like obtaining a final value of the selected area.
Thanks
-
-
March 31, 2023 at 4:45 pmGuilin SunAnsys Employee
Yes, you can. For example, I wrote the following script:
x1=.1e06;
x2=.5e-6;
y1=-2e-6;
y2=1e-6;
setanalysis("integration shape","rectangular");
setanalysis("y1",y1);setanalysis("y2",y2);
setanalysis("x1",x1);setanalysis("x2",x2);
area=getanalysis("fraction integrated");
Â
you can easily convert it to a loop by assigning matrix values to x1,x2,y1 and y2.
Â
However, the Energy density and other values in "component" can only be for the whole mode profile. If you want caculate them differently, please extract the mode profile and calculate the quantity you want.
you can try
E=getresult("mode1","E");
H=getresult("mode1","H");
x=E.x;
E=E.E; #data set
H=H.H;
Ex=pinch(E(:,:,:,1,1));
Ey=pinch(E(:,:,:,1,2));
Â
Please check the dimensions of the matrices and know what do they mean.
E is a 5D matrix:x,y,z,f,{1,2,3}, where {1,2,3} means Ex,Ey and Ez.
Â
Â
-
May 24, 2023 at 3:00 pmXuanchang ZhangSubscriber
Hi,
Thanks for your help. I am wondering how I can extract the refractive index using the same method that you mentioned for the energy density.
Thank you
-
-
May 24, 2023 at 6:38 pmGuilin SunAnsys Employee
Unfortunately currently FDE does not have output for refractive index. Please file a feature request by referring to this post, please do not reply in the post:Â
New Feature vote:Â Â Vote new features, and file your feature request
-
- The topic ‘Fraction Integrated in Modal Analysis’ is closed to new replies.
- Difference between answers in version 2024 and 2017 lumerical mode solution
- Errors Running Ring Modulator Example on Cluster
- INTERCONNECT – No results unless rerun simulation until it gives any
- Import material .txt file with script
- Help for qINTERCONNECT
- Trapezoidal ring
- Issues with getting result from interconnent analysis script
- Topology Optimization Error
- Edge Coupler EME Example Issue
- How to measure transmission coefficients on a given plane .
-
1216
-
543
-
523
-
225
-
209
© 2024 Copyright ANSYS, Inc. All rights reserved.