# gdtk-uq/gdtk architecture

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

- Interactive diagram: https://gitdiagram.com/gdtk-uq/gdtk
- Repository: https://github.com/gdtk-uq/gdtk

## Overview

GDTk is a collection of gas-dynamics simulation and analysis tools, not one end-to-end application. Its user-facing work ranges from preparing flow simulations and estimating facility conditions to computing gas properties and analyzing results. The graph highlights the Python workflows visible in the supplied tree and the Eilmer capabilities documented in the README. Several major solver implementations are not represented by sampled source paths, so the graph does not infer their internal control flow; edges reflect documented workflows or indexed source references.

Main entry points: [`src/chicken/chkn_prep.py`](https://github.com/gdtk-uq/gdtk/blob/master/src/chicken/chkn_prep.py) (Chicken preparation), [`src/puffin/lorikeet_prep.py`](https://github.com/gdtk-uq/gdtk/blob/master/src/puffin/lorikeet_prep.py) (Lorikeet preparation), [`src/lib/gdtk/gas.py`](https://github.com/gdtk-uq/gdtk/blob/master/src/lib/gdtk/gas.py) (Gas model API), [`src/pitot3/pitot3_utils/pitot3_classes.py`](https://github.com/gdtk-uq/gdtk/blob/master/src/pitot3/pitot3_utils/pitot3_classes.py) (Pitot condition models)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_simulation["Simulation preparation"]
  node_eilmer["Eilmer workflow<br/>[e4batch.py]"]
  node_chicken["Chicken preparation<br/>[chkn_prep.py]"]
  node_lorikeet["Lorikeet preparation<br/>[lorikeet_prep.py]"]
  node_l1dprep["L1d preparation<br/>[l1d4-prep.py]"]
end

subgraph group_gas["Gas and geometry"]
  node_gasmodel["Gas model API<br/>[gas.py]"]
  node_vector["3D vectors<br/>[vector3.py]"]
  node_structuredgrid["Structured grids<br/>[sgrid.py]"]
  node_volume["Volume geometry<br/>[volume.py]"]
  node_roberts["Grid clustering<br/>[roberts.py]"]
end

subgraph group_facility["Facility calculations"]
  node_pitot["Pitot workflow<br/>[pitot3.py]"]
  node_pitotclasses["Pitot condition models<br/>[pitot3_classes.py]"]
  node_conditionbuilder["Condition builder"]
  node_nenzf["NENZF1d estimates<br/>[nenzf1d.py]"]
  node_idealflow["Ideal-gas flow<br/>[ideal_gas_flow.py]"]
  node_zerosolvers["Root solvers<br/>[zero_solvers.py]"]
end

subgraph group_analysis["Flow analysis"]
  node_onedval["One-dimensional analysis<br/>[onedval.py]"]
  node_propavg["Flow property averaging<br/>[prop_avg.py]"]
  node_field["Flow field tools<br/>[field.py]"]
end

node_user(("Engineer"))

node_user -->|"runs workflow"| node_eilmer
node_user -->|"defines simulation"| node_chicken
node_user -->|"defines simulation"| node_lorikeet
node_user -->|"estimates conditions"| node_pitot
node_chicken -->|"uses geometry"| node_vector
node_chicken -->|"uses geometry"| node_volume
node_chicken -->|"uses grids"| node_structuredgrid
node_chicken -->|"uses clustering"| node_roberts
node_lorikeet -->|"uses geometry"| node_vector
node_lorikeet -->|"uses grids"| node_structuredgrid
node_lorikeet -->|"uses clustering"| node_roberts
node_lorikeet -->|"uses gas API"| node_gasmodel
node_l1dprep -->|"uses gas API"| node_gasmodel
node_l1dprep -->|"uses clustering"| node_roberts
node_pitot -->|"uses condition models"| node_pitotclasses
node_pitotclasses -->|"uses gas API"| node_gasmodel
node_pitotclasses -->|"uses flow relations"| node_idealflow
node_pitotclasses -->|"solves conditions"| node_zerosolvers
node_idealflow -->|"solves relations"| node_zerosolvers
node_onedval -->|"uses gas API"| node_gasmodel
node_onedval -->|"uses averaging"| node_propavg
node_propavg -->|"uses gas API"| node_gasmodel
node_propavg -->|"uses vectors"| node_vector
node_propavg -->|"solves averages"| node_zerosolvers

click node_eilmer "https://github.com/gdtk-uq/gdtk/blob/master/src/eilmer/e4batch.py"
click node_chicken "https://github.com/gdtk-uq/gdtk/blob/master/src/chicken/chkn_prep.py"
click node_lorikeet "https://github.com/gdtk-uq/gdtk/blob/master/src/puffin/lorikeet_prep.py"
click node_l1dprep "https://github.com/gdtk-uq/gdtk/blob/master/src/l1d/l1d4-prep.py"
click node_gasmodel "https://github.com/gdtk-uq/gdtk/blob/master/src/lib/gdtk/gas.py"
click node_vector "https://github.com/gdtk-uq/gdtk/blob/master/src/lib/gdtk/geom/vector3.py"
click node_structuredgrid "https://github.com/gdtk-uq/gdtk/blob/master/src/lib/gdtk/geom/sgrid.py"
click node_volume "https://github.com/gdtk-uq/gdtk/blob/master/src/lib/gdtk/geom/volume.py"
click node_roberts "https://github.com/gdtk-uq/gdtk/blob/master/src/lib/gdtk/numeric/roberts.py"
click node_pitot "https://github.com/gdtk-uq/gdtk/blob/master/src/pitot3/pitot3.py"
click node_pitotclasses "https://github.com/gdtk-uq/gdtk/blob/master/src/pitot3/pitot3_utils/pitot3_classes.py"
click node_conditionbuilder "https://github.com/gdtk-uq/gdtk/blob/master/src/pitot3/pitot3_condition_builder.py"
click node_nenzf "https://github.com/gdtk-uq/gdtk/blob/master/src/nenzf1d/nenzf1d.py"
click node_idealflow "https://github.com/gdtk-uq/gdtk/blob/master/src/lib/gdtk/ideal_gas_flow.py"
click node_zerosolvers "https://github.com/gdtk-uq/gdtk/blob/master/src/lib/gdtk/numeric/zero_solvers.py"
click node_onedval "https://github.com/gdtk-uq/gdtk/blob/master/src/onedval/onedval.py"
click node_propavg "https://github.com/gdtk-uq/gdtk/blob/master/src/onedval/prop_avg.py"
click node_field "https://github.com/gdtk-uq/gdtk/blob/master/src/lib/gdtk/flow/field.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_eilmer,node_chicken,node_lorikeet,node_l1dprep toneBlue
class node_gasmodel,node_vector,node_structuredgrid,node_volume,node_roberts toneAmber
class node_pitot,node_pitotclasses,node_conditionbuilder,node_nenzf,node_idealflow,node_zerosolvers toneMint
class node_onedval,node_propavg,node_field toneRose
class node_user toneIndigo
```

## Components

### Simulation preparation

- [Eilmer workflow](https://github.com/gdtk-uq/gdtk/blob/master/src/eilmer/e4batch.py): `src/eilmer/e4batch.py`
- [Chicken preparation](https://github.com/gdtk-uq/gdtk/blob/master/src/chicken/chkn_prep.py): `src/chicken/chkn_prep.py`
- [Lorikeet preparation](https://github.com/gdtk-uq/gdtk/blob/master/src/puffin/lorikeet_prep.py): `src/puffin/lorikeet_prep.py`
- [L1d preparation](https://github.com/gdtk-uq/gdtk/blob/master/src/l1d/l1d4-prep.py): `src/l1d/l1d4-prep.py`

### Gas and geometry

- [Gas model API](https://github.com/gdtk-uq/gdtk/blob/master/src/lib/gdtk/gas.py): `src/lib/gdtk/gas.py`
- [3D vectors](https://github.com/gdtk-uq/gdtk/blob/master/src/lib/gdtk/geom/vector3.py): `src/lib/gdtk/geom/vector3.py`
- [Structured grids](https://github.com/gdtk-uq/gdtk/blob/master/src/lib/gdtk/geom/sgrid.py): `src/lib/gdtk/geom/sgrid.py`
- [Volume geometry](https://github.com/gdtk-uq/gdtk/blob/master/src/lib/gdtk/geom/volume.py): `src/lib/gdtk/geom/volume.py`
- [Grid clustering](https://github.com/gdtk-uq/gdtk/blob/master/src/lib/gdtk/numeric/roberts.py): `src/lib/gdtk/numeric/roberts.py`

### Facility calculations

- [Pitot workflow](https://github.com/gdtk-uq/gdtk/blob/master/src/pitot3/pitot3.py): `src/pitot3/pitot3.py`
- [Pitot condition models](https://github.com/gdtk-uq/gdtk/blob/master/src/pitot3/pitot3_utils/pitot3_classes.py): `src/pitot3/pitot3_utils/pitot3_classes.py`
- [Condition builder](https://github.com/gdtk-uq/gdtk/blob/master/src/pitot3/pitot3_condition_builder.py): `src/pitot3/pitot3_condition_builder.py`
- [NENZF1d estimates](https://github.com/gdtk-uq/gdtk/blob/master/src/nenzf1d/nenzf1d.py): `src/nenzf1d/nenzf1d.py`
- [Ideal-gas flow](https://github.com/gdtk-uq/gdtk/blob/master/src/lib/gdtk/ideal_gas_flow.py): `src/lib/gdtk/ideal_gas_flow.py`
- [Root solvers](https://github.com/gdtk-uq/gdtk/blob/master/src/lib/gdtk/numeric/zero_solvers.py): `src/lib/gdtk/numeric/zero_solvers.py`

### Flow analysis

- [One-dimensional analysis](https://github.com/gdtk-uq/gdtk/blob/master/src/onedval/onedval.py): `src/onedval/onedval.py`
- [Flow property averaging](https://github.com/gdtk-uq/gdtk/blob/master/src/onedval/prop_avg.py): `src/onedval/prop_avg.py`
- [Flow field tools](https://github.com/gdtk-uq/gdtk/blob/master/src/lib/gdtk/flow/field.py): `src/lib/gdtk/flow/field.py`

### Other components

- **Engineer**

## Connections

- Engineer → Eilmer workflow: runs workflow
- Engineer → Chicken preparation: defines simulation (evidence: `src/chicken/chkn_prep.py`)
- Engineer → Lorikeet preparation: defines simulation (evidence: `src/puffin/lorikeet_prep.py`)
- Engineer → Pitot workflow: estimates conditions (evidence: `src/pitot3/pitot3.py`)
- Chicken preparation → 3D vectors: uses geometry (evidence: `src/chicken/chkn_prep.py`)
- Chicken preparation → Volume geometry: uses geometry (evidence: `src/chicken/chkn_prep.py`)
- Chicken preparation → Structured grids: uses grids (evidence: `src/chicken/chkn_prep.py`)
- Chicken preparation → Grid clustering: uses clustering (evidence: `src/chicken/chkn_prep.py`)
- Lorikeet preparation → 3D vectors: uses geometry (evidence: `src/puffin/lorikeet_prep.py`)
- Lorikeet preparation → Structured grids: uses grids (evidence: `src/puffin/lorikeet_prep.py`)
- Lorikeet preparation → Grid clustering: uses clustering (evidence: `src/puffin/lorikeet_prep.py`)
- Lorikeet preparation → Gas model API: uses gas API (evidence: `src/puffin/lorikeet_prep.py`)
- L1d preparation → Gas model API: uses gas API (evidence: `src/l1d/l1d4-prep.py`)
- L1d preparation → Grid clustering: uses clustering (evidence: `src/l1d/l1d4-prep.py`)
- Pitot workflow → Pitot condition models: uses condition models (evidence: `src/pitot3/pitot3.py`)
- Pitot condition models → Gas model API: uses gas API (evidence: `src/pitot3/pitot3_utils/pitot3_classes.py`)
- Pitot condition models → Ideal-gas flow: uses flow relations (evidence: `src/pitot3/pitot3_utils/pitot3_classes.py`)
- Pitot condition models → Root solvers: solves conditions (evidence: `src/pitot3/pitot3_utils/pitot3_classes.py`)
- Ideal-gas flow → Root solvers: solves relations (evidence: `src/lib/gdtk/ideal_gas_flow.py`)
- One-dimensional analysis → Gas model API: uses gas API (evidence: `src/onedval/onedval.py`)
- One-dimensional analysis → Flow property averaging: uses averaging (evidence: `src/onedval/onedval.py`)
- Flow property averaging → Gas model API: uses gas API (evidence: `src/onedval/prop_avg.py`)
- Flow property averaging → 3D vectors: uses vectors (evidence: `src/onedval/prop_avg.py`)
- Flow property averaging → Root solvers: solves averages (evidence: `src/onedval/prop_avg.py`)
