1 of 44

Elements

(of Math and stuff useful for Beam Diagnostics)

Randy Thurman-Keup

Fermilab

Euclid

2 of 44

Outline

  • Basic Math
    • Vectors
    • Matrices
    • Complex Numbers
  • Fourier Transforms
    • Theory
    • Fast Fourier Transforms (FFT)
    • Common Transforms
  • Electromagnetics
    • Electrostatics
    • Magnetostatics
  • Miscellaneous

R. Thurman-Keup --- USPAS Hampton, VA

2

January 29, 2024

3 of 44

Vectors

  •  

R. Thurman-Keup --- USPAS Hampton, VA

3

January 29, 2024

(x,y) Cartesian coordinates

r is the length of the vector

y

x

r

 

r

θ

θ gives the direction of the vector

( r, θ ) Polar coordinates

 

4 of 44

Matrices

  •  

R. Thurman-Keup --- USPAS Hampton, VA

4

January 29, 2024

 

 

Vector

 

5 of 44

Vector Transformations

  • Given a vector to point A, a linear transformation to point B necessitates equating each new coordinate of B to a linear combination of the old coordinates of A

R. Thurman-Keup --- USPAS Hampton, VA

5

January 29, 2024

y

x

A

B

 

 

 

 

 

Rotation Matrix

6 of 44

Vector Operations

  •  

R. Thurman-Keup --- USPAS Hampton, VA

6

January 29, 2024

 

 

Unit Vector

7 of 44

Vector Operations

  • Cross Product: Result is a perpendicular vector

  • Can also be written as

R. Thurman-Keup --- USPAS Hampton, VA

7

January 29, 2024

 

Determinant

Right Hand Rule

 

8 of 44

Matrices and the Accelerator

  • Every particle has a position and a momentum
    • So… every particle can be described by a pair of vectors
    • One can combine the two vectors into one big vector and use matrices to mathematically move the particles around the accelerator

    • Uncoupled beams (no correlation between x,y,z) have non-zero elements only near the diagonal (block diagonal)

R. Thurman-Keup --- USPAS Hampton, VA

8

January 29, 2024

 

9 of 44

Complex Numbers

  •  

R. Thurman-Keup --- USPAS Hampton, VA

9

January 29, 2024

y

x

r

θ

Re

Im

z=x+jy

 

 

Amplitude

Phase

10 of 44

Outline

  • Basic Math
    • Vectors
    • Matrices
    • Complex Numbers
  • Fourier Transforms
    • Theory
    • Fast Fourier Transforms (FFT)
    • Common Transforms
  • Electromagnetics
    • Electrostatics
    • Magnetostatics
  • Miscellaneous

R. Thurman-Keup --- USPAS Hampton, VA

10

January 29, 2024

11 of 44

Fourier Transforms

  •  

R. Thurman-Keup --- USPAS Hampton, VA

11

January 29, 2024

 

Orthogonal Functions

(sin and/or cos)

Weights

Sum

Arbitrary Function

 

Orthogonal Functions

(sin and/or cos)

Weights

Sum

Arbitrary Function

 

12 of 44

Periodic Functions

  • Since the function is periodic, it has implicit boundaries where the function repeats
    • Naively expect the sine and cosine functions from which the function is built to also repeat
    • Only certain wavelengths satisfy these boundary conditions

R. Thurman-Keup --- USPAS Hampton, VA

12

January 29, 2024

13 of 44

Fourier Transforms

  •  

R. Thurman-Keup --- USPAS Hampton, VA

13

January 29, 2024

 

 

 

 

14 of 44

Discrete Fourier Transforms

  •  

R. Thurman-Keup --- USPAS Hampton, VA

14

January 29, 2024

 

 

 

Dirac Delta Function

‘Sampling’ Function

 

15 of 44

Discrete Fourier Transforms

  • Switch order of integration and summation

  • Integrate

  • Not all terms are necessary (beyond M are redundant)

R. Thurman-Keup --- USPAS Hampton, VA

15

January 29, 2024

 

 

 

16 of 44

Discrete Fourier Transforms

  • Number of ‘unique’ frequencies = number of time values
    • Not quite true…
    • Representing M real time values�by M complex frequency values
      • More information than needed
      • Only half the complex information is unique

R. Thurman-Keup --- USPAS Hampton, VA

16

January 29, 2024

 

17 of 44

Nyquist

  • Nyquist Sampling Theorem
    • The sampling period must be less than half the period of the highest frequency in the signal to accurately determine the frequencies in the signal

- or conversely -

    • The sampling frequency must be greater than twice the highest frequency in the signal
  • If sampling is too infrequent, confusion reigns
    • Data points can be satisfied by many higher frequencies

R. Thurman-Keup --- USPAS Hampton, VA

17

January 29, 2024

18 of 44

Nyquist

  •  

R. Thurman-Keup --- USPAS Hampton, VA

18

January 29, 2024

Slightly less than�Nyquist frequency

Slightly more than�Nyquist frequency

19 of 44

Aliasing in Discrete Transforms

  •  

R. Thurman-Keup --- USPAS Hampton, VA

19

January 29, 2024

Frequency

 

 

 

Must analog filter�higher frequencies

20 of 44

Fast Fourier Transform (FFT)

  • Just an algorithm for doing discrete Fourier transforms quickly
    • O(n log n) for any n, not just powers of 2

  • Frequencies above Nyquist are ‘duplicates’ of those below Nyquist
    • Actually, they represent the negative frequencies

R. Thurman-Keup --- USPAS Hampton, VA

20

January 29, 2024

Time Domain

Frequency Domain

Same

Nyquist Frequency

Nyquist Frequency

DC

Magnitude

Magnitude

Magnitude is symmetric about DC

Phase is antisymmetric about DC

21 of 44

Fast Fourier Transform (FFT)

  •  

R. Thurman-Keup --- USPAS Hampton, VA

21

January 29, 2024

22 of 44

Fourier Transform Theorems

  • Parseval’s (Plancherel’s) Theorem

  • Convolution Theorem
    • Convolution in one domain is equivalent to multiplication in the other

    • Propagation of electromagnetic waves is convolution (Huygens, Kirchoff)
      • Can be much faster to use FFTs and multiply

R. Thurman-Keup --- USPAS Hampton, VA

22

January 29, 2024

 

 

Normalization constant from slide 11

 

Convolution

23 of 44

Common Transform Pairs

R. Thurman-Keup --- USPAS Hampton, VA

23

January 29, 2024

Delta Function

Constant Spectrum

 

 

24 of 44

Common Transform Pairs

R. Thurman-Keup --- USPAS Hampton, VA

24

January 29, 2024

 

 

 

 

25 of 44

Common Transform Pairs

R. Thurman-Keup --- USPAS Hampton, VA

25

January 29, 2024

 

 

 

 

Convolution Theorem at work!! Triangle is convolution of square pulses.

26 of 44

Transform Pair Examples

  • Infinite train of gaussian bunches
    • What does the spectrum look like?
    • First: Construct a train of gaussians using the common transform pairs
      • Convolution of gaussian with train of delta functions
        • Train of delta functions is a replicator under convolution
        • Result is a train of gaussians
    • Second: Apply convolution theorem in the frequency domain
      • Product of gaussian transform and delta function train transform
    • Result is

R. Thurman-Keup --- USPAS Hampton, VA

26

January 29, 2024

27 of 44

Example 1

  •  

R. Thurman-Keup --- USPAS Hampton, VA

27

January 29, 2024

28 of 44

Outline

  • Basic Math
    • Vectors
    • Matrices
    • Complex Numbers
  • Fourier Transforms
    • Theory
    • Fast Fourier Transforms (FFT)
    • Common Transforms
  • Electromagnetics
    • Electrostatics
    • Magnetostatics
  • Miscellaneous

R. Thurman-Keup --- USPAS Hampton, VA

28

January 29, 2024

29 of 44

Vector Calculus

  • Gradient

  • Divergence

  • Laplacian

  • Curl

R. Thurman-Keup --- USPAS Hampton, VA

29

January 29, 2024

 

 

 

 

Identities

Divergence Theorem

Stoke’s Theorem

30 of 44

Equations of Electrostatics

  •  

R. Thurman-Keup --- USPAS Hampton, VA

30

January 29, 2024

 

 

Total charge�within surface

Closed surface

 

 

 

Divergence

Theorem

 

31 of 44

Equations of Electrostatics

  • Coulomb’s Law

  • Using vector calculus identity

R. Thurman-Keup --- USPAS Hampton, VA

31

January 29, 2024

 

 

 

 

 

 

 

 

Scalar Potential

 

32 of 44

Equations of Electrostatics

  •  

R. Thurman-Keup --- USPAS Hampton, VA

32

January 29, 2024

 

 

 

Laplace’s Equation if ρ = 0

e.g. Successive �over-relaxation (SOR)

Me (1988)

33 of 44

Magnetostatics

  • Biot-Savart Law

  • Magnetic field of line current

R. Thurman-Keup --- USPAS Hampton, VA

33

January 29, 2024

 

 

 

 

 

34 of 44

Magnetostatics

  • Ampere’s Law

  • Magnetic field of line current

R. Thurman-Keup --- USPAS Hampton, VA

34

January 29, 2024

 

 

 

B is constant by symmetry at R = const.

Transformer�Input

 

35 of 44

Electromagnetics

  • Faraday’s Law

  • Vector form via Stoke’s Theorem

R. Thurman-Keup --- USPAS Hampton, VA

35

January 29, 2024

Voltage!

Varying Magnetic Flux!

Transformer�Output

36 of 44

Maxwell’s Equations

R. Thurman-Keup --- USPAS Hampton, VA

36

January 29, 2024

37 of 44

The Wave Equations

  • Inhomogeneous E and B fields

  • Inhomogeneous vector and scalar potentials (A and φ)

R. Thurman-Keup --- USPAS Hampton, VA

37

January 29, 2024

Solutions to the homogeneous equations (J = ρ = 0)

are plane waves in cartesian coordinates

38 of 44

Reciprocity and Equivalence

  •  

R. Thurman-Keup --- USPAS Hampton, VA

38

January 29, 2024

 

 

 

 

Actual�Sources

Surface�Sources

BPM Response

39 of 44

Outline

  • Basic Math
    • Vectors
    • Matrices
    • Complex Numbers
  • Fourier Transforms
    • Theory
    • Fast Fourier Transforms (FFT)
    • Common Transforms
  • Electromagnetics
    • Electrostatics
    • Magnetostatics
  • Miscellaneous

R. Thurman-Keup --- USPAS Hampton, VA

39

January 29, 2024

40 of 44

Relativity

  •  

R. Thurman-Keup --- USPAS Hampton, VA

40

January 29, 2024

 

 

 

 

Natural Units

 

 

 

Maybe…

 

 

 

 

 

 

 

 

 

41 of 44

Example

  • Relativistic electric field compression
    • Many detectors rely on fields of the particle
    • The further away the detector is, the longer the signal is
      • Detector at beampipe wall with 3 cm radius
      • What’s the duration of the electric field pulse from a single electron with 5 MeV of kinetic energy?
      • If we have a bunch of electrons of length 10 ps, what’s the total field pulse duration?

R. Thurman-Keup --- USPAS Hampton, VA

41

January 29, 2024

42 of 44

Circuit Review

R. Thurman-Keup --- USPAS Hampton, VA

42

January 29, 2024

 

 

 

 

 

 

 

 

 

 

Voltage around a closed loop is ZERO

Current must be conserved at junctions

Time Domain

Frequency Domain

Impedance

43 of 44

Extras

R. Thurman-Keup --- USPAS Hampton, VA

43

January 29, 2024

44 of 44

Approximations

  • When first trying to understand a complex problem, always approximate!!!!
  • The Taylor Series is your friend

R. Thurman-Keup --- USPAS Hampton, VA

44

January 29, 2024