-
-
November 27, 2023 at 9:20 amRonen MazurskiSubscriber
Hello, I am currently running a simulation of an array of pillars on a substrate, a planewave source is in the substrate at a certain distance from the pillars and a monitor is in free space above the pillars. I collect the phase and transmission data from the monitor and I want only the phase that is accumulated in the pillars. Changing the distance of the monitor and the source changes the phase, meaning that the result contains the unwanted phase that is accumulated in the substrate and in the free space. I know I should not place the source or the monitor very close to areas where there are changes in matter and structures in order to get more accurate results, and substracting the theoretical phase accumulated in the substrate and in the free space has small diversion.
Is there a way to isolate the phase that is accumulated only in the pillars?
-
November 28, 2023 at 4:40 amDevikaAnsys Employee
Â
Hello, Which software are you using?
Please share some screenshots as well.
Regards
Devika
Â
-
November 28, 2023 at 9:40 am
-
November 28, 2023 at 7:50 pmDevikaAnsys Employee
You can get the complex S parameters by using ports. The phase information can be found in complex S parameters.
In general, phase of a field component can be obtained by use of "angle":
Â
https://support.lumerical.com/hc/en-us/articles/360034405614-angle-Script-command
for example, if you want to get the phase of Ex, you can use
phase=angle(Ex);
Usually Ex (and other field components) has dimension of 4: x,y,z,f. If it is a line monitor,
the dimension is (1,ny,1,nf) where ny=length(y), and nf=length(f).
Â
You can use "pinch" to remove the singletons, eg,
phase=pinch(angle(Ex));
Â
then the phase will have the dimension of (ny,nf).
Â
Hope this helps.
Regards
Devika
-
- The topic ‘Isolating data’ is closed to new replies.
- INTERCONNECT – No results unless rerun simulation until it gives any
- Errors Running Ring Modulator Example on Cluster
- Difference between answers in version 2024 and 2017 lumerical mode solution
- Import material .txt file with script
- Calculation of correlation values in laser modulation bandwidth simulation
- Trapezoidal ring
-
1116
-
468
-
445
-
225
-
201
© 2024 Copyright ANSYS, Inc. All rights reserved.