[Meep-discuss] Coordinate transform and nonlinear materials

2020-12-15 Thread Nikolaos Matthaiakakis
Dear all, I was wondering if anyone has experience with using the coordinate transform with nonlinear materials (materials with chi3 etc). https://meep.readthedocs.io/en/latest/Python_User_Interface/#medium https://meep.readthedocs.io/en/latest/Units_and_Nonlinearity/ Would the

Re: [Meep-discuss] Coordinate transform and nonlinear materials

2020-12-15 Thread Andrew Stone
No. Using the transform function would transform all other properties of the material, but leave the nonlinearities unchanged. While I do not have experience, an examination of the code ( https://github.com/NanoComp/meep/blob/8ac118ae57161a365bec36acdab776048030a089/python/geom.py#L443) shows that

Re: [Meep-discuss] Coordinate transform and nonlinear materials

2020-12-15 Thread Steven G. Johnson
You have to modify the math to handle nonlinear materials in transformation optics; there was a recent paper on this: https://www.nature.com/articles/s41598-018-22215-x ___ meep-discuss

Re: [Meep-discuss] Coordinate transform and nonlinear materials

2020-12-15 Thread Nikolaos Matthaiakakis
Thank you for the reply, I see that in the code now. So it would not work with simple diagonal chi3 tensors? I am pretty new to nonlinear optics (and meep to be honest). Wouldn’t it be ok with the non-diagonal values as zero? I guess that means that I cannot use the coordinate transform when

[Meep-discuss] Imaginary Epsilon

2020-12-15 Thread Cícero Julião
Hi colleagues. I am using complex epsilon like in keep pages, for example: meep.Medium(epsilon=3.4, D_conductivity=2*math.pi*0.42*0.101/3.4) My question is: resolution affects this "line" in any way? For example, if I have 0.001 instead of 0.101 for the imaginary part of epsilon, the