# ac-dias/wantibexos architecture

> Architecture diagram of the GitHub repository ac-dias/wantibexos, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-24). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ac-dias/wantibexos
- Repository: https://github.com/ac-dias/wantibexos

## Overview

WanTiBEXOS is a Fortran Wannier-based tight-binding package for electronic band structures, excitonic behavior, and optoelectronic properties. The tree shows separate programs for band paths, density of states, Berry curvature, optical response, Bethe–Salpeter calculations, and photovoltaic analysis, plus shared physics routines and input handling. The README does not describe runtime call or data-flow relationships, and no source excerpts were provided, so the graph keeps these capabilities distinct rather than inferring a workflow or connecting components. Paths identify the visible implementations.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Program entry"]
  node_main["Main program<br/>[wtb_main.f90]"]
end

subgraph group_electronic["Electronic properties"]
  node_bands["Band paths"]
  node_tdos["Density of states<br/>[tdos-tool.f90]"]
  node_berry_path["Berry curvature paths"]
  node_berry_bz["Berry curvature zone"]
  node_hamiltonian["Tight-binding Hamiltonian<br/>[hamiltonian_tb.f90]"]
  node_dos["DOS routines<br/>[dos_subs.f90]"]
end

subgraph group_exciton["Excitonic optics"]
  node_bse_kpath["Exciton paths<br/>[bse_kpath-tool.f90]"]
  node_bse_solver["Exciton solver"]
  node_bse_diel["Excitonic dielectric response<br/>[bse_diel-tool.f90]"]
  node_single_particle["Single-particle optics<br/>[sp_diel-tool.f90]"]
  node_optics["Optics routines<br/>[optics.f90]"]
  node_bse_subs["BSE routines<br/>[bse_subs.f90]"]
end

subgraph group_shared["Shared physics"]
  node_pce["Photovoltaic analysis<br/>[pce-code.f90]"]
  node_lifetime["Exciton lifetime"]
  node_input["Input handling"]
  node_coulomb["Coulomb potential<br/>[coulomb_pot.f90]"]
  node_berry_routines["Berry routines"]
  node_pce_routines["Photovoltaic routines<br/>[pce-subs.f90]"]
end

click node_main "https://github.com/ac-dias/wantibexos/blob/main/wtb_main.f90"
click node_bands "https://github.com/ac-dias/wantibexos/blob/main/subprograms/bands-kpath-tool.f90"
click node_tdos "https://github.com/ac-dias/wantibexos/blob/main/subprograms/tdos-tool.f90"
click node_berry_path "https://github.com/ac-dias/wantibexos/blob/main/subprograms/berry_curvature_kpath-tool.f90"
click node_berry_bz "https://github.com/ac-dias/wantibexos/blob/main/subprograms/berry_curvature_bz-tool.f90"
click node_hamiltonian "https://github.com/ac-dias/wantibexos/blob/main/subroutines/hamiltonian_tb.f90"
click node_dos "https://github.com/ac-dias/wantibexos/blob/main/subroutines/dos_subs.f90"
click node_bse_kpath "https://github.com/ac-dias/wantibexos/blob/main/subprograms/bse_kpath-tool.f90"
click node_bse_solver "https://github.com/ac-dias/wantibexos/blob/main/subprograms/bse_solver-tool-diel.f90"
click node_bse_diel "https://github.com/ac-dias/wantibexos/blob/main/subprograms/bse_diel-tool.f90"
click node_single_particle "https://github.com/ac-dias/wantibexos/blob/main/subprograms/sp_diel-tool.f90"
click node_optics "https://github.com/ac-dias/wantibexos/blob/main/subroutines/optics.f90"
click node_bse_subs "https://github.com/ac-dias/wantibexos/blob/main/subroutines/bse_subs.f90"
click node_pce "https://github.com/ac-dias/wantibexos/blob/main/subprograms/pce-code.f90"
click node_lifetime "https://github.com/ac-dias/wantibexos/blob/main/subprograms/exciton_lifetime.f90"
click node_input "https://github.com/ac-dias/wantibexos/blob/main/subroutines/module_input_read.f90"
click node_coulomb "https://github.com/ac-dias/wantibexos/blob/main/subroutines/coulomb_pot.f90"
click node_berry_routines "https://github.com/ac-dias/wantibexos/blob/main/subroutines/berry_curvature_subs.f90"
click node_pce_routines "https://github.com/ac-dias/wantibexos/blob/main/subroutines/pce-subs.f90"

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_main toneBlue
class node_bands,node_tdos,node_berry_path,node_berry_bz,node_hamiltonian,node_dos toneAmber
class node_bse_kpath,node_bse_solver,node_bse_diel,node_single_particle,node_optics,node_bse_subs toneMint
class node_pce,node_lifetime,node_input,node_coulomb,node_berry_routines,node_pce_routines toneRose
```

## Components

### Program entry

- [Main program](https://github.com/ac-dias/wantibexos/blob/main/wtb_main.f90): `wtb_main.f90`

### Electronic properties

- [Band paths](https://github.com/ac-dias/wantibexos/blob/main/subprograms/bands-kpath-tool.f90): `subprograms/bands-kpath-tool.f90`
- [Density of states](https://github.com/ac-dias/wantibexos/blob/main/subprograms/tdos-tool.f90): `subprograms/tdos-tool.f90`
- [Berry curvature paths](https://github.com/ac-dias/wantibexos/blob/main/subprograms/berry_curvature_kpath-tool.f90): `subprograms/berry_curvature_kpath-tool.f90`
- [Berry curvature zone](https://github.com/ac-dias/wantibexos/blob/main/subprograms/berry_curvature_bz-tool.f90): `subprograms/berry_curvature_bz-tool.f90`
- [Tight-binding Hamiltonian](https://github.com/ac-dias/wantibexos/blob/main/subroutines/hamiltonian_tb.f90): `subroutines/hamiltonian_tb.f90`
- [DOS routines](https://github.com/ac-dias/wantibexos/blob/main/subroutines/dos_subs.f90): `subroutines/dos_subs.f90`

### Excitonic optics

- [Exciton paths](https://github.com/ac-dias/wantibexos/blob/main/subprograms/bse_kpath-tool.f90): `subprograms/bse_kpath-tool.f90`
- [Exciton solver](https://github.com/ac-dias/wantibexos/blob/main/subprograms/bse_solver-tool-diel.f90): `subprograms/bse_solver-tool-diel.f90`
- [Excitonic dielectric response](https://github.com/ac-dias/wantibexos/blob/main/subprograms/bse_diel-tool.f90): `subprograms/bse_diel-tool.f90`
- [Single-particle optics](https://github.com/ac-dias/wantibexos/blob/main/subprograms/sp_diel-tool.f90): `subprograms/sp_diel-tool.f90`
- [Optics routines](https://github.com/ac-dias/wantibexos/blob/main/subroutines/optics.f90): `subroutines/optics.f90`
- [BSE routines](https://github.com/ac-dias/wantibexos/blob/main/subroutines/bse_subs.f90): `subroutines/bse_subs.f90`

### Shared physics

- [Photovoltaic analysis](https://github.com/ac-dias/wantibexos/blob/main/subprograms/pce-code.f90): `subprograms/pce-code.f90`
- [Exciton lifetime](https://github.com/ac-dias/wantibexos/blob/main/subprograms/exciton_lifetime.f90): `subprograms/exciton_lifetime.f90`
- [Input handling](https://github.com/ac-dias/wantibexos/blob/main/subroutines/module_input_read.f90): `subroutines/module_input_read.f90`
- [Coulomb potential](https://github.com/ac-dias/wantibexos/blob/main/subroutines/coulomb_pot.f90): `subroutines/coulomb_pot.f90`
- [Berry routines](https://github.com/ac-dias/wantibexos/blob/main/subroutines/berry_curvature_subs.f90): `subroutines/berry_curvature_subs.f90`
- [Photovoltaic routines](https://github.com/ac-dias/wantibexos/blob/main/subroutines/pce-subs.f90): `subroutines/pce-subs.f90`
