INNER CODE UNIT · Python

root_find_atol

MatthewFilipovich/pycharge · src/pycharge/charge.py:36

    root_find_atol: float = 1e-20
    root_find_max_steps: int = 256
    root_find_throw: bool = True


@dataclass(frozen=True)
class Charge:
    r"""Point charge with time-dependent trajectory.

    Attributes:
        position_fn (Callable[[Scalar], Vector3]): Position function :math:`\mathbf{r}(t)` mapping
            time (s) to position (m). Must be twice differentiable.
        q (float): Charge (C). Default: ``e`` (elementary charge :math:`\approx 1.602 \times 10^{-19}` C).
        solver_config (SolverConfig): Solver configuration. Default: ``SolverConfig()``.

    Note:
        Velocity :math:`\mathbf{v} = d\mathbf{r}/dt` and acceleration :math:`\mathbf{a} = d^2\mathbf{r}/dt^2`
        computed via JAX autodiff for Liénard-Wiechert calculations.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…