-
-
March 14, 2022 at 8:50 am
Badrul
SubscriberDear all,
I have been a fervent user of scripts in Lumerical FDTD, and recently I have started using Interconnect.
With Interconnect, I am very attracted by the "scripted element" object, which has many potentialities. In the examples ("https://support.lumerical.com/hc/en-us/articles/360036620253-Scripted-Element-Element-Library" ), the signal in the ports follow commands such as:
setsparameter("port 1", "port 2", "s coefficients", trans, frequency );
Where "port 1", "port 2", … are the ports to the scripted element.
I would like to make some complex operations with the port signals, such as an equation involving the sum of the two optical ports' signal or selecting some curves depending on the electrical port's signal.
Example 1:
Y=G0*exp(port_1_input+port_2_input);
Example 2:
If 1
{ G0=k1; }
With the commands seen so far, those operations do not seem possible directly, and for my purposes it would be useful to use the ports' signals as variables inside the "scripted elements". There are other ways to approach my problem (such as employing the external script in the overall simulation, instead of "scripted element"), but doing it inside seems to me the most spontaneous action (and mentally scalable).
Can you tell me if there is a way to process my operation inside the script? I am sorry if I misunderstood the concept of the "scripted element", but it seems to me a very powerful tool.
Thank you in advance for your attention,
Badrul
March 20, 2022 at 5:29 pmBadrul
SubscriberSorry for the complicated formulation of the question. In practice, while in the tutorials some fixed values for "trans" are given as a relation between ports, I would like to use a transfer function that depends on the signals themselves, as shown in example1.
I am not sure if "scripted" elements are capable of this, but it would be very useful to address many scenarios involving saturation.
March 23, 2022 at 4:06 amGuanhui Wang
Ansys EmployeeHi Badrul
Thank you for the post. To do this, you will need to use the Scripted Element in time domain. Here are some examples on this page to demo how to define this model in time domain: https://support.lumerical.com/hc/en-us/articles/360036620253-Scripted-Element-Element-Library.
Viewing 2 reply threads- You must be logged in to reply to this topic.
Ansys Innovation SpaceEarth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.
Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
Trending discussions- “Import optical generation” or “delta generation rate”?
- Why am I getting “process exited without calling finalize”, and how do I fix it?
- Error on Lumerical device
- Using a license file on a new license server
- Error: addfdtd is not a valid function or a variable name
- Ansys Insight: Diverging Simulations
- Ansys Insight: Transmission results greater than one
- Ansys Insight: About override mesh in FDTD: its use and settings
- Is there a Lumerical script command to output the Simulation and Memory requirements?
- Ansys Insight: Convergence issues in CHARGE
Top Contributors-
2524
-
2066
-
1283
-
1096
-
459
Top Rated Tags© 2023 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.
-