# jchddd/heaict architecture

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

- Interactive diagram: https://gitdiagram.com/jchddd/heaict
- Repository: https://github.com/jchddd/heaict

## Overview

HEAICT is a research toolkit for designing and screening high-entropy alloy/intermetallic catalysts, especially for nitrogen reduction. A principal workflow constructs alloy slabs, identifies adsorption sites, assembles training data, predicts adsorption energies with ASGCNN, evaluates catalytic performance, and optimizes compositions for multiple objectives. Separate capabilities cover alloy stability and intermetallic site occupation. The README documents the workflow and module responsibilities; where source excerpts do not establish exact runtime calls, links are omitted rather than inferred.

Main entry points: [`heaict/cats/problem.py`](https://github.com/jchddd/heaict/blob/main/heaict/cats/problem.py) (Catalyst problem), [`heaict/cats/surface.py`](https://github.com/jchddd/heaict/blob/main/heaict/cats/surface.py) (Extended surface), [`heaict/mobo/utility.py`](https://github.com/jchddd/heaict/blob/main/heaict/mobo/utility.py) (Search utilities), [`heaict/data/site.py`](https://github.com/jchddd/heaict/blob/main/heaict/data/site.py) (Site identification)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_structure["Structures and data"]
  node_slab["Slab construction<br/>[slab.py]"]
  node_siteid["Site identification<br/>[site.py]"]
  node_dataset[("Dataset construction<br/>[dataset.py]")]
  node_datautil["Data utilities<br/>[utility.py]"]
end

subgraph group_learning["Energy prediction"]
  node_trainer["Model training<br/>[trainer.py]"]
  node_asgnn["ASGCNN<br/>[mode.py]"]
  node_layers["Graph layers<br/>[layers.py]"]
  node_gpr["GPR surrogates<br/>[GPR_scikit.py]"]
  node_surrogate["Surrogate interface<br/>[SM_main.py]"]
  node_parameters["Model parameters<br/>[para.py]"]
end

subgraph group_materials["Materials analysis"]
  node_hea["HEA stability<br/>[HEA.py]"]
  node_hei["HEI site occupation<br/>[HEI.py]"]
end

subgraph group_catalysis["Catalyst evaluation"]
  node_surface["Extended surface<br/>[surface.py]"]
  node_catutil["Catalysis utilities<br/>[utility.py]"]
  node_catproblem["Catalyst problem<br/>[problem.py]"]
end

subgraph group_search["Optimization"]
  node_realproblem["Optimization problem<br/>[problem.py]"]
  node_mobo["Multiobjective search<br/>[mobo.py]"]
  node_discovery["Pareto discovery<br/>[partor_discover.py]"]
  node_buffer[("Search buffer<br/>[buffer.py]")]
  node_moutil["Search utilities<br/>[utility.py]"]
end

node_researcher(("Researcher"))

node_researcher -->|"constructs slabs"| node_slab
node_slab -->|"identify sites"| node_siteid
node_siteid -->|"builds dataset"| node_dataset
node_dataset -->|"trains on data"| node_trainer
node_trainer -->|"trains model"| node_asgnn
node_asgnn -->|"uses layers"| node_layers
node_catproblem -->|"evaluates surface"| node_surface
node_surface -->|"builds graphs"| node_dataset
node_surface -->|"infers sites"| node_siteid
node_catproblem -->|"evaluates stability"| node_hea
node_catproblem -->|"evaluates occupation"| node_hei
node_catproblem -->|"extends problem"| node_realproblem
node_researcher -->|"runs search"| node_mobo
node_mobo -.->|"optimizes problem"| node_realproblem
node_discovery -->|"uses buffer"| node_buffer
node_buffer -->|"uses utilities"| node_moutil
node_moutil -->|"uses surrogate"| node_gpr
node_moutil -->|"uses interface"| node_surrogate
node_gpr -.->|"implements interface"| node_surrogate
node_researcher -->|"analyzes stability"| node_hea
node_researcher -->|"analyzes occupation"| node_hei

click node_slab "https://github.com/jchddd/heaict/blob/main/heaict/hea/slab.py"
click node_siteid "https://github.com/jchddd/heaict/blob/main/heaict/data/site.py"
click node_dataset "https://github.com/jchddd/heaict/blob/main/heaict/data/dataset.py"
click node_datautil "https://github.com/jchddd/heaict/blob/main/heaict/data/utility.py"
click node_trainer "https://github.com/jchddd/heaict/blob/main/heaict/ml/trainer.py"
click node_asgnn "https://github.com/jchddd/heaict/blob/main/heaict/ml/mode.py"
click node_layers "https://github.com/jchddd/heaict/blob/main/heaict/ml/layers.py"
click node_gpr "https://github.com/jchddd/heaict/blob/main/heaict/ml/GPR_scikit.py"
click node_surrogate "https://github.com/jchddd/heaict/blob/main/heaict/ml/SM_main.py"
click node_hea "https://github.com/jchddd/heaict/blob/main/heaict/hea/HEA.py"
click node_hei "https://github.com/jchddd/heaict/blob/main/heaict/hea/HEI.py"
click node_surface "https://github.com/jchddd/heaict/blob/main/heaict/cats/surface.py"
click node_catutil "https://github.com/jchddd/heaict/blob/main/heaict/cats/utility.py"
click node_catproblem "https://github.com/jchddd/heaict/blob/main/heaict/cats/problem.py"
click node_realproblem "https://github.com/jchddd/heaict/blob/main/heaict/mobo/problem.py"
click node_mobo "https://github.com/jchddd/heaict/blob/main/heaict/mobo/mobo.py"
click node_discovery "https://github.com/jchddd/heaict/blob/main/heaict/mobo/partor_discover.py"
click node_buffer "https://github.com/jchddd/heaict/blob/main/heaict/mobo/buffer.py"
click node_moutil "https://github.com/jchddd/heaict/blob/main/heaict/mobo/utility.py"
click node_parameters "https://github.com/jchddd/heaict/blob/main/heaict/para.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_slab,node_siteid,node_dataset,node_datautil toneBlue
class node_trainer,node_asgnn,node_layers,node_gpr,node_surrogate,node_parameters toneAmber
class node_hea,node_hei toneMint
class node_surface,node_catutil,node_catproblem toneRose
class node_realproblem,node_mobo,node_discovery,node_buffer,node_moutil,node_researcher toneIndigo
```

## Components

### Structures and data

- [Slab construction](https://github.com/jchddd/heaict/blob/main/heaict/hea/slab.py): `heaict/hea/slab.py`
- [Site identification](https://github.com/jchddd/heaict/blob/main/heaict/data/site.py): `heaict/data/site.py`
- [Dataset construction](https://github.com/jchddd/heaict/blob/main/heaict/data/dataset.py): `heaict/data/dataset.py`
- [Data utilities](https://github.com/jchddd/heaict/blob/main/heaict/data/utility.py): `heaict/data/utility.py`

### Energy prediction

- [Model training](https://github.com/jchddd/heaict/blob/main/heaict/ml/trainer.py): `heaict/ml/trainer.py`
- [ASGCNN](https://github.com/jchddd/heaict/blob/main/heaict/ml/mode.py): `heaict/ml/mode.py`
- [Graph layers](https://github.com/jchddd/heaict/blob/main/heaict/ml/layers.py): `heaict/ml/layers.py`
- [GPR surrogates](https://github.com/jchddd/heaict/blob/main/heaict/ml/GPR_scikit.py): `heaict/ml/GPR_scikit.py`
- [Surrogate interface](https://github.com/jchddd/heaict/blob/main/heaict/ml/SM_main.py): `heaict/ml/SM_main.py`
- [Model parameters](https://github.com/jchddd/heaict/blob/main/heaict/para.py): `heaict/para.py`

### Materials analysis

- [HEA stability](https://github.com/jchddd/heaict/blob/main/heaict/hea/HEA.py): `heaict/hea/HEA.py`
- [HEI site occupation](https://github.com/jchddd/heaict/blob/main/heaict/hea/HEI.py): `heaict/hea/HEI.py`

### Catalyst evaluation

- [Extended surface](https://github.com/jchddd/heaict/blob/main/heaict/cats/surface.py): `heaict/cats/surface.py`
- [Catalysis utilities](https://github.com/jchddd/heaict/blob/main/heaict/cats/utility.py): `heaict/cats/utility.py`
- [Catalyst problem](https://github.com/jchddd/heaict/blob/main/heaict/cats/problem.py): `heaict/cats/problem.py`

### Optimization

- [Optimization problem](https://github.com/jchddd/heaict/blob/main/heaict/mobo/problem.py): `heaict/mobo/problem.py`
- [Multiobjective search](https://github.com/jchddd/heaict/blob/main/heaict/mobo/mobo.py): `heaict/mobo/mobo.py`
- [Pareto discovery](https://github.com/jchddd/heaict/blob/main/heaict/mobo/partor_discover.py): `heaict/mobo/partor_discover.py`
- [Search buffer](https://github.com/jchddd/heaict/blob/main/heaict/mobo/buffer.py): `heaict/mobo/buffer.py`
- [Search utilities](https://github.com/jchddd/heaict/blob/main/heaict/mobo/utility.py): `heaict/mobo/utility.py`

### Other components

- **Researcher**

## Connections

- Researcher → Slab construction: constructs slabs
- Slab construction → Site identification: identify sites
- Site identification → Dataset construction: builds dataset (evidence: `heaict/data/dataset.py`)
- Dataset construction → Model training: trains on data
- Model training → ASGCNN: trains model
- ASGCNN → Graph layers: uses layers (evidence: `heaict/ml/mode.py`)
- Catalyst problem → Extended surface: evaluates surface (evidence: `heaict/cats/problem.py`)
- Extended surface → Dataset construction: builds graphs (evidence: `heaict/cats/surface.py`)
- Extended surface → Site identification: infers sites (evidence: `heaict/cats/surface.py`)
- Catalyst problem → HEA stability: evaluates stability (evidence: `heaict/cats/problem.py`)
- Catalyst problem → HEI site occupation: evaluates occupation (evidence: `heaict/cats/problem.py`)
- Catalyst problem → Optimization problem: extends problem (evidence: `heaict/cats/problem.py`)
- Researcher → Multiobjective search: runs search
- Multiobjective search → Optimization problem: optimizes problem
- Pareto discovery → Search buffer: uses buffer (evidence: `heaict/mobo/partor_discover.py`)
- Search buffer → Search utilities: uses utilities (evidence: `heaict/mobo/buffer.py`)
- Search utilities → GPR surrogates: uses surrogate (evidence: `heaict/mobo/utility.py`)
- Search utilities → Surrogate interface: uses interface (evidence: `heaict/mobo/utility.py`)
- GPR surrogates → Surrogate interface: implements interface (evidence: `heaict/ml/GPR_scikit.py`)
- Researcher → HEA stability: analyzes stability
- Researcher → HEI site occupation: analyzes occupation
