Cryogun Example - Emittance/Bunch Charge
Beamline Setup
Cryocooled Dcgun followed by two Solenoids and a NCRF buncher cavity
Field Map:

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
objectives.enxy.qb
Constraints
constraints.bin
Decisions
decisions.enxy.qb
Number of Generations
500
Parameters- 150 meV Optimization
Optimizing
objectives.enxy.qb
Constraints
constraints.bin
Decisions
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

Pareto Front GIF
0 meV:

150meV:

Output files
0 meV:
ued.cgun.out_0MTE.txt
150 meV:
ued.cgun.out.txt
Other Results
Effective Emittance
Injector Optimization Home