From a2b8921a101984e5d571cab1c2892a1922f6bda4 Mon Sep 17 00:00:00 2001 From: reiche Date: Wed, 4 Mar 2026 11:53:04 +0100 Subject: [PATCH] Update README.md --- README.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b2878f2..f59fc25 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,26 @@ # SwissFEL-Reference-Files -Collection of References Files to model SwissFEL \ No newline at end of file +Repository to have access to references files for SwissFEL for various codes + +## Elegant + +### Preparing a new input deck for SwissFEL + +#### Step 1 - Preparing the input distribution +Starting with an Asta-output distribution, several adjustments can be applied. +1. Converting Astra output to SDDS format for the import in Elegant +2. Apply missing wakefields for SINSB01 and SINSB02 +3. Optional - Cutting the tail to avoid particles with a strong longitudinal offsets, which can render the space charge calculation in Elegant difficult. +4. Analyse projected and slice parameters to generate a reference report +5. Optional - Increase or decrease particle number based on the beam slice parameters + +#### Step 2 - Configure Longitudinal Compression +Run Longitudinal Tracker to configure R56 and RF phases. For the tracking import the generated distribution from Step 1. Export the settings for the RF settings. + +#### Step 3 - Configure Optics +Run OpticsTool for a given beamline. Import the beam report from Step 1 and the RF settings from Step 2. Match the lattice and save the settings. + +#### Step 4 - Geenrate Elegant Files +Run ElegantTool to import distribution and optics settings to generate the elegant input file and lattice. + +