How to add current source?


#1

Suppose I know the current density J in the Maxwell. How should I set the property of the dipole in simulation? Specifically, how many dipoles should I add and how to set the amplitude of the dipole?


#2

Hi @ztk18

Sorry for a late reply.

In the application example, we have simulated a single electron that travels with the speed of V using dipole source:
https://apps.lumerical.com/nanophotonic_applications_electron_beam_spectroscopy.html

I believe the case will be quite complex if the current density is complicated, but you may follow the same approach to create the current density using dipole source.

Hope this was helpful.


#3

Thank you! But suppose I know the current density J rather than a continuous current. How should I convert J into the amplitude of dipole?