NanoComp / meep

free finite-difference time-domain (FDTD) software for electromagnetic simulations
GNU General Public License v2.0
1.19k stars 610 forks source link

mp.source: bidirectional propagation #2570

Closed m-xh-photonics closed 1 year ago

m-xh-photonics commented 1 year ago

I recently started using Meep and I want to define a light source using mp.source. However, I found that the EM-field propagate by bidirectional and I am not sure how to set it up for unidirectional propagation.

sources = [mp.Source(
    src=mp.GaussianSource(0.15, 20),
    component=mp.Ex,
    center=mp.Vector3(0, 0),
    size=mp.Vector3(0, 8, 0),
)]

image

m-xh-photonics commented 1 year ago

define H-components