Definition of current density (전류밀도)
Consider a swarm of charged particles, each carrying charge $q_i$ and moving with velocity $\mathbf{v}_i$.

The (volume) current density is defined as
Current through a macroscopic surface

For simplicity, let us assume that all charged particles carry the same charge $q$ and move with the same local velocity $\mathbf{v}$. In this case, we have
where $N$ is the number of particles in volume $V$ and $\rho$ is the volume charge density. The current through the red rectangular frame with infinitesimal area $d\mathbf{a}$ can be calculated by considering a close-up view of the region near the frame:

The current through surface $\mathcal{S}$ is therefore
Remark 1. When the charged particles do not have the same charge or the same velocity, $\mathbf{J}$ is still given by the same formula but with an appropriately defined average velocity $\mathbf{v}_{\text{avg}}$:
and $I$ is still given by Eq. (2).
Remark 2. The definition of $\mathbf{J}$, Eq. (1), describing the current of charges can be generalized to define volume densities of current for other quantities. For example, the energy current density per volume is
where $E_i$ is the energy of the $i$th particle, and the number current density per volume is