{"id":22754750,"url":"https://github.com/christophermayes/opencsr","last_synced_at":"2026-03-19T23:34:51.625Z","repository":{"id":53538356,"uuid":"291153031","full_name":"ChristopherMayes/OpenCSR","owner":"ChristopherMayes","description":"Coherent Synchrotron Radiation software and tools","archived":false,"fork":false,"pushed_at":"2021-08-06T04:09:22.000Z","size":13085,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T20:07:00.864Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Fortran","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ChristopherMayes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-28T21:54:29.000Z","updated_at":"2022-04-22T20:26:27.000Z","dependencies_parsed_at":"2022-09-11T10:23:20.664Z","dependency_job_id":null,"html_url":"https://github.com/ChristopherMayes/OpenCSR","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChristopherMayes%2FOpenCSR","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChristopherMayes%2FOpenCSR/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChristopherMayes%2FOpenCSR/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChristopherMayes%2FOpenCSR/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChristopherMayes","download_url":"https://codeload.github.com/ChristopherMayes/OpenCSR/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246289984,"owners_count":20753712,"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":[],"created_at":"2024-12-11T06:18:54.686Z","updated_at":"2026-01-07T09:49:54.355Z","avatar_url":"https://github.com/ChristopherMayes.png","language":"Fortran","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenCSR\n3D Coherent Synchrotron Radiation computation based on the formalism developed in:\n\n\n\"Three-dimensional effects of coherent synchrotron radiation by electrons in a bunch compressor\" \n\nYunhai Cai and Yuantao Ding\nPhys. Rev. Accel. Beams 23, 014402 – Published 9 January 2020\nhttps://journals.aps.org/prab/abstract/10.1103/PhysRevAccelBeams.23.014402\n\nAlso see:\n- www.github.com/ChristopherMayes/PyCSR3D\n- www.github.com/weiyuanlou/PyCSR2D\n\n# Compiling The Code\n\nIf you are new to CMake, [this short tutorial](https://hsf-training.github.io/hsf-training-cmake-webpage/) from the HEP Software foundation is the perfect place to get started with it.\n\nIf you just want to use CMake to build the project, jump into sections *1. Introduction*, *2. Building with CMake* and *9. Finding Packages*.\n\n## Unix\n\n```shell script\ncmake -S . -B build\ncmake --build build\n# the library in now in build\n\n# this command needs sudo if you install into system paths:\ncmake --build build --target install\n```\n\nIf you like to install OpenCSR into another directory than the default, pass to the `cmake -S . -B build` line the additional argument `-DCMAKE_INSTALL_PREFIX=/your/custom/install/path`.\n\nTo build the debug version, add the flag:\n`-DCMAKE_BUILD_TYPE=Debug`\n\n## Windows\n\nFor Windows it will be necessary to use `NMake` to read and execute the generated makefiles.\n\n`NMake` is command-line tool included with Visual Studio that builds projects based on commands that are contained in a description file.\n\nMore information on `NMake` can be found on the [NMAKE Reference](https://docs.microsoft.com/en-us/cpp/build/reference/nmake-reference?view=msvc-160) website.\n\n```shell script\ncmake -S . -B build -G \"NMake Makefiles\"\ncmake --build build\ncmake --build build --target install\ncmake --install\n```\n\n\n## Gaussian CSR Wakefield\n\nOpenCSR is designed to agree exactly with PyCSR3D\n\n![Wx comparison](./img/Wx_zline.png)\n\n![Ws Gaussian](./img/Ws_3d.png)\n\n![Wx Gaussian](./img/Wx_3d.png)\n\n![Wy Gaussian](./img/Wy_3d.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristophermayes%2Fopencsr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchristophermayes%2Fopencsr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristophermayes%2Fopencsr/lists"}