Christoph Kleinhans
2018-10-24 19:25:42 UTC
Dear Meep users,
I calculate in py_meep the ldos for a Gaussian Source and when I
understand the documentation correct, I simply run it like this:
def ldos_calculation():
sim = ... #Simulation object with Gaussian Source and Bloch
periodicity
sim.run(mp.dft_ldos(fcen,df,nfreq),
until_after_sources=mp.stop_when_fields_decayed(50, mp.Hz, pt, 1e-6))
if __name__ == '__main__':
ldos_calcualtion()
I get the output in the console for nfreq, but there is no global
variable dft_ldos_data which I can access.
Tried it also in different ways in the newest official release and in
the nightly build - no global variable.
Hopefully someone got time to answer me that question.
Thanks.
Best Regards
Christoph
I calculate in py_meep the ldos for a Gaussian Source and when I
understand the documentation correct, I simply run it like this:
def ldos_calculation():
sim = ... #Simulation object with Gaussian Source and Bloch
periodicity
sim.run(mp.dft_ldos(fcen,df,nfreq),
until_after_sources=mp.stop_when_fields_decayed(50, mp.Hz, pt, 1e-6))
if __name__ == '__main__':
ldos_calcualtion()
I get the output in the console for nfreq, but there is no global
variable dft_ldos_data which I can access.
Tried it also in different ways in the newest official release and in
the nightly build - no global variable.
Hopefully someone got time to answer me that question.
Thanks.
Best Regards
Christoph