How takayuki-miyagi/nuhamil-public works
NuHamil is a nuclear-interaction matrix-element generator with companion few-body calculations and analysis tools. The main user workflow is to configure a run, supply a nucleon–nucleon interaction, and invoke the Fortran executable to generate matrix elements; example scripts also request deuteron, helium-4, and triton/helium-3 properties. Separate documented capabilities include two-body currents and phase-shift analysis. The README and excerpts establish these entry points and broad purposes, but do not expose the Fortran call graph, so internal runtime links are omitted.
Main entry points: NuHamilMain.F90 NuHamil executable · input_nn_files NN interactions · NuHamil_2BME.py Two-body ME driver · NuHamil_3BME.py Three-body ME driver
Components 20
Run drivers
- Two-body ME driver
exe/NuHamil_2BME.py - Three-body ME driver
exe/NuHamil_3BME.py - Multipole driver
exe/Multipoles.py - Gamow-Teller driver
exe/GT2BC.py
Fortran runtime
- NuHamil executable
src/NuHamilMain.F90 - Input handling
src/NuHamilInput.F90 - Two-body operators
src/TwoBody - Three-body operators
src/ThreeBody - One-body operators
src/OneBody - A-body operators
src/ABody - Renormalization
src/Renormalization.F90
Few-body calculations
- Deuteron example
exe/few-body/deuteron.py - Helium-4 example
exe/few-body/helium4.py - Triton/helium-3 example
exe/few-body/triton_helium3.py
Interaction analysis
- Phase-shift calculation
exe/phase-shift-analysis/calc_phase_shift.py - Phase-shift plots
exe/phase-shift-analysis/plot_phase_shift_coupled.py - Local projection
exe/phase-shift-analysis/plot_local_projection.py
Other components
- Researcher
- NN interactions
input_nn_files - Generated results
Connections 24
- Researcher → Two-body ME driver: configures
README.md - Researcher → Three-body ME driver: configures
README.md - Researcher → Deuteron example: runs example
README.md - Researcher → Helium-4 example: runs example
README.md - Researcher → Triton/helium-3 example: runs example
README.md - Researcher → Multipole driver: requests operator
README.md - Two-body ME driver → NN interactions: selects input
exe/NuHamil_2BME.py - Three-body ME driver → NN interactions: selects input
exe/NuHamil_3BME.py - Deuteron example → NN interactions: selects input
exe/few-body/deuteron.py - Two-body ME driver → NuHamil executable: invokes executable
exe/NuHamil_2BME.py - Three-body ME driver → NuHamil executable: invokes executable
exe/NuHamil_3BME.py - Multipole driver → NuHamil executable: invokes executable
exe/Multipoles.py - Gamow-Teller driver → NuHamil executable: invokes executable
exe/GT2BC.py - Deuteron example → NuHamil executable: invokes executable
exe/few-body/deuteron.py - Helium-4 example → NuHamil executable: invokes executable
exe/few-body/helium4.py - Triton/helium-3 example → NuHamil executable: invokes executable
exe/few-body/triton_helium3.py - NuHamil executable → Generated results: generates matrix elements
README.md - NuHamil executable → Generated results: computes few-body results
README.md - Researcher → Phase-shift calculation: requests analysis
README.md - Phase-shift calculation → NuHamil executable: invokes executable
exe/phase-shift-analysis/calc_phase_shift.py - Phase-shift calculation → Phase-shift plots: writes phase-shift data
- Phase-shift plots → Generated results: plots results
exe/phase-shift-analysis/plot_phase_shift_coupled.py - Local projection → NN interactions: reads interaction
input_nn_files/plot_local_projection.py - Local projection → Generated results: plots projection