{"id":19934460,"url":"https://github.com/birkkarlsen/sps_lhc_transfer","last_synced_at":"2026-07-20T00:34:23.980Z","repository":{"id":110028011,"uuid":"577753454","full_name":"BirkKarlsen/sps_lhc_transfer","owner":"BirkKarlsen","description":"Repository of input files to simulate beams in the SPS and the behavior when injected into the LHC","archived":false,"fork":false,"pushed_at":"2025-01-17T08:26:32.000Z","size":15769,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-17T09:29:52.968Z","etag":null,"topics":["accelerator-physics","beam-dynamics","computational-physics","high-energy-physics"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BirkKarlsen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-13T12:56:26.000Z","updated_at":"2024-08-13T08:53:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"53b15df2-7bf5-41ef-b9ad-f2afe0b72f9f","html_url":"https://github.com/BirkKarlsen/sps_lhc_transfer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BirkKarlsen%2Fsps_lhc_transfer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BirkKarlsen%2Fsps_lhc_transfer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BirkKarlsen%2Fsps_lhc_transfer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BirkKarlsen%2Fsps_lhc_transfer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BirkKarlsen","download_url":"https://codeload.github.com/BirkKarlsen/sps_lhc_transfer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241361395,"owners_count":19950379,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["accelerator-physics","beam-dynamics","computational-physics","high-energy-physics"],"created_at":"2024-11-12T23:16:54.842Z","updated_at":"2025-10-17T21:05:23.467Z","avatar_url":"https://github.com/BirkKarlsen.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SPS-LHC Transfer\nRepository of input files to simulate beams in the SPS and the behavior when injected into the LHC\n\n## Simulation Setup\nThe folder ```input_files/``` contains scripts to generate beams in the SPS (```generate_sps_beams.py```), \nsimulate beams at SPS flattop (```sps_flattop.py```) and injection into LHC (```lhc_injection.py```) using ```blond```.\n\n### Generating an SPS Beam\nFirst you generate a beam. The result will then be saved in the folder in the ```generated_beams/```-folder. \nThis folder will contain a ```.yaml```-file with the parameters that were used to generate the beam and a \n```generated_beam.npy```-file with the generated beam. The user can choose the name of this folder and if no name is \ngiven, the folder name will be generated in a standard way. \n\n### Simulating at SPS flattop\nWhen a beam is generated you can either send it straight to the LHC for simulations at injection or first simulate the\nbeam at SPS flattop. The simulation at SPS flattop will use the information in the ```.yaml```-file to recreate the\nconditions the beam was generated in and continue simulating this. When the simulation is done the beam will be saved as\n```simulated_beam.npy``` and the number of turns the beam was simulated for in the SPS will be saved to \n```generation_settings.yaml```. \n\n### Simulations at LHC Injection\nLastly, you can simulate the beam at LHC injection. This script will take beam either from the ```generated_beam.npy```\nor ```simulated_beam.npy```, depending on what the user wants. \n\n## Simulating in lxplus\nThe simulations are possible to do in ```lxplus``` using this repository. Both beam generation and simulations can be \nset up using the scripts in ```lxplus_setup/```.\n\n## What you need\nTo run the simulations in this repository you need:\n - The python packages ```numpy```, ```scipy``` and ```yaml```.\n - The ```blond``` simulation suit.\n - The repository ```beam_dynamics_tools```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbirkkarlsen%2Fsps_lhc_transfer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbirkkarlsen%2Fsps_lhc_transfer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbirkkarlsen%2Fsps_lhc_transfer/lists"}