-
-
April 22, 2024 at 6:48 pmfa146088Subscriber
Hi,
I have a question regarding the inverse design of a Y-branch example. I want to write a code for the example using the EME solver. What code should I write for the figure of merit (FOM) section? The EME solver does not have any monitors, so how can I optimize one of the output ports for maximum transmission (100 percent)? Additionally, for the code
pt = Optimization(use_var_fdtd = True)
, what should I write instead of "use_var_fdtd"
because "use_eme"
command does not exist in the code basis.Best regards
-
April 22, 2024 at 9:53 pmGuilin SunAnsys Employee
Using inverse design for EME is quite new. no "use_eme" fucntionality is available. You may need to develop your own code. Please note that EME works for waveguide modes. and every iteration it needs to build the EME cells, calculate the modes and then propagate to get s parameters.
As mentioned in this exmaple: https://optics.ansys.com/hc/en-us/articles/360042800573-Inverse-Design-of-Grating-Coupler-2D EME gives result from ports. You will need first to get S parameters, and then extract one of them, and with some manipulation and assign to FOM. Eg,
s=getresult("user s matrix");
fom=abs(s(2,1))^2;
this is to use transmission at port 2 for mode 1 at port 1 injection, for one input port and one output port device.
Â
-
May 13, 2024 at 7:22 pmfa146088SubscriberThank you very much for your response.ÂWhen I tried to write this command 's=getresult("user s matrix");' in a Python script in Lumerical, I faced the error '"name getresult is not defined." Additionally, I wanted to import my material file in a Python script using 'importmaterialdb("file name.mdf")', but I received the error that it's not a valid command in Python.ÂAlso, I have another question. Should I use an 'if'Â or a 'for' loop for optimizing my structure using inverse design by the EME module?ÂI would appreciate if you could help me with these issues.
-
- The topic ‘Inverse Design using EME solver’ is closed to new replies.
- Difference between answers in version 2024 and 2017 lumerical mode solution
- Errors Running Ring Modulator Example on Cluster
- 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
- Topology Optimization Error
- How to measure transmission coefficients on a given plane .
- Edge Coupler EME Example Issue
-
1727
-
630
-
599
-
591
-
366
© 2025 Copyright ANSYS, Inc. All rights reserved.