{"id":19776246,"url":"https://github.com/raymondev/cherenkov-radiation-python","last_synced_at":"2026-05-09T20:44:39.908Z","repository":{"id":155524647,"uuid":"632658483","full_name":"RaymonDev/Cherenkov-Radiation-Python","owner":"RaymonDev","description":"This code calculates and plots the Cherenkov radiation spectrum in water using the Frank-Tamm formula. The formula takes into account the speed of a charged particle and the refractive index of the medium to calculate the intensity of the radiation. The resulting spectra are plotted using matplotlib.","archived":false,"fork":false,"pushed_at":"2023-04-25T21:51:50.000Z","size":45,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-11T01:43:08.301Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/RaymonDev.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":"2023-04-25T21:38:41.000Z","updated_at":"2023-04-27T12:36:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"00e848e0-676a-4474-b89c-c9d5a43fa7eb","html_url":"https://github.com/RaymonDev/Cherenkov-Radiation-Python","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/RaymonDev%2FCherenkov-Radiation-Python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaymonDev%2FCherenkov-Radiation-Python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaymonDev%2FCherenkov-Radiation-Python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaymonDev%2FCherenkov-Radiation-Python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RaymonDev","download_url":"https://codeload.github.com/RaymonDev/Cherenkov-Radiation-Python/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241106399,"owners_count":19910818,"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-11-12T05:19:15.318Z","updated_at":"2026-05-09T20:44:34.889Z","avatar_url":"https://github.com/RaymonDev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cherenkov Radiation Spectrum in Water\nThis code calculates and plots the Cherenkov radiation spectrum in water using the Frank-Tamm formula. The Cherenkov radiation is electromagnetic radiation emitted when a charged particle moves through a medium faster than the speed of light in that medium.\n\n# Dependencies\nThis code requires the following Python packages:\n\n- NumPy\n- Matplotlib\n- SciPy\n\n# Usage \nTo use this code, simply import the required packages and call the `frank_tamm()` function with the desired wavelength range and speeds. The `frank_tamm()` function returns the Cherenkov radiation intensity for the given wavelength and speed.\n\n# Explanation\nThe code first imports the required packages: NumPy, Matplotlib, and SciPy. NumPy is used to create the wavelength range, Matplotlib is used to plot the Cherenkov radiation spectrum, and SciPy is used to import physical constants.\n\nThen, it defines the refractive index of water (`n_water`) and converts the product of the Planck constant (`h`) and the speed of light (`c`) to electronvolts times nanometers (`hc`). It then defines the frank_tamm function, which takes a wavelength in nanometers and a particle speed as a fraction of the speed of light, and returns the Cherenkov radiation intensity using the Frank-Tamm formula.\n\nThe code then plots the Cherenkov radiation spectrum for each speed using a for loop. It calculates the beta factor for each speed, calls the `frank_tamm` function with the wavelength range and beta factor, and plots the intensity as a function of wavelength.\n # Result\n ![Foo](foo.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraymondev%2Fcherenkov-radiation-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraymondev%2Fcherenkov-radiation-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraymondev%2Fcherenkov-radiation-python/lists"}