fdtdx.PhasorDetector

Bases: Detector

Detector for measuring frequency components of electromagnetic fields using an efficient Phasor Implementation.

This detector computes complex phasor representations of the field components at specified frequencies, enabling frequency-domain analysis of the electromagnetic fields. The amplitude and phase of the original phase can be reconstructed using jnp.abs(phasor) and jnp.angle(phasor). The reconstruction itself can then be achieved using amplitude * jnp.cos(2 * jnp.pi * freq * t + phase).

Attributes:
  • wave_characters (Sequence[WaveCharacter]) –

    WaveCharacters to analyze.

  • reduce_volume (bool) –

    If True, reduces the volume of recorded data. Defaults to False.

  • components (Sequence[Literal['Ex', 'Ey', 'Ez', 'Hx', 'Hy', 'Hz']]) –

    Sequence of field components to measure. Can include any of: "Ex", "Ey", "Ez", "Hx", "Hy", "Hz".

  • dtype (dtype) –

    data type of the saved fields. Defaults to jnp.complex64

  • plot (bool) –

    Wether to plot the measured data. Defaults to False.