Discussion:
[Meep-discuss] General problem with frequency-domain solver
Christoph Kleinhans
2018-09-06 20:32:20 UTC
Permalink
Dear Meep Users,


in Python, having a plane wave gaussian source, propagating in different
angles on a Lorentz-Drude structure and measuring the reflection at the
different angles, is working just perfect, but:


When it comes to frequency-domain solver with a CW (without
Lorentz-Drude Material) or to LDOS calculation, Meep is giving me
following error:

For example, when I use the frequency-domain solver:
AttributeError: 'Simulation' object has no attribute 'init_sim'


The Simulation object is initialized in my memory. I first thought I had
an mistake in my Python script, but even the frequency-domain tutorial
script gives me that error message.


I have tried different versions of meep, also meep-parallel, always the
same error.

I am running Meep on newest Ubuntu distrubution with an AMD processor
and the Meep versions are always installed by using miniconda.


Can someone give me a hint what could be wrong, or how I can pull
further information out of my system to find the problem?


Regards
Christoph
Christopher Hogan
2018-09-06 20:52:18 UTC
Permalink
Hi Christoph,

You mentioned you are using the conda packages, but are you using the
official release or the nightly builds?

If you install the nightly build form the channel "chogan/label/dev" as
described here
<https://meep.readthedocs.io/en/latest/Installation/#nightly-builds>, then
you can run the files in python/examples (including solve-cw.py) directly
from the HEAD of the master branch. However, if you installed the latest
official release (1.5) from the "chogan" channel, then you will need to use
the version of the examples that correspond to that release.
You can check out the the 1.5 version as follows:

$ cd meep
$ git checkout v1.5.0

I hope that helps,

Chris

On Thu, Sep 6, 2018 at 3:32 PM, Christoph Kleinhans <
Post by Christoph Kleinhans
Dear Meep Users,
in Python, having a plane wave gaussian source, propagating in different
angles on a Lorentz-Drude structure and measuring the reflection at the
When it comes to frequency-domain solver with a CW (without Lorentz-Drude
AttributeError: 'Simulation' object has no attribute 'init_sim'
The Simulation object is initialized in my memory. I first thought I had
an mistake in my Python script, but even the frequency-domain tutorial
script gives me that error message.
I have tried different versions of meep, also meep-parallel, always the
same error.
I am running Meep on newest Ubuntu distrubution with an AMD processor and
the Meep versions are always installed by using miniconda.
Can someone give me a hint what could be wrong, or how I can pull further
information out of my system to find the problem?
Regards
Christoph
_______________________________________________
meep-discuss mailing list
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss
Christoph Kleinhans
2018-09-07 11:06:56 UTC
Permalink
Dear Christopher, Dear Phillip,

Thank you for the really fast replies.
It works perfect with the nightly build 1.5.1dev.
When it comes to Meep, installed over the chogan channel, I need to use
sim.init_fields() instead of sim.init_sim() like recommended.
This also just works for Meep v. 1.5 and not for older versions.

Thank you very much.
Best
Christoph

Phillip Jahelka
2018-09-06 21:09:51 UTC
Permalink
I had this same problem and solved it by using sim.init_fields() instead of
sim.init_sim().

Best,

Phil

On Thu, Sep 6, 2018 at 1:33 PM Christoph Kleinhans <
Post by Christoph Kleinhans
Dear Meep Users,
in Python, having a plane wave gaussian source, propagating in different
angles on a Lorentz-Drude structure and measuring the reflection at the
When it comes to frequency-domain solver with a CW (without Lorentz-Drude
AttributeError: 'Simulation' object has no attribute 'init_sim'
The Simulation object is initialized in my memory. I first thought I had
an mistake in my Python script, but even the frequency-domain tutorial
script gives me that error message.
I have tried different versions of meep, also meep-parallel, always the
same error.
I am running Meep on newest Ubuntu distrubution with an AMD processor and
the Meep versions are always installed by using miniconda.
Can someone give me a hint what could be wrong, or how I can pull further
information out of my system to find the problem?
Regards
Christoph
_______________________________________________
meep-discuss mailing list
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss
Loading...