Dear meep users, dear Steven Johnson, I use meep as c++ library for nanooptics and write my own code around it. After some fiddling around I implemented adaptive resolution using transformations of the material property tensors. It workes fine so far. Two things:
1. If anyone wants it, I can upload a short summary-pdf of how I did that, how the results look and a bit of example code plus the minor change I had to make to the library for convenience (replacing a function pointer by a std::function object). 2. I do scattering calculations, using dft_flux_box-es. I am a bit confused: do I have to watch out for something, if I put these boxes in the region with the transformed epsilon an mu? Transforming the fields back somehow before the flux is calculated? Because I think this would mean changing things deep inside the meep library again, which I normally try to avoid. An exemplary calculation showed similar scattering spectra, but the calculation with the adaptive resolution shows some more dips/wriggles. (I calculated the scattering of a metal nano-cylinder in 2D, where already the non-adaptive mesh leads to a spectrum that has a bit more wriggles than in Mie-calculations). Regards, Felix Schwarz -- Felix Schwarz Technische Universität Ilmenau FG Theoretische Physik I Tel: +49 3677 69 3644 _______________________________________________ meep-discuss mailing list meep-discuss@ab-initio.mit.edu http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss