Skip to content

How Does MEEP Represent CustomSource? #2809

Answered by stevengj
kombatEldridge asked this question in Q&A
Discussion options

You must be logged in to vote

With a source, you are (by default) specifying the current density J in Maxwell's equations. There is no simple relationship (in general) between the current source and the resulting electric field, because it depends on the surrounding materials.

This is a Meep FAQ.

If you have a dipole moment (polarization) density P, the current density J=dP/dt is the time derivative of this. However, if you set the flag is_integrated=True in CustomSource, then your custom source is precisely the dipole moment density P.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kombatEldridge
Comment options

Answer selected by kombatEldridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants