July 8, 2021 at 8:27 amzhenjiehanSubscriber
I was confused by this by a long time.
In siepic ebeam pdk, there is a code to plot transmission in dB.
lumapi.evalScript(_globals.FDTD, " plot (wavelengths, 10*log10(abs(Sparam(:,%s))^2), 'Wavelength (um)', 'Transmission (dB)', 'S_%s_%s, mode %s'); " % (modes.index(m)+1, p.pin_name, in_pin.pin_name, modes.index(m)+1) )
From this script, it seems that it plots transmission of S2 using "10*log10(abs(Sparam(:,%s))^2".
For a mmi design, the transmission auto generated is shown like this:July 8, 2021 at 10:55 pmGuilin SunAnsys EmployeeHi, Have you extracted the result from simulation and plot it in dB scale? I just tested one value: the first point in the 2nd image, which is about 0.473. in dB, it is
very close to the 1st point in the first image.
Whenever you have suspect on the data, please extract it and show it in the "prompt" and compare.
In addition, "visualize->S/T", S is mode dependent, and T is the total transmission. So please make sure you are comparing the same result:
July 9, 2021 at 6:56 amzhenjiehanSubscriber@gsun Thank you for your respond. I didn't plot 2th figure in dB scale.
The transmission at first point is 1.26um, is about 3.25 dB, they are about the same.
But for another point, for example,1.3um, the value in 2th figure is (10*(log10(0.486))) ,which gives me -3.13 dB
While this value in 1th figure is about -3.25 dB.
These are results of the same siulation file. What cause this?
July 9, 2021 at 8:13 amJuly 9, 2021 at 6:21 pmGuilin SunAnsys EmployeeI would suggest that you get the data from the simulation result and check which one is correct, as long as you are talking the same quantity. Except that Python has passed the data wrong, I have not known any case that the plot is wrong for the same set of the data.
If the plot is from Visualizer, you can click "view data" and compare the data.
July 12, 2021 at 1:36 amzhenjiehanSubscriber@gsun Thank you for your respond.
From your point of view, is the following sentence of ploting |abs(S)|2 correct?
lumapi.evalScript(_globals.FDTD, " \
plot (wavelengths, 10*log10(abs(Sparam(:,%s))^2), 'Wavelength (um)', 'Transmission (dB)', 'S_%s_%s, mode %s'); \
" % (modes.index(m)+1, p.pin_name, in_pin.pin_name, modes.index(m)+1) )
If it is correct, you mean, the underlying python is wrong?
Generally speaking, how to fix the underlying python?
July 12, 2021 at 7:05 pmGuilin SunAnsys EmployeeI believe that the above script is correct. Please output the data and plot using pure Lumerical script. I am not sure if Python script is correct or not, or it is the data it passes. As replied previously, please directly compare the raw data, instead of comparing the graphs.
Please note that Python is a 3rd party tool and we only help for Lumerical products.
Viewing 6 reply threads
Ansys Innovation Space
- You must be logged in to reply to this topic.
Simulation World 2022
Check out more than 70 different sessions now available on demand. Get inspired as you hear from visionary companies, leading researchers and educators from around the globe on a variety of topics from life-saving improvements in healthcare, to bold new realities of space travel. Take a leap of certainty and check out a session today here.
Earth 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.
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
- Ansys Insight: Diverging Simulations
- Ansys Insight: About override mesh in FDTD: its use and settings
- Error: addfdtd is not a valid function or a variable name
- Ansys Insight: Convergence issues in CHARGE
- Ansys Insight: Transmission results greater than one
- Is there a Lumerical script command to output the Simulation and Memory requirements?
Top Rated Tags
© 2022 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.