{"id":25290690,"url":"https://github.com/jskmnmgch/njl_model","last_synced_at":"2025-07-09T11:07:36.375Z","repository":{"id":276612847,"uuid":"929772558","full_name":"jskMNMGCH/NJL_model","owner":"jskMNMGCH","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-09T12:17:30.000Z","size":3352,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T15:47:16.791Z","etag":null,"topics":["nuclear-physics","particle-physics","physics","quark"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jskMNMGCH.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2025-02-09T11:16:34.000Z","updated_at":"2025-02-09T12:25:33.000Z","dependencies_parsed_at":"2025-02-09T12:38:28.351Z","dependency_job_id":null,"html_url":"https://github.com/jskMNMGCH/NJL_model","commit_stats":null,"previous_names":["jskmnmgch/njl_model"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jskMNMGCH/NJL_model","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jskMNMGCH%2FNJL_model","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jskMNMGCH%2FNJL_model/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jskMNMGCH%2FNJL_model/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jskMNMGCH%2FNJL_model/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jskMNMGCH","download_url":"https://codeload.github.com/jskMNMGCH/NJL_model/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jskMNMGCH%2FNJL_model/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264446721,"owners_count":23609633,"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":["nuclear-physics","particle-physics","physics","quark"],"created_at":"2025-02-13T00:41:06.084Z","updated_at":"2025-07-09T11:07:36.348Z","avatar_url":"https://github.com/jskMNMGCH.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NJL Model Analysis of Dense Quark Matter\n\nThis project implements a numerical analysis of dense quark matter using a two-flavor NJL (Nambu–Jona-Lasinio) model approach. The code primarily calculates thermodynamic quantities such as the grand potential, quark number density, normalized baryon density, pressure, and energy density by solving a self-consistent gap equation for the effective quark mass \\(M\\) and an effective chemical potential \\(\\mu_{\\text{tilde}}\\).\n  \n  ![Sample density plots](fig/example.png)\n  ![Sample phase diagram](fig/phase_diag.png)\n\n## Features\n\n- **Fermi Occupation Numbers:**  \n  - `np(p, T, mu, M)`: Computes the Fermi-Dirac occupation number for quarks.\n  - `np_bar(p, T, mu, M)`: Computes the Fermi-Dirac occupation number for antiquarks.\n\n- **Thermodynamic Potential:**  \n  - `OmegaM(Temp, μ_t, Mass)`: Computes the free (Fermi-gas) thermodynamic potential.\n  - `Omega_temp(T, μ, M, μ_tilde)`: Computes the total thermodynamic potential including interaction terms.\n\n- **Gap Equation and Self-Consistency:**  \n  - `gap_eq(M; T, mu)`: Evaluates the gap equation (self-consistency condition) for the effective mass.\n  - `find_M(Temp, μ)`: Numerically solves the gap equation to determine the effective mass \\(M\\).\n\n- **System Solver for Equilibrium:**  \n  - `solve_system(T, μ)`: Solves the coupled equations \\(\\frac{d\\Omega}{dM}=0\\) and \\(\\frac{d\\Omega}{d\\mu_{\\text{tilde}}}=0\\) using `NLsolve` to obtain the equilibrium values of \\(M\\) and \\(\\mu_{\\text{tilde}}\\).\n\n- **Thermodynamic Quantities:**  \n  - `Omega(T, μ)`: Computes the grand potential (relative to vacuum).\n  - `num_dens(T, mu, M)`: Computes the total quark number density via 3D momentum integration.\n  - `rhoB(T, μ)`: Computes the normalized baryon number density.\n  - `pressure(T, μ)`: Computes the pressure.\n  - `energy_dens(T, μ)`: Computes the energy density.\n\n## Global Variables\n\nThe following global constants are used throughout the analysis for physical quantities and unit conversions. These are defined in the `const.jl` file and should be kept consistent across the computations:\n\n### Physical Constants:\n- `hbarc`: Reduced Planck's constant times the speed of light in MeV·fm (\\(197.32698044404107\\)).\n- `rho0`: Nuclear saturation density in fm\\(^-3\\) (0.17).\n\n### Parameters for the NJL-type Quark Model:\n- `Nf`: Number of flavors (2).\n- `Nc`: Number of colors (3).\n- `Lambda`: Coupling constant (587.9 MeV).\n- `Gs`: Coupling constant for the scalar channel (calculated as \\(2.44/\\Lambda^2\\)).\n- `Gv`: Coupling constant for the vector channel (same as `Gs`).\n- `m`: Quark mass in MeV (5.6).\n\n### Parameters for the Original NJL Model:\n- `Nf_o`: Number of flavors (2).\n- `Nc_o`: Number of colors (3).\n- `Lambda_o`: Coupling constant (587.9 MeV).\n- `G`: Coupling constant for the original NJL model (calculated as \\(2.44/\\Lambda_o^2\\)).\n- `m_o`: Quark mass in MeV (5.6).\n\nThese global constants are crucial for the proper functioning of the model and should be set before performing any calculations.\n\n## References\nM. Buballa, Phys. Rept. 407, 205-376 (2005) doi:10.1016/j.physrep.2004.11.004 [arXiv:hep-ph/0402234\n[hep-ph]].\n\n## Contributing\nFeel free to submit issues or pull requests to improve this project.\n\n## License\nThis project is licensed under the MIT License. See the LICENSE file for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjskmnmgch%2Fnjl_model","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjskmnmgch%2Fnjl_model","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjskmnmgch%2Fnjl_model/lists"}