Negative frequencies in spectra calculation - problem with materials or sources? #2263
-
Hello all, My question today is related to material definitions in the THz regime, following my previous question here. At THz frequencies, the Drude model is sufficient to describe metals. I used Drude parameters from this source and followed the example given in the meep materials library for Al that uses Drude parameters referenced from a techinal note from Horiba My first question - Is there anything wrong with my definitions? I am not sure as I am getting unexpected output in the simple bent waveguide example I tried next following the tutorial given in the docs. MATERIAL DEFINITIONS
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The second question is about the spectra: I am using just the JGS1_THzMaterial definition to recreate the bent waveguide example but am getting negative wavelengths and obviously something is not right in my code perhaps but I'm not able to find my mistake... Please could anyone offer a suggestion if they know? During the simulation I get two RuntimeWarnings repeatedly, which of course are not seen when running the tutorial code as is. When I animate the fields through the waveguide it looks fine, but not the spectra. I attach the simulation script, Ez fields animation and sim cell setup I used.
SIMULATION SCRIPT
|
Beta Was this translation helpful? Give feedback.
-
Every real signal is a superposition of positive and negative frequencies, so this is correct. You really need to understand this basic fact of Fourier theory if you want to look at spectra. This looks a bit odd to me:
Here, your (By default, Meep uses purely real fields, just as in actual physical systems. However, you can force it to use complex-valued fields by setting |
Beta Was this translation helpful? Give feedback.
Every real signal is a superposition of positive and negative frequencies, so this is correct. You really need to understand this basic fact of Fourier theory if you want to look at spectra.
This looks a bit odd to me:
Here, your
fcen
is0.02
, but your bandwidth is0.05
, so your bandwidth extends over a pretty wide range (from-0.005
to+0.045
). Is that really what you want or are you confused about units here?(By default, Meep uses purely real fields, just as in actual physical systems. However, you can force it to use complex-valued fields by setting
force_complex_fields=True
in theSimulation
constructor. In this case, you can get signals with …