How to add current source?


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?


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:

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.


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?