# ritesh-badhai/berry-curvature-transport architecture

> Architecture diagram of the GitHub repository ritesh-badhai/berry-curvature-transport, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ritesh-badhai/berry-curvature-transport
- Repository: https://github.com/ritesh-badhai/berry-curvature-transport

## Overview

This repository is a research workflow for strained Janus AsTeBr monolayers: prepare VASP inputs, calculate electronic structure with SOC, generate Wannier functions, then use WannierBerri for Berry curvature and transport quantities and plotting scripts to analyze results. The README documents phonon stability, optical conductivity, nonlinear Hall response/current, and spin Hall conductivity as additional analysis branches. VASP, Wannier90, WannierBerri, and Phonopy are external tools. Edges reflect README pipeline statements and sampled code; links for unsampled analysis scripts are limited to documented capabilities.

Main entry points: [`wannierberri`](https://github.com/ritesh-badhai/berry-curvature-transport/tree/main/wannierberri) (WannierBerri Runs), [`wannierberri/BCD.py`](https://github.com/ritesh-badhai/berry-curvature-transport/blob/main/wannierberri/BCD.py) (Strain BCD), [`inputs/strain.py`](https://github.com/ritesh-badhai/berry-curvature-transport/blob/main/inputs/strain.py) (Strain Generator), [`inputs`](https://github.com/ritesh-badhai/berry-curvature-transport/tree/main/inputs) (VASP Inputs)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_inputs["Structure and Inputs"]
  node_strain["Strain Generator<br/>[strain.py]"]
  node_vasp_inputs["VASP Inputs"]
end

subgraph group_electronic["Electronic Structure"]
  node_vasp["VASP DFT/SOC"]
  node_wannier_inputs["Wannier90 Setup<br/>[wannier90.win]"]
  node_wannier90["Wannier Functions"]
  node_phonopy["Phonopy Stability"]
end

subgraph group_berry["Berry and Transport"]
  node_wb_runs["WannierBerri Runs"]
  node_berry_curvature["Berry Curvature<br/>[berryband.py]"]
  node_strain_bcd["Strain BCD<br/>[BCD.py]"]
  node_band_resolved["Band-resolved Berry"]
  node_berry_compare["Strain Comparison<br/>[berrycompare.py]"]
  node_nonlinear_transport["Nonlinear Transport<br/>[current.py]"]
  node_optical["Optical Conductivity<br/>[optical.py]"]
  node_spin_hall["Spin Hall<br/>[run_shc.py]"]
end

subgraph group_analysis["Analysis and Plots"]
  node_band_spin_plot["Spin-polarized Bands"]
  node_rashba["Rashba Analysis<br/>[rashba-para.py]"]
  node_splitting["Band Splitting<br/>[splitting.py]"]
  node_bcd_maps["BCD Maps"]
  node_nlhae_plot["Nonlinear Hall Plots<br/>[nlhc1.py]"]
  node_hall_figures["Transport Figures"]
  node_shc_plot["SHC Figures<br/>[plotshc.py]"]
  node_optical_plot["Optical Plots<br/>[plotoptical.py]"]
  node_berry_plots["Berry Plotting<br/>[plotberry0246.py]"]
end

node_researcher(("Researcher"))

node_researcher -->|"sets strain"| node_strain
node_researcher -->|"runs calculations"| node_vasp
node_strain -->|"writes strained POSCAR"| node_vasp_inputs
node_vasp_inputs -->|"configures"| node_vasp
node_vasp -->|"provides electronic data"| node_wannier_inputs
node_wannier_inputs -->|"configures"| node_wannier90
node_wannier90 -->|"supplies Wannier model"| node_wb_runs
node_wb_runs -->|"calculates"| node_berry_curvature
node_wb_runs -->|"calculates dipole"| node_strain_bcd
node_wb_runs -->|"calculates bands"| node_band_resolved
node_wb_runs -->|"compares strains"| node_berry_compare
node_wb_runs -.->|"computes transport"| node_nonlinear_transport
node_wb_runs -.->|"computes conductivity"| node_optical
node_wb_runs -.->|"computes spin Hall"| node_spin_hall
node_researcher -->|"checks stability"| node_phonopy
node_vasp -.->|"provides band data"| node_band_spin_plot
node_vasp -.->|"provides band data"| node_rashba
node_vasp -.->|"provides band data"| node_splitting
node_strain_bcd -.->|"plots BCD data"| node_bcd_maps
node_strain_bcd -.->|"derives Hall response"| node_nlhae_plot
node_nonlinear_transport -.->|"plots response"| node_hall_figures
node_spin_hall -.->|"plots SHC"| node_shc_plot
node_optical -.->|"plots conductivity"| node_optical_plot
node_berry_curvature -.->|"visualizes results"| node_berry_plots

click node_strain "https://github.com/ritesh-badhai/berry-curvature-transport/blob/main/inputs/strain.py"
click node_vasp_inputs "https://github.com/ritesh-badhai/berry-curvature-transport/tree/main/inputs"
click node_wannier_inputs "https://github.com/ritesh-badhai/berry-curvature-transport/blob/main/inputs/wannier90.win"
click node_wb_runs "https://github.com/ritesh-badhai/berry-curvature-transport/tree/main/wannierberri"
click node_berry_curvature "https://github.com/ritesh-badhai/berry-curvature-transport/blob/main/wannierberri/berryband.py"
click node_strain_bcd "https://github.com/ritesh-badhai/berry-curvature-transport/blob/main/wannierberri/BCD.py"
click node_band_resolved "https://github.com/ritesh-badhai/berry-curvature-transport/blob/main/wannierberri/AsTeBr_v1v2_bandresolved_Berry_4strain_large_klabels.py"
click node_berry_compare "https://github.com/ritesh-badhai/berry-curvature-transport/blob/main/wannierberri/berrycompare.py"
click node_nonlinear_transport "https://github.com/ritesh-badhai/berry-curvature-transport/blob/main/wannierberri/current.py"
click node_optical "https://github.com/ritesh-badhai/berry-curvature-transport/blob/main/wannierberri/optical.py"
click node_spin_hall "https://github.com/ritesh-badhai/berry-curvature-transport/blob/main/wannierberri/run_shc.py"
click node_band_spin_plot "https://github.com/ritesh-badhai/berry-curvature-transport/blob/main/plottings/Spin_polarized_band_structure_wSOC.py"
click node_rashba "https://github.com/ritesh-badhai/berry-curvature-transport/blob/main/plottings/rashba-para.py"
click node_splitting "https://github.com/ritesh-badhai/berry-curvature-transport/blob/main/plottings/splitting.py"
click node_bcd_maps "https://github.com/ritesh-badhai/berry-curvature-transport/blob/main/plottings/2_percent_strain_bcdplots.py"
click node_nlhae_plot "https://github.com/ritesh-badhai/berry-curvature-transport/blob/main/plottings/nlhc1.py"
click node_hall_figures "https://github.com/ritesh-badhai/berry-curvature-transport/blob/main/wannierberri/j4_full_corrected.py"
click node_shc_plot "https://github.com/ritesh-badhai/berry-curvature-transport/blob/main/plottings/plotshc.py"
click node_optical_plot "https://github.com/ritesh-badhai/berry-curvature-transport/blob/main/plottings/plotoptical.py"
click node_berry_plots "https://github.com/ritesh-badhai/berry-curvature-transport/blob/main/plottings/plotberry0246.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_strain,node_vasp_inputs toneBlue
class node_vasp,node_wannier_inputs,node_wannier90,node_phonopy toneAmber
class node_wb_runs,node_berry_curvature,node_strain_bcd,node_band_resolved,node_berry_compare,node_nonlinear_transport,node_optical,node_spin_hall toneMint
class node_band_spin_plot,node_rashba,node_splitting,node_bcd_maps,node_nlhae_plot,node_hall_figures,node_shc_plot,node_optical_plot,node_berry_plots toneRose
class node_researcher toneIndigo
```

## Components

### Structure and Inputs

- [Strain Generator](https://github.com/ritesh-badhai/berry-curvature-transport/blob/main/inputs/strain.py): `inputs/strain.py`
- [VASP Inputs](https://github.com/ritesh-badhai/berry-curvature-transport/tree/main/inputs): `inputs`

### Electronic Structure

- **VASP DFT/SOC**
- [Wannier90 Setup](https://github.com/ritesh-badhai/berry-curvature-transport/blob/main/inputs/wannier90.win): `inputs/wannier90.win`
- **Wannier Functions**
- **Phonopy Stability**

### Berry and Transport

- [WannierBerri Runs](https://github.com/ritesh-badhai/berry-curvature-transport/tree/main/wannierberri): `wannierberri`
- [Berry Curvature](https://github.com/ritesh-badhai/berry-curvature-transport/blob/main/wannierberri/berryband.py): `wannierberri/berryband.py`
- [Strain BCD](https://github.com/ritesh-badhai/berry-curvature-transport/blob/main/wannierberri/BCD.py): `wannierberri/BCD.py`
- [Band-resolved Berry](https://github.com/ritesh-badhai/berry-curvature-transport/blob/main/wannierberri/AsTeBr_v1v2_bandresolved_Berry_4strain_large_klabels.py): `wannierberri/AsTeBr_v1v2_bandresolved_Berry_4strain_large_klabels.py`
- [Strain Comparison](https://github.com/ritesh-badhai/berry-curvature-transport/blob/main/wannierberri/berrycompare.py): `wannierberri/berrycompare.py`
- [Nonlinear Transport](https://github.com/ritesh-badhai/berry-curvature-transport/blob/main/wannierberri/current.py): `wannierberri/current.py`
- [Optical Conductivity](https://github.com/ritesh-badhai/berry-curvature-transport/blob/main/wannierberri/optical.py): `wannierberri/optical.py`
- [Spin Hall](https://github.com/ritesh-badhai/berry-curvature-transport/blob/main/wannierberri/run_shc.py): `wannierberri/run_shc.py`

### Analysis and Plots

- [Spin-polarized Bands](https://github.com/ritesh-badhai/berry-curvature-transport/blob/main/plottings/Spin_polarized_band_structure_wSOC.py): `plottings/Spin_polarized_band_structure_wSOC.py`
- [Rashba Analysis](https://github.com/ritesh-badhai/berry-curvature-transport/blob/main/plottings/rashba-para.py): `plottings/rashba-para.py`
- [Band Splitting](https://github.com/ritesh-badhai/berry-curvature-transport/blob/main/plottings/splitting.py): `plottings/splitting.py`
- [BCD Maps](https://github.com/ritesh-badhai/berry-curvature-transport/blob/main/plottings/2_percent_strain_bcdplots.py): `plottings/2_percent_strain_bcdplots.py`
- [Nonlinear Hall Plots](https://github.com/ritesh-badhai/berry-curvature-transport/blob/main/plottings/nlhc1.py): `plottings/nlhc1.py`
- [Transport Figures](https://github.com/ritesh-badhai/berry-curvature-transport/blob/main/wannierberri/j4_full_corrected.py): `wannierberri/j4_full_corrected.py`
- [SHC Figures](https://github.com/ritesh-badhai/berry-curvature-transport/blob/main/plottings/plotshc.py): `plottings/plotshc.py`
- [Optical Plots](https://github.com/ritesh-badhai/berry-curvature-transport/blob/main/plottings/plotoptical.py): `plottings/plotoptical.py`
- [Berry Plotting](https://github.com/ritesh-badhai/berry-curvature-transport/blob/main/plottings/plotberry0246.py): `plottings/plotberry0246.py`

### Other components

- **Researcher**

## Connections

- Researcher → Strain Generator: sets strain (evidence: `inputs/strain.py`)
- Researcher → VASP DFT/SOC: runs calculations (evidence: `README.md`)
- Strain Generator → VASP Inputs: writes strained POSCAR (evidence: `inputs/strain.py`)
- VASP Inputs → VASP DFT/SOC: configures (evidence: `README.md`)
- VASP DFT/SOC → Wannier90 Setup: provides electronic data (evidence: `README.md`)
- Wannier90 Setup → Wannier Functions: configures (evidence: `README.md`)
- Wannier Functions → WannierBerri Runs: supplies Wannier model (evidence: `README.md`)
- WannierBerri Runs → Berry Curvature: calculates (evidence: `wannierberri/berryband.py`)
- WannierBerri Runs → Strain BCD: calculates dipole (evidence: `wannierberri/BCD.py`)
- WannierBerri Runs → Band-resolved Berry: calculates bands (evidence: `wannierberri/AsTeBr_v1v2_bandresolved_Berry_4strain_large_klabels.py`)
- WannierBerri Runs → Strain Comparison: compares strains (evidence: `wannierberri/berrycompare.py`)
- WannierBerri Runs → Nonlinear Transport: computes transport
- WannierBerri Runs → Optical Conductivity: computes conductivity
- WannierBerri Runs → Spin Hall: computes spin Hall
- Researcher → Phonopy Stability: checks stability (evidence: `README.md`)
- VASP DFT/SOC → Spin-polarized Bands: provides band data
- VASP DFT/SOC → Rashba Analysis: provides band data
- VASP DFT/SOC → Band Splitting: provides band data
- Strain BCD → BCD Maps: plots BCD data
- Strain BCD → Nonlinear Hall Plots: derives Hall response
- Nonlinear Transport → Transport Figures: plots response
- Spin Hall → SHC Figures: plots SHC
- Optical Conductivity → Optical Plots: plots conductivity
- Berry Curvature → Berry Plotting: visualizes results
