Waveguide solution does not match the one in the examples :(
angeris opened this issue ยท 3 comments
Heya @ianwilliamson and co! ๐
I wanted to give you all a big thanks for the Julia code here: it's an awesome reference! :) (I may end up extending it later for some 3D work.)
Sadly, I'm running into some trouble running the main simulations. In particular, I've noticed that the resulting plots don't actually match those given in the example notebook, and I'm not quite sure as to why. This is the solution output I have for the second example ("straight waveguide"), versus the one given in here.
I'll see if I can find anything, but at the moment I haven't been able to figure it out.
Thanks!
On the other hand, example 3 matches beautifully. I'm not sure if this is due to the change in the interface to GeometricPrimitives.jl
or what exactly; I did have to update example 2 slightly for it to work.
What does the permittivity distribution look like for the simulation that you're showing above? Based on the fields and the profile of the source it looks like the waveguide may not be "drawn into" the domain. If the permittivity is uniform everywhere, then what you're observing would make sense.
It's likely that GeometricPrimitives.jl has been updated much more recently than this package, which could be why the waveguide isn't showing up. Feel free to submit a pull request for a fix if you can figure it out.
It seems that you're correct! (Generating the permittivity region manually seems to do the trick.)
I'm not sure what the current interface to GeometricPrimitives.jl is (and sadly don't have much time to check/fix it today) but will take a look when I do! Thanks! I'll PR and reference this issue when I do.