# ethanryan671-a11y/thermalflow-studio architecture

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

- Interactive diagram: https://gitdiagram.com/ethanryan671-a11y/thermalflow-studio
- Repository: https://github.com/ethanryan671-a11y/thermalflow-studio

## Overview

This is a multi-page Streamlit engineering suite. Users enter through the home page, choose pipe-flow, heat-transfer, or rock/fluid analysis, then receive calculations, visualizations, or downloadable data. The engineering page delegates pipe and heat calculations to shared classes; the dashboard performs CSV analysis within its page. The README documents the major capabilities. Evidence is limited to the provided excerpts and README; no unsampled source behavior is assumed.

Main entry points: [`pages/1_Pipe_Flow_Analyser.py`](https://github.com/ethanryan671-a11y/thermalflow-studio/blob/main/pages/1_Pipe_Flow_Analyser.py) (Pipe flow page), [`app.py`](https://github.com/ethanryan671-a11y/thermalflow-studio/blob/main/app.py) (Suite home), [`engineering.py`](https://github.com/ethanryan671-a11y/thermalflow-studio/blob/main/engineering.py) (Heat models), [`pages/3_Rock_Fluid_Dashboard.py`](https://github.com/ethanryan671-a11y/thermalflow-studio/blob/main/pages/3_Rock_Fluid_Dashboard.py) (Core-data CSV)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["App navigation"]
  node_home["Suite home<br/>[app.py]"]
end

subgraph group_pipe["Pipe hydraulics"]
  node_pipe_page["Pipe flow page"]
  node_pipe_results["Flow results"]
  node_flow_curve["Pressure-flow curve"]
  node_pipe_export["Curve CSV export"]
end

subgraph group_heat["Heat transfer"]
  node_heat_page["Heat calculator"]
  node_conduction["Wall conduction"]
  node_cooling["Cooling time"]
  node_cooling_curve["Cooling curve"]
end

subgraph group_dashboard["Core data dashboard"]
  node_rock_page["Rock-fluid dashboard"]
  node_csv_input["Core-data CSV"]
  node_data_summary["Summary statistics"]
  node_porosity_filter["Porosity filter"]
  node_rock_charts["Rock data charts"]
  node_filtered_export["Filtered CSV export"]
end

subgraph group_models["Engineering models"]
  node_fluid["Fluid properties<br/>[engineering.py]"]
  node_pipe_model["Pipe hydraulics<br/>[engineering.py]"]
  node_heat_model["Heat models<br/>[engineering.py]"]
end

node_user(("Engineer"))

node_user -->|"opens"| node_home
node_home -->|"links to"| node_pipe_page
node_home -->|"links to"| node_heat_page
node_home -->|"links to"| node_rock_page
node_user -->|"enters inputs"| node_pipe_page
node_pipe_page -->|"creates"| node_fluid
node_pipe_page -->|"calculates with"| node_pipe_model
node_fluid -->|"supplies properties"| node_pipe_model
node_pipe_page -->|"renders"| node_pipe_results
node_pipe_page -->|"computes"| node_flow_curve
node_pipe_model -->|"provides summaries"| node_flow_curve
node_flow_curve -->|"exports"| node_pipe_export
node_user -->|"enters inputs"| node_heat_page
node_heat_page -->|"calls"| node_heat_model
node_heat_model -->|"returns heat flow"| node_conduction
node_heat_model -->|"returns duration"| node_cooling
node_heat_model -->|"generates values"| node_cooling_curve
node_user -->|"uploads CSV"| node_rock_page
node_rock_page -->|"reads"| node_csv_input
node_csv_input -->|"summarizes"| node_data_summary
node_csv_input -->|"provides rows"| node_porosity_filter
node_porosity_filter -->|"filters data for"| node_rock_charts
node_porosity_filter -->|"exports rows to"| node_filtered_export

click node_home "https://github.com/ethanryan671-a11y/thermalflow-studio/blob/main/app.py"
click node_pipe_page "https://github.com/ethanryan671-a11y/thermalflow-studio/blob/main/pages/1_Pipe_Flow_Analyser.py"
click node_fluid "https://github.com/ethanryan671-a11y/thermalflow-studio/blob/main/engineering.py"
click node_pipe_model "https://github.com/ethanryan671-a11y/thermalflow-studio/blob/main/engineering.py"
click node_pipe_results "https://github.com/ethanryan671-a11y/thermalflow-studio/blob/main/pages/1_Pipe_Flow_Analyser.py"
click node_flow_curve "https://github.com/ethanryan671-a11y/thermalflow-studio/blob/main/pages/1_Pipe_Flow_Analyser.py"
click node_pipe_export "https://github.com/ethanryan671-a11y/thermalflow-studio/blob/main/pages/1_Pipe_Flow_Analyser.py"
click node_heat_page "https://github.com/ethanryan671-a11y/thermalflow-studio/blob/main/pages/2_Heat_Transfer_Calculator.py"
click node_heat_model "https://github.com/ethanryan671-a11y/thermalflow-studio/blob/main/engineering.py"
click node_conduction "https://github.com/ethanryan671-a11y/thermalflow-studio/blob/main/pages/2_Heat_Transfer_Calculator.py"
click node_cooling "https://github.com/ethanryan671-a11y/thermalflow-studio/blob/main/pages/2_Heat_Transfer_Calculator.py"
click node_cooling_curve "https://github.com/ethanryan671-a11y/thermalflow-studio/blob/main/pages/2_Heat_Transfer_Calculator.py"
click node_rock_page "https://github.com/ethanryan671-a11y/thermalflow-studio/blob/main/pages/3_Rock_Fluid_Dashboard.py"
click node_csv_input "https://github.com/ethanryan671-a11y/thermalflow-studio/blob/main/pages/3_Rock_Fluid_Dashboard.py"
click node_data_summary "https://github.com/ethanryan671-a11y/thermalflow-studio/blob/main/pages/3_Rock_Fluid_Dashboard.py"
click node_porosity_filter "https://github.com/ethanryan671-a11y/thermalflow-studio/blob/main/pages/3_Rock_Fluid_Dashboard.py"
click node_rock_charts "https://github.com/ethanryan671-a11y/thermalflow-studio/blob/main/pages/3_Rock_Fluid_Dashboard.py"
click node_filtered_export "https://github.com/ethanryan671-a11y/thermalflow-studio/blob/main/pages/3_Rock_Fluid_Dashboard.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_home toneBlue
class node_pipe_page,node_pipe_results,node_flow_curve,node_pipe_export toneAmber
class node_heat_page,node_conduction,node_cooling,node_cooling_curve toneMint
class node_rock_page,node_csv_input,node_data_summary,node_porosity_filter,node_rock_charts,node_filtered_export toneRose
class node_fluid,node_pipe_model,node_heat_model,node_user toneIndigo
```

## Components

### App navigation

- [Suite home](https://github.com/ethanryan671-a11y/thermalflow-studio/blob/main/app.py): `app.py`

### Pipe hydraulics

- [Pipe flow page](https://github.com/ethanryan671-a11y/thermalflow-studio/blob/main/pages/1_Pipe_Flow_Analyser.py): `pages/1_Pipe_Flow_Analyser.py`
- [Flow results](https://github.com/ethanryan671-a11y/thermalflow-studio/blob/main/pages/1_Pipe_Flow_Analyser.py): `pages/1_Pipe_Flow_Analyser.py`
- [Pressure-flow curve](https://github.com/ethanryan671-a11y/thermalflow-studio/blob/main/pages/1_Pipe_Flow_Analyser.py): `pages/1_Pipe_Flow_Analyser.py`
- [Curve CSV export](https://github.com/ethanryan671-a11y/thermalflow-studio/blob/main/pages/1_Pipe_Flow_Analyser.py): `pages/1_Pipe_Flow_Analyser.py`

### Heat transfer

- [Heat calculator](https://github.com/ethanryan671-a11y/thermalflow-studio/blob/main/pages/2_Heat_Transfer_Calculator.py): `pages/2_Heat_Transfer_Calculator.py`
- [Wall conduction](https://github.com/ethanryan671-a11y/thermalflow-studio/blob/main/pages/2_Heat_Transfer_Calculator.py): `pages/2_Heat_Transfer_Calculator.py`
- [Cooling time](https://github.com/ethanryan671-a11y/thermalflow-studio/blob/main/pages/2_Heat_Transfer_Calculator.py): `pages/2_Heat_Transfer_Calculator.py`
- [Cooling curve](https://github.com/ethanryan671-a11y/thermalflow-studio/blob/main/pages/2_Heat_Transfer_Calculator.py): `pages/2_Heat_Transfer_Calculator.py`

### Core data dashboard

- [Rock-fluid dashboard](https://github.com/ethanryan671-a11y/thermalflow-studio/blob/main/pages/3_Rock_Fluid_Dashboard.py): `pages/3_Rock_Fluid_Dashboard.py`
- [Core-data CSV](https://github.com/ethanryan671-a11y/thermalflow-studio/blob/main/pages/3_Rock_Fluid_Dashboard.py): `pages/3_Rock_Fluid_Dashboard.py`
- [Summary statistics](https://github.com/ethanryan671-a11y/thermalflow-studio/blob/main/pages/3_Rock_Fluid_Dashboard.py): `pages/3_Rock_Fluid_Dashboard.py`
- [Porosity filter](https://github.com/ethanryan671-a11y/thermalflow-studio/blob/main/pages/3_Rock_Fluid_Dashboard.py): `pages/3_Rock_Fluid_Dashboard.py`
- [Rock data charts](https://github.com/ethanryan671-a11y/thermalflow-studio/blob/main/pages/3_Rock_Fluid_Dashboard.py): `pages/3_Rock_Fluid_Dashboard.py`
- [Filtered CSV export](https://github.com/ethanryan671-a11y/thermalflow-studio/blob/main/pages/3_Rock_Fluid_Dashboard.py): `pages/3_Rock_Fluid_Dashboard.py`

### Engineering models

- [Fluid properties](https://github.com/ethanryan671-a11y/thermalflow-studio/blob/main/engineering.py): `engineering.py`
- [Pipe hydraulics](https://github.com/ethanryan671-a11y/thermalflow-studio/blob/main/engineering.py): `engineering.py`
- [Heat models](https://github.com/ethanryan671-a11y/thermalflow-studio/blob/main/engineering.py): `engineering.py`

### Other components

- **Engineer**

## Connections

- Engineer → Suite home: opens (evidence: `app.py`)
- Suite home → Pipe flow page: links to (evidence: `app.py`)
- Suite home → Heat calculator: links to (evidence: `app.py`)
- Suite home → Rock-fluid dashboard: links to (evidence: `app.py`)
- Engineer → Pipe flow page: enters inputs (evidence: `pages/1_Pipe_Flow_Analyser.py`)
- Pipe flow page → Fluid properties: creates (evidence: `pages/1_Pipe_Flow_Analyser.py`)
- Pipe flow page → Pipe hydraulics: calculates with (evidence: `pages/1_Pipe_Flow_Analyser.py`)
- Fluid properties → Pipe hydraulics: supplies properties (evidence: `engineering.py`)
- Pipe flow page → Flow results: renders (evidence: `pages/1_Pipe_Flow_Analyser.py`)
- Pipe flow page → Pressure-flow curve: computes (evidence: `pages/1_Pipe_Flow_Analyser.py`)
- Pipe hydraulics → Pressure-flow curve: provides summaries (evidence: `pages/1_Pipe_Flow_Analyser.py`)
- Pressure-flow curve → Curve CSV export: exports (evidence: `pages/1_Pipe_Flow_Analyser.py`)
- Engineer → Heat calculator: enters inputs (evidence: `pages/2_Heat_Transfer_Calculator.py`)
- Heat calculator → Heat models: calls (evidence: `pages/2_Heat_Transfer_Calculator.py`)
- Heat models → Wall conduction: returns heat flow (evidence: `pages/2_Heat_Transfer_Calculator.py`)
- Heat models → Cooling time: returns duration (evidence: `pages/2_Heat_Transfer_Calculator.py`)
- Heat models → Cooling curve: generates values (evidence: `pages/2_Heat_Transfer_Calculator.py`)
- Engineer → Rock-fluid dashboard: uploads CSV (evidence: `pages/3_Rock_Fluid_Dashboard.py`)
- Rock-fluid dashboard → Core-data CSV: reads (evidence: `pages/3_Rock_Fluid_Dashboard.py`)
- Core-data CSV → Summary statistics: summarizes (evidence: `pages/3_Rock_Fluid_Dashboard.py`)
- Core-data CSV → Porosity filter: provides rows (evidence: `pages/3_Rock_Fluid_Dashboard.py`)
- Porosity filter → Rock data charts: filters data for (evidence: `pages/3_Rock_Fluid_Dashboard.py`)
- Porosity filter → Filtered CSV export: exports rows to (evidence: `pages/3_Rock_Fluid_Dashboard.py`)
