# kostergroup/simsalabim architecture

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

- Interactive diagram: https://gitdiagram.com/kostergroup/simsalabim
- Repository: https://github.com/kostergroup/simsalabim

## Overview

SIMsalabim is a 1D semiconductor-device drift-diffusion simulator with steady-state (SimSS) and transient (ZimT) modes. Users run either program with parameter files; ZimT additionally uses a time-voltage-generation input. The README documents shared routines and the physical effects modeled, but no source excerpts were provided, so internal call paths and specific unit responsibilities cannot be verified. The graph therefore focuses on documented capabilities and entry points.

Main entry points: [`ZimT/zimt.pas`](https://github.com/kostergroup/simsalabim/blob/master/ZimT/zimt.pas) (Transient), [`SimSS/simss.pas`](https://github.com/kostergroup/simsalabim/blob/master/SimSS/simss.pas) (Steady-state), [`SimSS/simulation_setup.txt`](https://github.com/kostergroup/simsalabim/blob/master/SimSS/simulation_setup.txt) (Simulation parameters), [`ZimT/tVG.txt`](https://github.com/kostergroup/simsalabim/blob/master/ZimT/tVG.txt) (Time-voltage-generation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_simulators["Simulation programs"]
  node_simss["Steady-state<br/>[simss.pas]"]
  node_zimt["Transient<br/>[zimt.pas]"]
end

subgraph group_physics["Device physics"]
  node_shared["Shared routines"]
  node_generation["Generation effects"]
  node_recombination["Recombination effects"]
  node_trapping["Carrier trapping"]
  node_charged["Ions and dopants"]
  node_field["Self-consistent field"]
end

node_user(("User"))
node_setup["Simulation parameters"]
node_tvg["Time-voltage-generation<br/>[tVG.txt]"]

node_user -->|"runs"| node_simss
node_user -->|"runs"| node_zimt
node_user -->|"provides"| node_setup
node_setup -->|"configures"| node_simss
node_setup -->|"configures"| node_zimt
node_user -->|"provides"| node_tvg
node_tvg -->|"specifies steps"| node_zimt
node_simss -->|"shares routines"| node_shared
node_zimt -->|"shares routines"| node_shared
node_simss -->|"models"| node_generation
node_simss -->|"models"| node_recombination
node_simss -->|"models"| node_trapping
node_simss -->|"models"| node_charged
node_simss -->|"solves"| node_field
node_zimt -->|"models"| node_generation
node_zimt -->|"models"| node_recombination
node_zimt -->|"models"| node_trapping
node_zimt -->|"models"| node_charged
node_zimt -->|"solves"| node_field

click node_simss "https://github.com/kostergroup/simsalabim/blob/master/SimSS/simss.pas"
click node_zimt "https://github.com/kostergroup/simsalabim/blob/master/ZimT/zimt.pas"
click node_setup "https://github.com/kostergroup/simsalabim/blob/master/SimSS/simulation_setup.txt"
click node_tvg "https://github.com/kostergroup/simsalabim/blob/master/ZimT/tVG.txt"
click node_shared "https://github.com/kostergroup/simsalabim/tree/master/Units"
click node_generation "https://github.com/kostergroup/simsalabim/tree/master/Units"
click node_recombination "https://github.com/kostergroup/simsalabim/tree/master/Units"
click node_trapping "https://github.com/kostergroup/simsalabim/tree/master/Units"
click node_charged "https://github.com/kostergroup/simsalabim/tree/master/Units"
click node_field "https://github.com/kostergroup/simsalabim/tree/master/Units"

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_simss,node_zimt,node_user toneBlue
class node_shared,node_generation,node_recombination,node_trapping,node_charged,node_field toneAmber
class node_setup,node_tvg toneTeal
```

## Components

### Simulation programs

- [Steady-state](https://github.com/kostergroup/simsalabim/blob/master/SimSS/simss.pas): `SimSS/simss.pas`
- [Transient](https://github.com/kostergroup/simsalabim/blob/master/ZimT/zimt.pas): `ZimT/zimt.pas`

### Device physics

- [Shared routines](https://github.com/kostergroup/simsalabim/tree/master/Units): `Units`
- [Generation effects](https://github.com/kostergroup/simsalabim/tree/master/Units): `Units`
- [Recombination effects](https://github.com/kostergroup/simsalabim/tree/master/Units): `Units`
- [Carrier trapping](https://github.com/kostergroup/simsalabim/tree/master/Units): `Units`
- [Ions and dopants](https://github.com/kostergroup/simsalabim/tree/master/Units): `Units`
- [Self-consistent field](https://github.com/kostergroup/simsalabim/tree/master/Units): `Units`

### Other components

- **User**
- [Simulation parameters](https://github.com/kostergroup/simsalabim/blob/master/SimSS/simulation_setup.txt): `SimSS/simulation_setup.txt`
- [Time-voltage-generation](https://github.com/kostergroup/simsalabim/blob/master/ZimT/tVG.txt): `ZimT/tVG.txt`

## Connections

- User → Steady-state: runs (evidence: `README.md`)
- User → Transient: runs (evidence: `README.md`)
- User → Simulation parameters: provides (evidence: `README.md`)
- Simulation parameters → Steady-state: configures (evidence: `README.md`)
- Simulation parameters → Transient: configures (evidence: `README.md`)
- User → Time-voltage-generation: provides (evidence: `README.md`)
- Time-voltage-generation → Transient: specifies steps (evidence: `README.md`)
- Steady-state → Shared routines: shares routines (evidence: `README.md`)
- Transient → Shared routines: shares routines (evidence: `README.md`)
- Steady-state → Generation effects: models (evidence: `README.md`)
- Steady-state → Recombination effects: models (evidence: `README.md`)
- Steady-state → Carrier trapping: models (evidence: `README.md`)
- Steady-state → Ions and dopants: models (evidence: `README.md`)
- Steady-state → Self-consistent field: solves (evidence: `README.md`)
- Transient → Generation effects: models (evidence: `README.md`)
- Transient → Recombination effects: models (evidence: `README.md`)
- Transient → Carrier trapping: models (evidence: `README.md`)
- Transient → Ions and dopants: models (evidence: `README.md`)
- Transient → Self-consistent field: solves (evidence: `README.md`)
