# aatyaa/hydrophonokit architecture

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

- Interactive diagram: https://gitdiagram.com/aatyaa/hydrophonokit
- Repository: https://github.com/aatyaa/hydrophonokit

## Overview

HydroPhonoKit turns VASP/Phonopy calculation data into phonon, thermodynamic, and hydrogen-storage results, then exports reports and publication-quality plots. The main workflow is CLI-driven: inspect material inputs, run the post-processing orchestrator through its calculation stages, and generate outputs. Separate scientific modules provide equations of state, quasi-harmonic, elastic, anharmonic, and hydrogen-gas calculations. The README documents the pipeline phases; source excerpts and index references support the cited internal links. Some visualization and auxiliary subsystem links are documented rather than source-verified.

Main entry points: [`hydrophonokit/postprocessor/core.py`](https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/postprocessor/core.py) (Pipeline orchestrator), [`hydrophonokit/cli.py`](https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/cli.py) (CLI), [`hydrophonokit/visualization/figure_factory.py`](https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/visualization/figure_factory.py) (Plot generation), [`hydrophonokit/visualization/base_plotter.py`](https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/visualization/base_plotter.py) (Plot utilities)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["User Workflow"]
  node_cli["CLI<br/>[cli.py]"]
  node_material["Material analysis<br/>[analyzer.py]"]
  node_orchestrator["Pipeline orchestrator<br/>[core.py]"]
end

subgraph group_post["Phonon Post-Processing"]
  node_loader["DFT data loading<br/>[data_loader.py]"]
  node_ifc["IFC and Born corrections<br/>[ifc_computer.py]"]
  node_bands["Bands and DOS<br/>[bands_dos.py]"]
  node_thermo["Thermal integration<br/>[thermodynamics.py]"]
  node_debye["Debye-Waller<br/>[debye_waller.py]"]
  node_transport["Mode transport"]
  node_mode_thermo["Mode thermodynamics"]
  node_hydrogen["Hydrogen assessment<br/>[hydrogen.py]"]
  node_cache["Intermediate cache<br/>[caching.py]"]
  node_export["Structured exports<br/>[enhanced_export.py]"]
end

subgraph group_science["Scientific Models"]
  node_physics["Vibrational physics<br/>[physics.py]"]
  node_eos["Equation of state<br/>[eos.py]"]
  node_qha["Quasi-harmonic model<br/>[qha.py]"]
  node_gas["Hydrogen gas model<br/>[h2_molecule.py]"]
  node_storage["Storage thermodynamics<br/>[h_storage.py]"]
  node_elastic["Elastic properties<br/>[elastic.py]"]
  node_anharmonic["Anharmonic transport<br/>[anharmonic.py]"]
end

subgraph group_viz["Visualization"]
  node_plot_factory["Plot generation<br/>[figure_factory.py]"]
  node_plot_bands["Band plots<br/>[band_plots.py]"]
  node_plot_dos["DOS plots<br/>[dos_plots.py]"]
  node_plot_thermo["Thermodynamic plots<br/>[thermo_plots.py]"]
  node_plot_base["Plot utilities<br/>[base_plotter.py]"]
  node_themes["Publication themes<br/>[themes.py]"]
end

node_user(("Materials researcher"))

node_user -->|"runs commands"| node_cli
node_cli -->|"analyzes inputs"| node_material
node_cli -->|"starts pipeline"| node_orchestrator
node_orchestrator -->|"loads data"| node_loader
node_orchestrator -->|"computes IFCs"| node_ifc
node_orchestrator -->|"computes spectra"| node_bands
node_orchestrator -->|"integrates thermodynamics"| node_thermo
node_orchestrator -->|"computes displacements"| node_debye
node_orchestrator -->|"computes velocities"| node_transport
node_orchestrator -->|"computes mode properties"| node_mode_thermo
node_orchestrator -->|"assesses storage"| node_hydrogen
node_orchestrator -->|"uses cache"| node_cache
node_orchestrator -->|"exports results"| node_export
node_hydrogen -->|"uses gas properties"| node_gas
node_storage -->|"calculates gas entropy"| node_gas
node_anharmonic -->|"uses formulas"| node_physics
node_elastic -->|"uses constants"| node_physics
node_qha -->|"uses formulas"| node_physics
node_qha -->|"fits equation of state"| node_eos
node_cli -->|"runs QHA"| node_qha
node_cli -->|"runs storage analysis"| node_storage
node_cli -->|"runs elastic analysis"| node_elastic
node_cli -->|"runs conductivity analysis"| node_anharmonic
node_cli -->|"generates plots"| node_plot_factory
node_plot_factory -->|"creates band figures"| node_plot_bands
node_plot_factory -->|"creates DOS figures"| node_plot_dos
node_plot_factory -->|"creates thermal figures"| node_plot_thermo
node_plot_bands -->|"uses plot utilities"| node_plot_base
node_plot_dos -->|"uses plot utilities"| node_plot_base
node_plot_thermo -->|"uses plot utilities"| node_plot_base
node_plot_base -->|"applies themes"| node_themes

click node_cli "https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/cli.py"
click node_material "https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/analyzer.py"
click node_orchestrator "https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/postprocessor/core.py"
click node_loader "https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/postprocessor/data_loader.py"
click node_ifc "https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/postprocessor/ifc_computer.py"
click node_bands "https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/postprocessor/bands_dos.py"
click node_thermo "https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/postprocessor/thermodynamics.py"
click node_debye "https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/postprocessor/debye_waller.py"
click node_transport "https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/postprocessor/group_velocities.py"
click node_mode_thermo "https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/postprocessor/mode_resolved_thermo.py"
click node_hydrogen "https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/postprocessor/hydrogen.py"
click node_cache "https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/postprocessor/caching.py"
click node_export "https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/postprocessor/enhanced_export.py"
click node_physics "https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/physics.py"
click node_eos "https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/eos.py"
click node_qha "https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/qha.py"
click node_gas "https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/h2_molecule.py"
click node_storage "https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/h_storage.py"
click node_elastic "https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/elastic.py"
click node_anharmonic "https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/anharmonic.py"
click node_plot_factory "https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/visualization/figure_factory.py"
click node_plot_bands "https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/visualization/band_plots.py"
click node_plot_dos "https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/visualization/dos_plots.py"
click node_plot_thermo "https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/visualization/thermo_plots.py"
click node_plot_base "https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/visualization/base_plotter.py"
click node_themes "https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/visualization/themes.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_cli,node_material,node_orchestrator toneBlue
class node_loader,node_ifc,node_bands,node_thermo,node_debye,node_transport,node_mode_thermo,node_hydrogen,node_cache,node_export toneAmber
class node_physics,node_eos,node_qha,node_gas,node_storage,node_elastic,node_anharmonic toneMint
class node_plot_factory,node_plot_bands,node_plot_dos,node_plot_thermo,node_plot_base,node_themes toneRose
class node_user toneIndigo
```

## Components

### User Workflow

- [CLI](https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/cli.py): `hydrophonokit/cli.py`
- [Material analysis](https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/analyzer.py): `hydrophonokit/analyzer.py`
- [Pipeline orchestrator](https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/postprocessor/core.py): `hydrophonokit/postprocessor/core.py`

### Phonon Post-Processing

- [DFT data loading](https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/postprocessor/data_loader.py): `hydrophonokit/postprocessor/data_loader.py`
- [IFC and Born corrections](https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/postprocessor/ifc_computer.py): `hydrophonokit/postprocessor/ifc_computer.py`
- [Bands and DOS](https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/postprocessor/bands_dos.py): `hydrophonokit/postprocessor/bands_dos.py`
- [Thermal integration](https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/postprocessor/thermodynamics.py): `hydrophonokit/postprocessor/thermodynamics.py`
- [Debye-Waller](https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/postprocessor/debye_waller.py): `hydrophonokit/postprocessor/debye_waller.py`
- [Mode transport](https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/postprocessor/group_velocities.py): `hydrophonokit/postprocessor/group_velocities.py`
- [Mode thermodynamics](https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/postprocessor/mode_resolved_thermo.py): `hydrophonokit/postprocessor/mode_resolved_thermo.py`
- [Hydrogen assessment](https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/postprocessor/hydrogen.py): `hydrophonokit/postprocessor/hydrogen.py`
- [Intermediate cache](https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/postprocessor/caching.py): `hydrophonokit/postprocessor/caching.py`
- [Structured exports](https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/postprocessor/enhanced_export.py): `hydrophonokit/postprocessor/enhanced_export.py`

### Scientific Models

- [Vibrational physics](https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/physics.py): `hydrophonokit/physics.py`
- [Equation of state](https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/eos.py): `hydrophonokit/eos.py`
- [Quasi-harmonic model](https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/qha.py): `hydrophonokit/qha.py`
- [Hydrogen gas model](https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/h2_molecule.py): `hydrophonokit/h2_molecule.py`
- [Storage thermodynamics](https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/h_storage.py): `hydrophonokit/h_storage.py`
- [Elastic properties](https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/elastic.py): `hydrophonokit/elastic.py`
- [Anharmonic transport](https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/anharmonic.py): `hydrophonokit/anharmonic.py`

### Visualization

- [Plot generation](https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/visualization/figure_factory.py): `hydrophonokit/visualization/figure_factory.py`
- [Band plots](https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/visualization/band_plots.py): `hydrophonokit/visualization/band_plots.py`
- [DOS plots](https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/visualization/dos_plots.py): `hydrophonokit/visualization/dos_plots.py`
- [Thermodynamic plots](https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/visualization/thermo_plots.py): `hydrophonokit/visualization/thermo_plots.py`
- [Plot utilities](https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/visualization/base_plotter.py): `hydrophonokit/visualization/base_plotter.py`
- [Publication themes](https://github.com/aatyaa/hydrophonokit/blob/main/hydrophonokit/visualization/themes.py): `hydrophonokit/visualization/themes.py`

### Other components

- **Materials researcher**

## Connections

- Materials researcher → CLI: runs commands
- CLI → Material analysis: analyzes inputs (evidence: `hydrophonokit/cli.py`)
- CLI → Pipeline orchestrator: starts pipeline (evidence: `hydrophonokit/cli.py`)
- Pipeline orchestrator → DFT data loading: loads data (evidence: `hydrophonokit/postprocessor/core.py`)
- Pipeline orchestrator → IFC and Born corrections: computes IFCs (evidence: `hydrophonokit/postprocessor/core.py`)
- Pipeline orchestrator → Bands and DOS: computes spectra (evidence: `hydrophonokit/postprocessor/core.py`)
- Pipeline orchestrator → Thermal integration: integrates thermodynamics (evidence: `hydrophonokit/postprocessor/core.py`)
- Pipeline orchestrator → Debye-Waller: computes displacements (evidence: `hydrophonokit/postprocessor/core.py`)
- Pipeline orchestrator → Mode transport: computes velocities (evidence: `hydrophonokit/postprocessor/core.py`)
- Pipeline orchestrator → Mode thermodynamics: computes mode properties (evidence: `hydrophonokit/postprocessor/core.py`)
- Pipeline orchestrator → Hydrogen assessment: assesses storage (evidence: `hydrophonokit/postprocessor/core.py`)
- Pipeline orchestrator → Intermediate cache: uses cache (evidence: `hydrophonokit/postprocessor/core.py`)
- Pipeline orchestrator → Structured exports: exports results (evidence: `hydrophonokit/postprocessor/core.py`)
- Hydrogen assessment → Hydrogen gas model: uses gas properties (evidence: `hydrophonokit/postprocessor/hydrogen.py`)
- Storage thermodynamics → Hydrogen gas model: calculates gas entropy (evidence: `hydrophonokit/h_storage.py`)
- Anharmonic transport → Vibrational physics: uses formulas (evidence: `hydrophonokit/anharmonic.py`)
- Elastic properties → Vibrational physics: uses constants (evidence: `hydrophonokit/elastic.py`)
- Quasi-harmonic model → Vibrational physics: uses formulas (evidence: `hydrophonokit/qha.py`)
- Quasi-harmonic model → Equation of state: fits equation of state (evidence: `hydrophonokit/qha.py`)
- CLI → Quasi-harmonic model: runs QHA (evidence: `hydrophonokit/cli.py`)
- CLI → Storage thermodynamics: runs storage analysis (evidence: `hydrophonokit/cli.py`)
- CLI → Elastic properties: runs elastic analysis (evidence: `hydrophonokit/cli.py`)
- CLI → Anharmonic transport: runs conductivity analysis (evidence: `hydrophonokit/cli.py`)
- CLI → Plot generation: generates plots (evidence: `hydrophonokit/cli.py`)
- Plot generation → Band plots: creates band figures (evidence: `hydrophonokit/visualization/figure_factory.py`)
- Plot generation → DOS plots: creates DOS figures (evidence: `hydrophonokit/visualization/figure_factory.py`)
- Plot generation → Thermodynamic plots: creates thermal figures (evidence: `hydrophonokit/visualization/figure_factory.py`)
- Band plots → Plot utilities: uses plot utilities (evidence: `hydrophonokit/visualization/band_plots.py`)
- DOS plots → Plot utilities: uses plot utilities (evidence: `hydrophonokit/visualization/dos_plots.py`)
- Thermodynamic plots → Plot utilities: uses plot utilities (evidence: `hydrophonokit/visualization/thermo_plots.py`)
- Plot utilities → Publication themes: applies themes (evidence: `hydrophonokit/visualization/base_plotter.py`)
