impactx icon indicating copy to clipboard operation
impactx copied to clipboard

Add fnal booster input files

Open cemitch99 opened this issue 2 years ago • 3 comments

Added MAD-X + SXF input files for a reduced thin-multipole model of the Fermilab Booster lattice for space charge studies in ImpactX. For this simplified example, space charge is turned off. A follow-up PR will include the corresponding example with space charge turned on.

Contains a placeholder draft of a script for parsing the SXF input file (testparse.py), to be developed.

  • [x] Develop Python script for parsing MAD-X + SXF input file.
  • [x] Modify the above Python script to run ImpactX.
  • [x] Add parsing of thin dipoles as a special case of multipole m = 0.
  • [x] Add "tilt" parameter to Python element specifications where needed.
  • [x] Add basic test of execution.
  • [x] Double-check all element input definitions.
  • [x] Benchmark Twiss functions, tunes, etc.
  • [x] Update docs.
  • [x] Upload fermi-booster-madx-sxf_corr_new (1.4MB text) to Zenodo
  • [ ] Set up CI to download Zenodo data on the fly (as in ML example)

Complete data located on Zenodo: https://doi.org/10.5281/zenodo.11645618

cemitch99 avatar Jul 31 '23 17:07 cemitch99

There are a large number of MAD-X files here that are not used by ImpactX. Here, we use only the SXF file. I am tempted to delete these for clarity, and keep them on the Google Drive for later use by us if needed.

cemitch99 avatar Dec 21 '23 20:12 cemitch99

Need to update paths to the SXF file "fermi-booster-madx-sxf_corr_new" to allow proper access from Python script during CI.

cemitch99 avatar Jan 18 '24 19:01 cemitch99

You can add something similar to:

# copy MAD-X lattice file
file(COPY ${ImpactX_SOURCE_DIR}/examples/fodo/fodo.madx
     DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/FODO.MADX.py)

in examples/CMakeLists.txt for the SXF file to be available during ctest runs.

ax3l avatar Jan 23 '24 19:01 ax3l