A LICE is a L asing I nvestigation C o- d E

19
ALICE is a Lasing Investiga tion Co- dE Igor Zagorodnov BDGM, DESY 16.10.06

description

A LICE is a L asing I nvestigation C o- d E. Igor Zagorodnov BDGM, DESY 16.10.06. Motivation. Why write a code with the same mathematical model. There are a lot of codes for Maxwell’s equations (wakefields), why do not write one more for the FEL equations? - PowerPoint PPT Presentation

Transcript of A LICE is a L asing I nvestigation C o- d E

Page 1: A LICE is a  L asing  I nvestigation C o- d E

ALICE is a Lasing Investigation Co-dE

Igor Zagorodnov

BDGM, DESY

16.10.06

Page 2: A LICE is a  L asing  I nvestigation C o- d E

1D and 3D mathematical models are described in [SSY, 1999] and coincide with those used in the code FAST of the same authors

22

0

( , , ) ( . .)2

iz

z

H P z CP P Ue C C eE dc

Equations of motion correspond to effective Hamiltonian

Field Equations are used in parabolic approximation

212 4 sc i E j

c z

04 ( )z zE j jt

( / )i z c tx yE E iE e

with simplified space charge model

Mathematical model

[SSY, 1999] E.L.Saldin, E.A.Schneidmiller, M.Y.Yurkov, The Physics 0f Free Electron Lasers, Springer, 1999

1D and 3D mathematical models are described in [SSY, 1999] and coincide with those used in the code FAST of the same authors

22

0

( , , ) ( . .)2

iz

z

H P z CP P Ue C C eE dc

Equations of motion correspond to effective Hamiltonian

Field Equations are used in parabolic approximation

212 4 sc i E j

c z

04 ( )z zE j jt

( / )i z c tx yE E iE e

with simplified space charge model

Mathematical model

[SSY, 1999] E.L.Saldin, E.A.Schneidmiller, M.Y.Yurkov, The Physics 0f Free Electron Lasers, Springer, 1999

Page 3: A LICE is a  L asing  I nvestigation C o- d E

Why write a code with the same mathematical model

• There are a lot of codes for Maxwell’s equations (wakefields), why do

not write one more for the FEL equations?

• To study the theory through numerical modeling

• To implement simpler and faster numerical methods without loss of

accuracy

• To have consistent and matched 1D, 2D and 3D models in the same

code

• To have a thoroughly tested code with full control and possibility of

future development

Motivation

Page 4: A LICE is a  L asing  I nvestigation C o- d E

Numerical methods

Equations of motion

FAST ALICE

Runge-Kutta method Leap-Frog method

Field Equation

Non-local integral representation (two fold singular integral with special functions)

Finite-Difference Solver with Perfectly Matched Layer

Why other methods?

• Leap-Frog is faster than Runge-Kutta and „symplectic“(?)

• Finite-Difference solver is local: uses only information from one previous „slice“; it should be faster than non-local retarded integral representation which uses all slices in the slippage length

• Like to the integral representation the Perfectly Matched Layer approximates the „open boundary“ condition accurately

Page 5: A LICE is a  L asing  I nvestigation C o- d E

Computer realization and testing

• The code was initially developed in Matlab and then rewritten in C/C++

• the numerical results are compared with the analytical ones when possible

(propogation of different Laguerre-Gaussian azimuthal modes, analytical

results for linear regime in 1D and 3D theories)

•The figures from chapters 2, 3, 6 of [SSY, 1999] are reproduced with the new

code

[SSY, 1999] E.L.Saldin, E.A.Schneidmiller, M.Y.Yurkov, The Physics 0f Free Electron Lasers, Springer, 1999

Page 6: A LICE is a  L asing  I nvestigation C o- d E

Tests. Space charge algorithm (1D)

-2 -1 0 1 2 3 40

0.2

0.4

0.6

0.8

1

analytical

ALICE

C

ˆRe

Field growth rate.

ˆ 1p ˆ 2p

Tests. Space charge algorithm (1D)

-2 -1 0 1 2 3 40

0.2

0.4

0.6

0.8

1

analytical

ALICE

C

ˆRe

Field growth rate.

ˆ 1p ˆ 2p

Page 7: A LICE is a  L asing  I nvestigation C o- d E

Tests. Energy spread algorithm (1D)

-2 0 2 4 60

0.2

0.4

0.6

0.8

1

Field growth rate.

C

ˆRe ˆ 2T

analytical

ALICE

Tests. Energy spread algorithm (1D)

-2 0 2 4 60

0.2

0.4

0.6

0.8

1

Field growth rate.

C

ˆRe ˆ 2T

analytical

ALICE

Page 8: A LICE is a  L asing  I nvestigation C o- d E

Tests. Tapering (3D)

5 7 9 11 13 150

2

4

6

0 1 2 3 4 50

20

40

60

80

100

*[SSY, 1995] E.L.Saldin, E.A.Schneidmiller, M.Y.Yurkov, The Physics 0f Free Electron Lasers, An Introduction, Physics Reports 260 ( 1995) 187-327

FAST*

ALICE

Page 9: A LICE is a  L asing  I nvestigation C o- d E

Tests. Field Solver, Perfectly Matched Layer (3D)

0 1 2 30

0.01

0.02

0.03

0.04

0.05

0 1 2 30

0.01

0.02

0.03

0.04

0.05

0 1 2 30

0.01

0.02

0.03

0.04

0.05

0 1 2 30

0.002

0.004

0.006

0.008

0.01

0.012

Dirichlet BC PML

analytical

numerical

PML

z

u

z

u

z

u

z

u

ˆ 1z

ˆ 5z

Tests. Field Solver, Perfectly Matched Layer (3D)

0 1 2 30

0.01

0.02

0.03

0.04

0.05

0 1 2 30

0.01

0.02

0.03

0.04

0.05

0 1 2 30

0.01

0.02

0.03

0.04

0.05

0 1 2 30

0.002

0.004

0.006

0.008

0.01

0.012

Dirichlet BC PML

analytical

numerical

PML

z

u

z

u

z

u

z

u

ˆ 1z

ˆ 5z

Page 10: A LICE is a  L asing  I nvestigation C o- d E

Tests. Field Solver, Perfectly Matched Layer (3D)

0 5 10 150

0.2

0.4

0.6

0.8

Dirichlet BC vs. PML

z

maxˆ 3.3Dr

maxˆ 5Dr

(7)maxˆ 2PMLr

maxˆ 10Dr

Tests. Field Solver, Perfectly Matched Layer (3D)

0 5 10 150

0.2

0.4

0.6

0.8

Dirichlet BC vs. PML

z

maxˆ 3.3Dr

maxˆ 5Dr

(7)maxˆ 2PMLr

maxˆ 10Dr

Page 11: A LICE is a  L asing  I nvestigation C o- d E

Tests. Energy spread and diffraction (3D)

0 0.2 0.4 0.6 0.80

0.2

0.4

0.6

0.8

1

LT*L

T

-2 -1 0 10.4

0.5

0.6

0.7

0.8

*[SSY, 1995] E.L.Saldin, E.A.Schneidmiller, M.Y.Yurkov, The Physics 0f Free Electron Lasers, An Introduction, Physics Reports 260 ( 1995) 187-327

FAST*

ALICE

Page 12: A LICE is a  L asing  I nvestigation C o- d E

Tests. Space charge (3D)

0 0.2 0.4 0.6 0.8 10.8

1

1.2

1.4

*[SSY, 1995] E.L.Saldin, E.A.Schneidmiller, M.Y.Yurkov, The Physics 0f Free Electron Lasers, An Introduction, Physics Reports 260 ( 1995) 187-327

FAST*ALICE

Page 13: A LICE is a  L asing  I nvestigation C o- d E

Tests. SASE (1D)

s

zNormalized power in the radiation pulse

ALICE

Tests. SASE (1D)

s

zNormalized power in the radiation pulse

ALICE

Page 14: A LICE is a  L asing  I nvestigation C o- d E

-1 0 1 2 30

1

2

3

4x 10

-3

-1 0 1 2 30

1

2

3

4x 10

-3

FAST*

ALICE

*[SSY, 1999] E.L.Saldin, E.A.Schneidmiller, M.Y.Yurkov, The Physics 0f Free Electron Lasers, Springer, 1999

Tests. SASE, Gaussian axial bunch profile (1D)

ˆ 0.5b -1 0 1 2 3

0

1

2

3

4x 10

-3

-1 0 1 2 30

1

2

3

4x 10

-3

FAST*

ALICE

*[SSY, 1999] E.L.Saldin, E.A.Schneidmiller, M.Y.Yurkov, The Physics 0f Free Electron Lasers, Springer, 1999

Tests. SASE, Gaussian axial bunch profile (1D)

ˆ 0.5b

Page 15: A LICE is a  L asing  I nvestigation C o- d E

Tests. SASE, Gaussian axial bunch profile (1D)

-10 0 100

0.02

0.04

0.06

-10 0 100

0.05

0.1

0.15

0.2

FAST*

ALICE

*[SSY, 1999] E.L.Saldin, E.A.Schneidmiller, M.Y.Yurkov, The Physics 0f Free Electron Lasers, Springer, 1999

ˆ 8b

Tests. SASE, Gaussian axial bunch profile (1D)

-10 0 100

0.02

0.04

0.06

-10 0 100

0.05

0.1

0.15

0.2

FAST*

ALICE

*[SSY, 1999] E.L.Saldin, E.A.Schneidmiller, M.Y.Yurkov, The Physics 0f Free Electron Lasers, Springer, 1999

ˆ 8b

Page 16: A LICE is a  L asing  I nvestigation C o- d E

Longitudinal and transverse coherence (SASE, 3D)

Page 17: A LICE is a  L asing  I nvestigation C o- d E

Longitudinal and transverse coherence (SASE, 3D)

Page 18: A LICE is a  L asing  I nvestigation C o- d E

Longitudinal and transverse coherence (SASE, 3D)

Page 19: A LICE is a  L asing  I nvestigation C o- d E

Acknowledgements to Martin Dohlus,

Torsten Limbergfor helpful discussions and interest

and toE.L. Saldin,

E.A. Schneidmiller, M.V.Yurkov

for the nice book on the FEL theory