Tagged: plasmonics
-
-
September 21, 2022 at 2:35 pm
AMaity
SubscriberHello,
I was wondering if someone can lead me to get all these spectra wrt wavelengths. https://optics.ansys.com/hc/en-us/articles/360042160993######################################################
## Script: plasmon_mode_excitation_scattering_linear.lsf
## this script will plot the results from the parameter
## sweep.
##
## Variables:
## run_sim: 0, do not run any simulation (load results from file)
## 1, run simulations (parameter sweep)
##
## Copyright 2019 Lumerical Inc.
#######################################################
clear;
sweep_name = "sweep_polarization";
run_sim = 1; # 0, do not run any simulation
# 1, run sweep
if (run_sim) {
runsweep(sweep_name);
}
scat = getsweepresult(sweep_name, "scat");
total = getsweepresult(sweep_name, "total");
energy = scat.energy;
scat = scat.sigma;
total = -total.sigma;
ext = scat + total;
#######################################################
# Linear x
plot(energy, pinch(scat, 2, 1), pinch(total, 2, 1), pinch(ext, 2, 1),
"energy (eV)", "cross section (m^2)", "Linear x polarization");
setplot("x min", 2);
setplot("x max", 3.2);
legend("Scattering", "Absorption", "Extinction");
#######################################################
# Linear y
plot(energy, pinch(scat, 2, 2), pinch(total, 2, 2), pinch(ext, 2, 2),
"energy (eV)", "cross section (m^2)", "Linear y polarization");
setplot("x min", 2);
setplot("x max", 3.2);
legend("Scattering", "Absorption", "Extinction");
-
September 21, 2022 at 5:27 pm
Guilin Sun
Ansys EmployeeYou want to know how to convert wavelength to energy? it is inside the analysis group:
sigma.addparameter("lambda",c/f,"f",f, "energy", h*f/e);
where e and h are reserved constants in Lumerical:
e is the charge;
h is the Plank constant.
energy=f*h/e=(c/lambda)*h/e
-
September 21, 2022 at 6:35 pm
AMaity
SubscriberHi Guilin,
Thanks for your prompt reply. So far I got the impression that if I make the following changes, it will work:plot(lambda, pinch(scat, 2, 1), pinch(total, 2, 1), pinch(ext, 2, 1),
"lambda(nm)", "cross section (m^2)", "Linear x polarization");
setplot("x min", 500);
setplot("x max", 650);
legend("Scattering", "Absorption", "Extinction");
Let me know what you think.
Regards
Achyut
-
September 22, 2022 at 3:47 pm
Guilin Sun
Ansys EmployeeIt is roughly ok. What the unit you use for the wavelength? it seems in nanometer, which is ok.
setplot("x min", 500);
setplot("x max", 650);
This indicates they are in nanometers.
-
September 22, 2022 at 4:09 pm
AMaity
SubscriberThe following errors are coming up:
Error: C:/Users/3055376/Downloads/Plasmon mode excitation/plasmon_mode_excitation_linear.lsf line 32: lambda is not a valid function or variable name
Error: C:/Users/3055376/Downloads/Plasmon mode excitation/plasmon_mode_excitation_linear.lsf line 32: could not create a figure windowIt does not seem to be working
-
September 22, 2022 at 5:32 pm
Guilin Sun
Ansys EmployeePlease modify the analysis script in the group, as the origingal dataset does not have "lambda". Instead, it uses "energy". Please modify it.General description about dataset can be found here: https://optics.ansys.com/hc/en-us/articles/360034409554-Introduction-to-Lumerical-datasets
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

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.

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.
- “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
-
2722
-
2146
-
1357
-
1150
-
462
© 2023 Copyright ANSYS, Inc. All rights reserved.