-
-
May 14, 2024 at 2:15 pmPrateekshaSubscriber
Hi,
I want to export VarFDTD results to Interconnect for that I used mode expansion monitor as shown in the example https://optics.ansys.com/hc/en-us/articles/360034902433-Using-and-understanding-Mode-Expansion-Monitors
But I am getting weird results of s-parameters (S11 and S21). I just edited the "analysis program" given in the ring resonator example but it doesn't work. I used following code:•in = getresult("mode_expansion","expansion for in");•drop1 = getresult("mode_expansion","expansion for output1");•S11 = S22 = S33 = in.b/in.a;•S21 = S12 = drop1.a/in.a;•S = matrixdataset;•S.addparameter("f",in.f,"lambda",in.lambda);•S.addattribute("S11",S11);•S.addattribute("S21",S21);•# export to file for INTERCONNECT•Sdata = [S.f, abs(S11), unwrap(angle(S11)), abs(S21), unwrap(angle(S21))];Â
•if(fileexists(filename)) { rm(filename); }•format long;•write(filename,num2str(Sdata));ÂI am attaching the stucture, monitor results, mode expansion monitor settings, s-parameters and link to Lumerical file in the attachment. Please look into the files and suggest me the required changes.Âhttps://drive.google.com/file/d/1_I8dGlpuyr8Kn56II0ZX4Et77FEWZEJd/view?usp=drive_link
Looking forward to your reply!!
Thanks in advance!!
Prateeksha
-
May 14, 2024 at 6:43 pmGuilin SunAnsys Employee
How weird is the result? too small/large or bumpy? If the graph showing above is what you mean, it looks good.
 we are not allowed to download the simulation files on the forum per Ansys policy.
Â
-
- The topic ‘Mode expansion Monitor uses in VardFDTD solver’ 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
- Trapezoidal ring
- Help for qINTERCONNECT
- Absorption cross-section of AuNR excited by prism-based TIR
- Issues with getting result from interconnent analysis script
- How to measure transmission coefficients on a given plane .
- Topology Optimization Error
-
1416
-
599
-
591
-
565
-
366
© 2025 Copyright ANSYS, Inc. All rights reserved.