INNER CODE UNIT · Python

potentials_and_fields

MatthewFilipovich/pycharge · src/pycharge/potentials_and_fields.py:42

def potentials_and_fields(
    charges: Iterable[Charge],
) -> Callable[[ArrayLike, ArrayLike, ArrayLike, ArrayLike], Quantities]:
    r"""Create function to compute Liénard-Wiechert potentials and fields from moving charges.

    Returns a function that calculates electromagnetic potentials and fields at spacetime points.

    The Liénard-Wiechert potentials:

    .. math::

        \varphi(\mathbf{r}, t) = \left[\frac{q}{4\pi\varepsilon_0} \frac{1}{(1 - \boldsymbol{\beta}_s \cdot
        \mathbf{n}_s) R}\right]_{t_r},

    .. math::

        \mathbf{A}(\mathbf{r}, t) = \frac{\boldsymbol{\beta}_s(t_r)}{c} \varphi(\mathbf{r}, t).

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…