# 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

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.

1 Like
#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?

#4

It looks like you have posted your question in the link below:
Source definition in FDTD

My colleague will follow up with you.

Thanks

1 Like
#5

Thank your, it’s of great help!