Tags

Cryogun Example - Emittance/Bunch Charge



Beamline Setup

Cryocooled Dcgun followed by two Solenoids and a NCRF buncher cavity

Field Map:

Cryogun Fields.JPG

Input Files

Electric Field Map (gdf) : dcgun_analytic_5_20mm_2D.gdf

Buncher Field Map (gdf) : eindhoven_rf_4mm_center.gdf

Solenoid Field Map: GPT Analytical Solenoid

GPT .in file: gpt.in

Parameters- 0 meV Optimization

Optimizing

cgun objectives.JPG

objectives.enxy.qb

Constraints

cgun constraints.JPG

constraints.bin

Decisions

cgun decisions.JPG

decisions.enxy.qb

Number of Generations

500

Parameters- 150 meV Optimization

Optimizing

cgun objectives.JPG

objectives.enxy.qb

Constraints

cgun constraints.JPG

constraints.bin

Decisions

cgun decisions 150.JPG

150_decisions.enxy.qb

Number of Generations

500

Running the Optimizer

1) Go to /inopt/examples/ued.cgun. Start the optimization by running the command:

./how_to_run.txt

You should see the following output:

nohup: appending output to 'nohup.out'

2) If you want to see the progress of the optimization, run the command:

tail -f var_diag.log

3) If you want to visualize the results as they happen, run gnuplot. When prompted by the line "gnuplot>", enter the line:

p [0:160] [0:15] "ued.cgun.out.txt" u (-1*$18):19

The reason the last two input parameters of the above line reads 18 and 19 is evident when one ones the ued.cgun.out.txt file. On the top of the file, it says " # variables (17) objectives (2) constraints (3) ".

Therefore, column 18 and 19 are the two competing objectives that we are trying to optimize.This will plot the emittance as a function of bunch charge in [fC] and [nm] respectively.

Results

30kFront.png

Pareto Front GIF

0 meV:

Front Final.gif

150meV:

Front 30k Final.gif

Output files

0 meV: ued.cgun.out_0MTE.txt

150 meV: ued.cgun.out.txt

Other Results

Effective Emittance

Eff Emit.JPG


Injector Optimization Home
Topic revision: r13 - 14 May 2019, el535
Warning: Can't find topic PhotocathodeBrightBeams/Private.WebLeftBarExample

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding CLASSE Wiki? Send feedback