Repository navigation
Inverse design of a Directional Coupler #105
|
Hi, first of all, I really appreciate the creators of this library. I work with MEEP for inverse design but really needed something to speed up my work. Though, I have a few questions and need your help. I am trying to do an inverse design of a directional coupler. This is what I did with MEEP: What I am trying to do here is using two sources, but with a pi/2 phase shift (as you can see in the amplitude in the code snippet below) and the objective function is to maximize the power output of the top-right port for a broadband source which looks something like this on MEEP: What I wanted to know is, is it possible to use two sources with a pi/2 relative phase difference of the amplitudes? I see that there is the And also, how do we use broadband Gaussian source? I found this: GaussianPulseProfile. So, do I use this as my source? There is a carrier phase variable here, do I use that instead of WaveCharacter? Sorry if my questions appear naive, I am still new to inverse design. |
Replies: 1 comment 5 replies
|
Hi, this is definitely something you can achieve with FDTDX. You basically already answered your own question, a phase shift of pi/2 in the wavecharacter will offset the phase of the source. By default, sources in fdtdx are continous sources, but if you set the temporal_profile attribute to a GaussianPulseProfile, you can change this to a broadband pulse. I would suggest to also put an EnergyDetector over the whole simulation volume. If you set the as_slices=True attribute, the detector will save the mean energy of the simulation volume in an efficient way and automatically create a video of the simulation. This can be very helpful to verify that the simulation is behaving correctly. Some important differences to meep are:
If you run into any problems or want to suggest improvements that would make your life easier post them here or in the issues section. |


Hi, this is definitely something you can achieve with FDTDX.
You basically already answered your own question, a phase shift of pi/2 in the wavecharacter will offset the phase of the source. By default, sources in fdtdx are continous sources, but if you set the temporal_profile attribute to a GaussianPulseProfile, you can change this to a broadband pulse.
I would suggest to also put an EnergyDetector over the whole simulation volume. If you set the as_slices=True attribute, the detector will save the mean energy of the simulation volume in an efficient way and automatically create a video of the simulation. This can be very helpful to verify that the simulation is behaving correctly.
Some…