# mahdi19103-ui/magneto-optical-properties-in-graphite- architecture

> Architecture diagram of the GitHub repository mahdi19103-ui/magneto-optical-properties-in-graphite-, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mahdi19103-ui/magneto-optical-properties-in-graphite-
- Repository: https://github.com/mahdi19103-ui/magneto-optical-properties-in-graphite-

## Overview

This repository is a numerical research code for graphite’s electron–phonon response in a magnetic field. The principal workflow models Landau bands, determines occupied-to-unoccupied transitions and their polarization response, then uses that response to calculate the shear-phonon spectral function, including its magnetic-field dependence. Band-structure and transition-energy plots are complementary analysis branches. The README documents the physical stages; source excerpts and the SOURCE INDEX establish several implementation calls. Some plotting and comparison implementations were not excerpted, so their internal links are omitted where not evidenced.

Main entry points: [`Fonction spectrale phonon/fonctions/hamiltonien.py`](https://github.com/mahdi19103-ui/magneto-optical-properties-in-graphite-/blob/main/Fonction%20spectrale%20phonon/fonctions/hamiltonien.py) (Landau Hamiltonian), [`Fonction spectrale phonon/fonctions/fermi_energy.py`](https://github.com/mahdi19103-ui/magneto-optical-properties-in-graphite-/blob/main/Fonction%20spectrale%20phonon/fonctions/fermi_energy.py) (Fermi energy), [`Fonction spectrale phonon/fonctions/Pi3_mp.py`](https://github.com/mahdi19103-ui/magneto-optical-properties-in-graphite-/blob/main/Fonction%20spectrale%20phonon/fonctions/Pi3_mp.py) (Total polarization mp), [`Fonction spectrale phonon/fonctions/Pi3_pm.py`](https://github.com/mahdi19103-ui/magneto-optical-properties-in-graphite-/blob/main/Fonction%20spectrale%20phonon/fonctions/Pi3_pm.py) (Total polarization pm)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_model["Electronic model"]
  node_parameters["Model parameters<br/>[parameters.py]"]
  node_hamiltonian["Landau Hamiltonian<br/>[hamiltonien.py]"]
  node_fermi["Fermi energy<br/>[fermi_energy.py]"]
end

subgraph group_response["Electronic response"]
  node_p_mp["Level polarization mp<br/>[p3_n_mp.py]"]
  node_p_pm["Level polarization pm<br/>[p3_n_pm.py]"]
  node_pi_mp["Total polarization mp<br/>[Pi3_mp.py]"]
  node_pi_pm["Total polarization pm<br/>[Pi3_pm.py]"]
end

subgraph group_phonon["Phonon spectrum"]
  node_spectral_mp["Spectral function mp<br/>[A3_mp.py]"]
  node_spectral_pm["Spectral function pm<br/>[A3_pm.py]"]
  node_spectrum_field["Spectrum vs field pm<br/>[A3_pm_B.py]"]
  node_spectrum_field_mp["Spectrum vs field mp<br/>[A3_mp_B.py]"]
end

subgraph group_analysis["Field analysis"]
  node_bandplot["Band structure"]
  node_transitions_plus["n to n+2 transitions"]
  node_transitions_minus["n to n-2 transitions"]
  node_symmetry["Polarization symmetry"]
  node_energy_field["Energy vs field"]
  node_comparison["Polarization comparison"]
end

node_researcher(("Researcher"))

node_researcher -->|"studies bands"| node_hamiltonian
node_researcher -->|"calculates spectrum"| node_spectral_pm
node_parameters -->|"sets model"| node_hamiltonian
node_hamiltonian -->|"supplies eigenvalues"| node_fermi
node_hamiltonian -->|"provides bands"| node_bandplot
node_hamiltonian -->|"calculates energies"| node_transitions_plus
node_fermi -->|"sets occupations"| node_transitions_plus
node_hamiltonian -->|"calculates energies"| node_transitions_minus
node_fermi -->|"sets occupations"| node_transitions_minus
node_hamiltonian -->|"diagonalizes levels"| node_p_mp
node_fermi -->|"sets occupations"| node_p_mp
node_hamiltonian -->|"diagonalizes levels"| node_p_pm
node_fermi -->|"sets occupations"| node_p_pm
node_p_mp -->|"sums levels"| node_pi_mp
node_p_pm -->|"sums levels"| node_pi_pm
node_pi_pm -->|"feeds response"| node_spectral_mp
node_pi_mp -->|"feeds response"| node_spectral_pm
node_spectral_pm -->|"evaluates across field"| node_spectrum_field
node_spectral_mp -->|"evaluates across field"| node_spectrum_field_mp
node_pi_pm -->|"compares response"| node_symmetry
node_pi_mp -->|"compares response"| node_symmetry
node_hamiltonian -->|"tracks energies"| node_energy_field

click node_parameters "https://github.com/mahdi19103-ui/magneto-optical-properties-in-graphite-/blob/main/Fonction%20spectrale%20phonon/fonctions/parameters.py"
click node_hamiltonian "https://github.com/mahdi19103-ui/magneto-optical-properties-in-graphite-/blob/main/Fonction%20spectrale%20phonon/fonctions/hamiltonien.py"
click node_fermi "https://github.com/mahdi19103-ui/magneto-optical-properties-in-graphite-/blob/main/Fonction%20spectrale%20phonon/fonctions/fermi_energy.py"
click node_bandplot "https://github.com/mahdi19103-ui/magneto-optical-properties-in-graphite-/blob/main/Fonction%20spectrale%20phonon/fonctions/plot_bande_structure.py"
click node_transitions_plus "https://github.com/mahdi19103-ui/magneto-optical-properties-in-graphite-/blob/main/Fonction%20spectrale%20phonon/fonctions/DeltaE_n_nplus2_B.py"
click node_transitions_minus "https://github.com/mahdi19103-ui/magneto-optical-properties-in-graphite-/blob/main/Fonction%20spectrale%20phonon/fonctions/DeltaE_n_nmoins2_B.py"
click node_p_mp "https://github.com/mahdi19103-ui/magneto-optical-properties-in-graphite-/blob/main/Fonction%20spectrale%20phonon/fonctions/p3_n_mp.py"
click node_p_pm "https://github.com/mahdi19103-ui/magneto-optical-properties-in-graphite-/blob/main/Fonction%20spectrale%20phonon/fonctions/p3_n_pm.py"
click node_pi_mp "https://github.com/mahdi19103-ui/magneto-optical-properties-in-graphite-/blob/main/Fonction%20spectrale%20phonon/fonctions/Pi3_mp.py"
click node_pi_pm "https://github.com/mahdi19103-ui/magneto-optical-properties-in-graphite-/blob/main/Fonction%20spectrale%20phonon/fonctions/Pi3_pm.py"
click node_symmetry "https://github.com/mahdi19103-ui/magneto-optical-properties-in-graphite-/blob/main/Fonction%20spectrale%20phonon/fonctions/plot_relation_symmetry.py"
click node_spectral_mp "https://github.com/mahdi19103-ui/magneto-optical-properties-in-graphite-/blob/main/Fonction%20spectrale%20phonon/fonctions/A3_mp.py"
click node_spectral_pm "https://github.com/mahdi19103-ui/magneto-optical-properties-in-graphite-/blob/main/Fonction%20spectrale%20phonon/fonctions/A3_pm.py"
click node_spectrum_field "https://github.com/mahdi19103-ui/magneto-optical-properties-in-graphite-/blob/main/Fonction%20spectrale%20phonon/fonctions/A3_pm_B.py"
click node_spectrum_field_mp "https://github.com/mahdi19103-ui/magneto-optical-properties-in-graphite-/blob/main/Fonction%20spectrale%20phonon/fonctions/A3_mp_B.py"
click node_energy_field "https://github.com/mahdi19103-ui/magneto-optical-properties-in-graphite-/blob/main/Fonction%20spectrale%20phonon/fonctions/variation_E_n_with_B.py"
click node_comparison "https://github.com/mahdi19103-ui/magneto-optical-properties-in-graphite-/blob/main/Fonction%20spectrale%20phonon/fonctions/A_pm_comparaison.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_parameters,node_hamiltonian,node_fermi toneBlue
class node_p_mp,node_p_pm,node_pi_mp,node_pi_pm toneAmber
class node_spectral_mp,node_spectral_pm,node_spectrum_field,node_spectrum_field_mp toneMint
class node_bandplot,node_transitions_plus,node_transitions_minus,node_symmetry,node_energy_field,node_comparison toneRose
class node_researcher toneIndigo
```

## Components

### Electronic model

- [Model parameters](https://github.com/mahdi19103-ui/magneto-optical-properties-in-graphite-/blob/main/Fonction%20spectrale%20phonon/fonctions/parameters.py): `Fonction spectrale phonon/fonctions/parameters.py`
- [Landau Hamiltonian](https://github.com/mahdi19103-ui/magneto-optical-properties-in-graphite-/blob/main/Fonction%20spectrale%20phonon/fonctions/hamiltonien.py): `Fonction spectrale phonon/fonctions/hamiltonien.py`
- [Fermi energy](https://github.com/mahdi19103-ui/magneto-optical-properties-in-graphite-/blob/main/Fonction%20spectrale%20phonon/fonctions/fermi_energy.py): `Fonction spectrale phonon/fonctions/fermi_energy.py`

### Electronic response

- [Level polarization mp](https://github.com/mahdi19103-ui/magneto-optical-properties-in-graphite-/blob/main/Fonction%20spectrale%20phonon/fonctions/p3_n_mp.py): `Fonction spectrale phonon/fonctions/p3_n_mp.py`
- [Level polarization pm](https://github.com/mahdi19103-ui/magneto-optical-properties-in-graphite-/blob/main/Fonction%20spectrale%20phonon/fonctions/p3_n_pm.py): `Fonction spectrale phonon/fonctions/p3_n_pm.py`
- [Total polarization mp](https://github.com/mahdi19103-ui/magneto-optical-properties-in-graphite-/blob/main/Fonction%20spectrale%20phonon/fonctions/Pi3_mp.py): `Fonction spectrale phonon/fonctions/Pi3_mp.py`
- [Total polarization pm](https://github.com/mahdi19103-ui/magneto-optical-properties-in-graphite-/blob/main/Fonction%20spectrale%20phonon/fonctions/Pi3_pm.py): `Fonction spectrale phonon/fonctions/Pi3_pm.py`

### Phonon spectrum

- [Spectral function mp](https://github.com/mahdi19103-ui/magneto-optical-properties-in-graphite-/blob/main/Fonction%20spectrale%20phonon/fonctions/A3_mp.py): `Fonction spectrale phonon/fonctions/A3_mp.py`
- [Spectral function pm](https://github.com/mahdi19103-ui/magneto-optical-properties-in-graphite-/blob/main/Fonction%20spectrale%20phonon/fonctions/A3_pm.py): `Fonction spectrale phonon/fonctions/A3_pm.py`
- [Spectrum vs field pm](https://github.com/mahdi19103-ui/magneto-optical-properties-in-graphite-/blob/main/Fonction%20spectrale%20phonon/fonctions/A3_pm_B.py): `Fonction spectrale phonon/fonctions/A3_pm_B.py`
- [Spectrum vs field mp](https://github.com/mahdi19103-ui/magneto-optical-properties-in-graphite-/blob/main/Fonction%20spectrale%20phonon/fonctions/A3_mp_B.py): `Fonction spectrale phonon/fonctions/A3_mp_B.py`

### Field analysis

- [Band structure](https://github.com/mahdi19103-ui/magneto-optical-properties-in-graphite-/blob/main/Fonction%20spectrale%20phonon/fonctions/plot_bande_structure.py): `Fonction spectrale phonon/fonctions/plot_bande_structure.py`
- [n to n+2 transitions](https://github.com/mahdi19103-ui/magneto-optical-properties-in-graphite-/blob/main/Fonction%20spectrale%20phonon/fonctions/DeltaE_n_nplus2_B.py): `Fonction spectrale phonon/fonctions/DeltaE_n_nplus2_B.py`
- [n to n-2 transitions](https://github.com/mahdi19103-ui/magneto-optical-properties-in-graphite-/blob/main/Fonction%20spectrale%20phonon/fonctions/DeltaE_n_nmoins2_B.py): `Fonction spectrale phonon/fonctions/DeltaE_n_nmoins2_B.py`
- [Polarization symmetry](https://github.com/mahdi19103-ui/magneto-optical-properties-in-graphite-/blob/main/Fonction%20spectrale%20phonon/fonctions/plot_relation_symmetry.py): `Fonction spectrale phonon/fonctions/plot_relation_symmetry.py`
- [Energy vs field](https://github.com/mahdi19103-ui/magneto-optical-properties-in-graphite-/blob/main/Fonction%20spectrale%20phonon/fonctions/variation_E_n_with_B.py): `Fonction spectrale phonon/fonctions/variation_E_n_with_B.py`
- [Polarization comparison](https://github.com/mahdi19103-ui/magneto-optical-properties-in-graphite-/blob/main/Fonction%20spectrale%20phonon/fonctions/A_pm_comparaison.py): `Fonction spectrale phonon/fonctions/A_pm_comparaison.py`

### Other components

- **Researcher**

## Connections

- Researcher → Landau Hamiltonian: studies bands (evidence: `README.md`)
- Researcher → Spectral function pm: calculates spectrum (evidence: `README.md`)
- Model parameters → Landau Hamiltonian: sets model (evidence: `Fonction spectrale phonon/fonctions/hamiltonien.py`)
- Landau Hamiltonian → Fermi energy: supplies eigenvalues (evidence: `Fonction spectrale phonon/fonctions/fermi_energy.py`)
- Landau Hamiltonian → Band structure: provides bands (evidence: `Fonction spectrale phonon/fonctions/plot_bande_structure.py`)
- Landau Hamiltonian → n to n+2 transitions: calculates energies (evidence: `Fonction spectrale phonon/fonctions/DeltaE_n_nplus2_B.py`)
- Fermi energy → n to n+2 transitions: sets occupations (evidence: `Fonction spectrale phonon/fonctions/DeltaE_n_nplus2_B.py`)
- Landau Hamiltonian → n to n-2 transitions: calculates energies (evidence: `Fonction spectrale phonon/fonctions/DeltaE_n_nmoins2_B.py`)
- Fermi energy → n to n-2 transitions: sets occupations (evidence: `Fonction spectrale phonon/fonctions/DeltaE_n_nmoins2_B.py`)
- Landau Hamiltonian → Level polarization mp: diagonalizes levels (evidence: `Fonction spectrale phonon/fonctions/p3_n_mp.py`)
- Fermi energy → Level polarization mp: sets occupations (evidence: `Fonction spectrale phonon/fonctions/p3_n_mp.py`)
- Landau Hamiltonian → Level polarization pm: diagonalizes levels (evidence: `Fonction spectrale phonon/fonctions/p3_n_pm.py`)
- Fermi energy → Level polarization pm: sets occupations (evidence: `Fonction spectrale phonon/fonctions/p3_n_pm.py`)
- Level polarization mp → Total polarization mp: sums levels (evidence: `Fonction spectrale phonon/fonctions/Pi3_mp.py`)
- Level polarization pm → Total polarization pm: sums levels (evidence: `Fonction spectrale phonon/fonctions/Pi3_pm.py`)
- Total polarization pm → Spectral function mp: feeds response (evidence: `Fonction spectrale phonon/fonctions/A3_mp.py`)
- Total polarization mp → Spectral function pm: feeds response (evidence: `Fonction spectrale phonon/fonctions/A3_pm.py`)
- Spectral function pm → Spectrum vs field pm: evaluates across field (evidence: `Fonction spectrale phonon/fonctions/A3_pm_B.py`)
- Spectral function mp → Spectrum vs field mp: evaluates across field (evidence: `Fonction spectrale phonon/fonctions/A3_mp_B.py`)
- Total polarization pm → Polarization symmetry: compares response (evidence: `Fonction spectrale phonon/fonctions/plot_relation_symmetry.py`)
- Total polarization mp → Polarization symmetry: compares response (evidence: `Fonction spectrale phonon/fonctions/plot_relation_symmetry.py`)
- Landau Hamiltonian → Energy vs field: tracks energies (evidence: `Fonction spectrale phonon/fonctions/variation_E_n_with_B.py`)
