{"id":20501575,"url":"https://github.com/jagot/42s-atomic","last_synced_at":"2026-04-24T05:36:22.127Z","repository":{"id":83668285,"uuid":"115439079","full_name":"jagot/42s-atomic","owner":"jagot","description":"HP42s routines for Atomic Physics and Ultrafast Optics","archived":false,"fork":false,"pushed_at":"2017-12-27T12:06:34.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-16T07:13:56.818Z","etag":null,"topics":["atomic-physics","hp42s","ultrafast-optics"],"latest_commit_sha":null,"homepage":null,"language":"Perl","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/jagot.png","metadata":{"files":{"readme":"README.org","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":"2017-12-26T16:46:00.000Z","updated_at":"2017-12-26T17:34:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"41ec0fae-6334-48a1-9b36-8e0b13b699ef","html_url":"https://github.com/jagot/42s-atomic","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/jagot%2F42s-atomic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jagot%2F42s-atomic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jagot%2F42s-atomic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jagot%2F42s-atomic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jagot","download_url":"https://codeload.github.com/jagot/42s-atomic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242097410,"owners_count":20071251,"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":["atomic-physics","hp42s","ultrafast-optics"],"created_at":"2024-11-15T18:27:13.470Z","updated_at":"2026-04-24T05:36:22.100Z","avatar_url":"https://github.com/jagot.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"#+TITLE: 42s-atomic\n#+AUTHOR: Stefanos Carlström\n#+EMAIL: stefanos.carlstrom@gmail.com\n\nA small library of routines for calculating interesting quantities\nuseful in Atomic Physics and Ultrafast Optics.\n\n* Build instructions\n  The HP42s =raw= files are generated by typing\n  #+BEGIN_SRC sh\n    rake\n  #+END_SRC\n  in a command line near you. Requires [[http://ruby-lang.org][Ruby]] and [[https://www.perl.org][Perl]] to work. The\n  =raw= files are created in the subfolder =build/raw/=. For\n  convenience, they are all concatenated together into a bundled =raw=\n  file called =build/42s-atomic.raw=, which, when loaded, imports all\n  the routines in one fell swoop.\n\n  To translate from text format to =raw= files, the [[file:./txt2raw.pl][txt2raw.pl]] by\n  Vini Matangrano is used.\n\n* Routines\n  - =LELEV= :: Load [[file:./data/eVs.txt][first ionization energies]] (in eV) into a matrix\n               named =ELEV=. (Data source: [[https://www.nist.gov/pml/atomic-spectra-database][NIST]])\n  - =LCONST= :: Load constants useful for atomic units, etc. See\n                [[file:./data/constants.yaml][constants.yaml]] for which constants are defined.\n  - =OMEGAU= :: Given a wavelength λ in SI units, calculate the\n                angular frequency ω = 2πc₀/λ, storing the result in\n                atomic units in the variable =OMEGAU= and in\n                electronvolts in =OMEGAEV=.\n  - =ATOMIP= :: Given an atomic number Z, store the ionization\n                potential Iₚ (in atomic units) in the variable\n                =ATOMIP=.\n  - =UP= :: Calculate the [[https://en.wikipedia.org/wiki/Ponderomotive_energy][ponderomotive potential]] Uₚ = I/4ω² from the\n            field intensity I and the angular frequency ω (all in\n            atomic units; uses the subroutine =OMEGAU=).\n  - =HHGCUT= :: Calculate the classical [[https://en.wikipedia.org/wiki/High_harmonic_generation#Semi-classical_approach][cut-off in HHG]], Wₖ₋ₘₐₓ =\n                3.17Uₚ + Iₚ given an intensity, a wavelength and an\n                atomic number, and store the result as\n    * =CUTOFF= :: atomic units,\n    * =CUTOEV= :: electronvolts,\n    * =CUTOFQ= :: harmonic orders (i.e. Wₖ₋ₘₐₓ/ω).\n    (uses the subroutines =ATOMIP= and =UP=).\n  - =HHGEXC= :: Calculate the typical excursion of an electron in HHG,\n                given by \u003cx\u003e = E/ω², where the electric field\n                amplitude E = √I. The result is stored in the\n                variables =EXCAU= and =EXCSI= in Bohr radii and\n                metres, respectively (uses the subroutine =UP=).\n  - =KELDYSH= :: Calculate the [[https://en.wikipedia.org/wiki/Tunnel_ionization#Analytical_formula_for_the_rate_of_MPI][Keldysh parameter]] γ = √(Iₚ/2Uₚ) and\n                 stores the result in the variable =GAMMA= (uses the\n                 subroutines =ATOMIP= and =UP=).\n* Caveats\n  These routines are only tested using [[http://thomasokken.com/free42/][Free42]], as I don't own a real\n  HP42s device.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjagot%2F42s-atomic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjagot%2F42s-atomic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjagot%2F42s-atomic/lists"}