Top Banner
CST – COMPUTER SIMULATION TECHNOLOGY | www.cst.com Latest Developments in 3D Charged Particle Simulations Felix Wolfheimer, CST AG
28

Latest Developments in 3D Charged Particle Simulationsaccelconf.web.cern.ch/AccelConf/ICAP2012/talks/moaai2_talk.pdf · CST – COMPUTER SIMULATION TECHNOLOGY | Latest Developments

Apr 11, 2018

Download

Documents

ngongoc
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Latest Developments in 3D Charged Particle Simulationsaccelconf.web.cern.ch/AccelConf/ICAP2012/talks/moaai2_talk.pdf · CST – COMPUTER SIMULATION TECHNOLOGY | Latest Developments

CST – COMPUTER SIMULATION TECHNOLOGY | www.cst.com

Latest Developments in 3D Charged Particle Simulations

Felix Wolfheimer, CST AG

Page 2: Latest Developments in 3D Charged Particle Simulationsaccelconf.web.cern.ch/AccelConf/ICAP2012/talks/moaai2_talk.pdf · CST – COMPUTER SIMULATION TECHNOLOGY | Latest Developments

CST – COMPUTER SIMULATION TECHNOLOGY | www.cst.com

CST STUDIO SUITE - Overview

Page 3: Latest Developments in 3D Charged Particle Simulationsaccelconf.web.cern.ch/AccelConf/ICAP2012/talks/moaai2_talk.pdf · CST – COMPUTER SIMULATION TECHNOLOGY | Latest Developments

CST – COMPUTER SIMULATION TECHNOLOGY | www.cst.com

CST PARTICLE STUDIO

Tracking Solver for particles in static fields including space charge or in harmonic fields excluding space charge.

Transient solver with special beam excitation (predefined fixed straight beam path)Wakefield

ParticleIn Cell

Self-consistent transient field and particle solver including full space charge effects at all frequencies.

Page 4: Latest Developments in 3D Charged Particle Simulationsaccelconf.web.cern.ch/AccelConf/ICAP2012/talks/moaai2_talk.pdf · CST – COMPUTER SIMULATION TECHNOLOGY | Latest Developments

CST – COMPUTER SIMULATION TECHNOLOGY | www.cst.com

Tracking Algorithm

1. Calculate electro- and magnetostatic fields.

2. Move particles according to the previouslycalculated force. Trajectories

3. Adjust trajectories/fields according tospace-charge (gun iteration).

Workflow

Velocity update

Position update

Leap Frog Scheme

Page 5: Latest Developments in 3D Charged Particle Simulationsaccelconf.web.cern.ch/AccelConf/ICAP2012/talks/moaai2_talk.pdf · CST – COMPUTER SIMULATION TECHNOLOGY | Latest Developments

CST – COMPUTER SIMULATION TECHNOLOGY | www.cst.com

Gun Iteration - Space Charge Effect

Without gun iteration:

With gun iteration:

Gun IterationSTART

END

Calculate electrostatic field distribution

Track particles andmonitor space-charge

Has space-charge converged?

Relaxation of space-charge

Page 6: Latest Developments in 3D Charged Particle Simulationsaccelconf.web.cern.ch/AccelConf/ICAP2012/talks/moaai2_talk.pdf · CST – COMPUTER SIMULATION TECHNOLOGY | Latest Developments

CST – COMPUTER SIMULATION TECHNOLOGY | www.cst.com

Tracking Solver - Typical Application (I)

Cathode

Focussing electrode

Anode

Iron yoke (non linear)

Permanent magnets

Electron Gun

E-static field M-static field

Page 7: Latest Developments in 3D Charged Particle Simulationsaccelconf.web.cern.ch/AccelConf/ICAP2012/talks/moaai2_talk.pdf · CST – COMPUTER SIMULATION TECHNOLOGY | Latest Developments

CST – COMPUTER SIMULATION TECHNOLOGY | www.cst.com

Tracking Solver - Typical Application (II)

Space charge effect is included via guniteration and space charge limited emission.

Design Value: 41mA

Electron Gun

Page 8: Latest Developments in 3D Charged Particle Simulationsaccelconf.web.cern.ch/AccelConf/ICAP2012/talks/moaai2_talk.pdf · CST – COMPUTER SIMULATION TECHNOLOGY | Latest Developments

CST – COMPUTER SIMULATION TECHNOLOGY | www.cst.com

CST PARTICLE STUDIO

Tracking Solver for particles in static fields including space charge or in harmonic fields excluding space charge.

Transient solver with special beam excitation (predefined fixed straight beam path)Wakefield

ParticleIn Cell

Self-consistent transient field and particle solver including full space charge effects at all frequencies.

Page 9: Latest Developments in 3D Charged Particle Simulationsaccelconf.web.cern.ch/AccelConf/ICAP2012/talks/moaai2_talk.pdf · CST – COMPUTER SIMULATION TECHNOLOGY | Latest Developments

CST – COMPUTER SIMULATION TECHNOLOGY | www.cst.com

Particle in Cell (PIC) Algorithm

Macro charges (e.g. q=106 e- )

Relativistic equation of motion

Current caused by particle motion acts as source in Maxwell's equations.

Self-consistent modeling of a collision free plasma.

A priori charge conserving algorithm.

curl

Page 10: Latest Developments in 3D Charged Particle Simulationsaccelconf.web.cern.ch/AccelConf/ICAP2012/talks/moaai2_talk.pdf · CST – COMPUTER SIMULATION TECHNOLOGY | Latest Developments

CST – COMPUTER SIMULATION TECHNOLOGY | www.cst.com

PIC Solver - Typical Applications (I)

E-Field

Waveguide Output Power

Particle Trajectory

Time signal

DFT

Page 11: Latest Developments in 3D Charged Particle Simulationsaccelconf.web.cern.ch/AccelConf/ICAP2012/talks/moaai2_talk.pdf · CST – COMPUTER SIMULATION TECHNOLOGY | Latest Developments

CST – COMPUTER SIMULATION TECHNOLOGY | www.cst.com

PIC Solver - Typical Applications (II)

[1] Design, simulation and measurement conducted by M. Ruf, K. Thurn and L.-P. Schmidt at Chair for High Frequency Technology, University of Erlangen-Nuremberg

E-field of accelerating eigenmode

Particle trajectory

C-Band Linear Accelerator

Page 12: Latest Developments in 3D Charged Particle Simulationsaccelconf.web.cern.ch/AccelConf/ICAP2012/talks/moaai2_talk.pdf · CST – COMPUTER SIMULATION TECHNOLOGY | Latest Developments

CST – COMPUTER SIMULATION TECHNOLOGY | www.cst.com

PIC Solver - Typical Applications (III)

[1] R. Zheng and X. Chen, "Design and 3-D Simulation of Microfabricated Folded Waveguide for a 220GHz Broadband Travelling-Wave Tube Application", Proceedings of the IVEC 2009, Rome, Italy, April 28-30, pp. 135-136, 2009.

RF Input

RF Out

Slow Wave Structure

Particle Beam

Emission surface

Particle Energy

Time signalsDFT

Page 13: Latest Developments in 3D Charged Particle Simulationsaccelconf.web.cern.ch/AccelConf/ICAP2012/talks/moaai2_talk.pdf · CST – COMPUTER SIMULATION TECHNOLOGY | Latest Developments

CST – COMPUTER SIMULATION TECHNOLOGY | www.cst.com

CST PARTICLE STUDIO

Tracking Solver for particles in static fields including space charge or in harmonic fields excluding space charge.

Transient solver with special beam excitation (predefined fixed straight beam path)Wakefield

ParticleIn Cell

Self-consistent transient field and particle solver including full space charge effects at all frequencies.

Page 14: Latest Developments in 3D Charged Particle Simulationsaccelconf.web.cern.ch/AccelConf/ICAP2012/talks/moaai2_talk.pdf · CST – COMPUTER SIMULATION TECHNOLOGY | Latest Developments

CST – COMPUTER SIMULATION TECHNOLOGY | www.cst.com

Wakefield SolverThe Wakefield solver computes the wake potential:

Excitation (pencil beam withlogitudinal Gaussian shape)

Integration pathBeam path

Page 15: Latest Developments in 3D Charged Particle Simulationsaccelconf.web.cern.ch/AccelConf/ICAP2012/talks/moaai2_talk.pdf · CST – COMPUTER SIMULATION TECHNOLOGY | Latest Developments

CST – COMPUTER SIMULATION TECHNOLOGY | www.cst.com

Wakefield Solver - Typical Application

Detailed viewNote: Beta smaller than 1 is possible.

Beam Position Monitor 150

0

-150 0 7Time/ns

Por

t Sig

nal

Page 16: Latest Developments in 3D Charged Particle Simulationsaccelconf.web.cern.ch/AccelConf/ICAP2012/talks/moaai2_talk.pdf · CST – COMPUTER SIMULATION TECHNOLOGY | Latest Developments

CST – COMPUTER SIMULATION TECHNOLOGY | www.cst.com

New Features Overview

Page 17: Latest Developments in 3D Charged Particle Simulationsaccelconf.web.cern.ch/AccelConf/ICAP2012/talks/moaai2_talk.pdf · CST – COMPUTER SIMULATION TECHNOLOGY | Latest Developments

CST – COMPUTER SIMULATION TECHNOLOGY | www.cst.com

Geometry Handling - Hexahedral Mesh

PBA (Perfect Boundary Approximation):-Very accurate, but relies on valid CAD shapes.

FPBA (Fast PBA):-Faster than PBA-Can handle even CAD models with artifacts-Less accurate as compared to PBA

Page 18: Latest Developments in 3D Charged Particle Simulationsaccelconf.web.cern.ch/AccelConf/ICAP2012/talks/moaai2_talk.pdf · CST – COMPUTER SIMULATION TECHNOLOGY | Latest Developments

CST – COMPUTER SIMULATION TECHNOLOGY | www.cst.com

Geometry Handling - Hexahedral Mesh

Enhanced FPBA provides both the robustness of FPBA and the accuracy of PBA.

EFPBA is now the default algorithm used for solvers based on hexahedral meshes

Page 19: Latest Developments in 3D Charged Particle Simulationsaccelconf.web.cern.ch/AccelConf/ICAP2012/talks/moaai2_talk.pdf · CST – COMPUTER SIMULATION TECHNOLOGY | Latest Developments

CST – COMPUTER SIMULATION TECHNOLOGY | www.cst.com

Curved tetrahedral mesh available (up to 3rd order) Improved performance and convergence for many

examples

Eigenmode Solver

Model courtesy of Lancaster University,Dr. Graeme Burt

Tetrahedral mesh: quick convergence, < 2 min to calculate 9 modes

Page 20: Latest Developments in 3D Charged Particle Simulationsaccelconf.web.cern.ch/AccelConf/ICAP2012/talks/moaai2_talk.pdf · CST – COMPUTER SIMULATION TECHNOLOGY | Latest Developments

CST – COMPUTER SIMULATION TECHNOLOGY | www.cst.com

Eigenmode Solver: Lorentz Force Detuning

Page 21: Latest Developments in 3D Charged Particle Simulationsaccelconf.web.cern.ch/AccelConf/ICAP2012/talks/moaai2_talk.pdf · CST – COMPUTER SIMULATION TECHNOLOGY | Latest Developments

CST – COMPUTER SIMULATION TECHNOLOGY | www.cst.com

Mechanics: Lorentz Force Detuning

Cavity is fixed here

Page 22: Latest Developments in 3D Charged Particle Simulationsaccelconf.web.cern.ch/AccelConf/ICAP2012/talks/moaai2_talk.pdf · CST – COMPUTER SIMULATION TECHNOLOGY | Latest Developments

CST – COMPUTER SIMULATION TECHNOLOGY | www.cst.com

Deformed Mesh (scaled)

Outlook

Sensitivity analysis for eigenmode solver to evaluate from Lorentz force. Automation with System Assembly and Modeling (SAM) possible.

Page 23: Latest Developments in 3D Charged Particle Simulationsaccelconf.web.cern.ch/AccelConf/ICAP2012/talks/moaai2_talk.pdf · CST – COMPUTER SIMULATION TECHNOLOGY | Latest Developments

CST – COMPUTER SIMULATION TECHNOLOGY | www.cst.com

Rotational and translational symmetry is available. Can be selected in mesh dialog. Automatic mesh adaption.

2D Magnetostatic Solver

Page 24: Latest Developments in 3D Charged Particle Simulationsaccelconf.web.cern.ch/AccelConf/ICAP2012/talks/moaai2_talk.pdf · CST – COMPUTER SIMULATION TECHNOLOGY | Latest Developments

CST – COMPUTER SIMULATION TECHNOLOGY | www.cst.com

PIC Solver: GPU Computing

CPUGPU

Number of Mesh Cells 1,000,188

Av. Particle Number 7.74e5

Time CPU (Dual Xeon 5620) 1h 14m 44s

Time GPU 12m 25s

Total Speed Up* 6.02

Time Domain Speed Up 6.65

* Matrix calculation & post-processing are not running on GPU

Nvidia Tesla 20 cardsare supported

Page 25: Latest Developments in 3D Charged Particle Simulationsaccelconf.web.cern.ch/AccelConf/ICAP2012/talks/moaai2_talk.pdf · CST – COMPUTER SIMULATION TECHNOLOGY | Latest Developments

CST – COMPUTER SIMULATION TECHNOLOGY | www.cst.com

New model: Vaughan

PIC Solver: Secondary Electron Emission ModelsAdvantages:

Only a few parameters to configureDisadvantage:

Limited curve shapesOnly true secondariesNot supported on the GPU, yet.

Page 26: Latest Developments in 3D Charged Particle Simulationsaccelconf.web.cern.ch/AccelConf/ICAP2012/talks/moaai2_talk.pdf · CST – COMPUTER SIMULATION TECHNOLOGY | Latest Developments

CST – COMPUTER SIMULATION TECHNOLOGY | www.cst.com

New model: Import

PIC Solver: Secondary Electron Emission ModelsAdvantages:

Easiest definitionLoading of measurement data possibleGPU support

Disadvantage:Only true secondaries

Page 27: Latest Developments in 3D Charged Particle Simulationsaccelconf.web.cern.ch/AccelConf/ICAP2012/talks/moaai2_talk.pdf · CST – COMPUTER SIMULATION TECHNOLOGY | Latest Developments

CST – COMPUTER SIMULATION TECHNOLOGY | www.cst.com

Post Processing - Emittance

Emittance definition used: Emittance often used by accelerator people:

Page 28: Latest Developments in 3D Charged Particle Simulationsaccelconf.web.cern.ch/AccelConf/ICAP2012/talks/moaai2_talk.pdf · CST – COMPUTER SIMULATION TECHNOLOGY | Latest Developments

CST – COMPUTER SIMULATION TECHNOLOGY | www.cst.com

Any Questions?