# ianminatani/1d-pressure-drop-solver architecture

> Architecture diagram of the GitHub repository ianminatani/1d-pressure-drop-solver, 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/ianminatani/1d-pressure-drop-solver
- Repository: https://github.com/ianminatani/1d-pressure-drop-solver

## Overview

This repository is a small collection of Python pressure-drop and flow calculators, not a unified application. The main iterative workflow computes mass flow from fluid and pipe state, calling a pressure-drop coefficient function during Reynolds-number iteration. A separate Crane 410 script calculates pressure drop directly from hardcoded fluid, pipe, and fitting values. The README provides only the project title, so broader capabilities and user interfaces are not documented; the suite file is an unimplemented placeholder.

Main entry points: [`MPDgetMassFlow.py`](https://github.com/ianminatani/1d-pressure-drop-solver/blob/main/MPDgetMassFlow.py) (Mass Flow Solver), [`Crane410PressureDrop.py`](https://github.com/ianminatani/1d-pressure-drop-solver/blob/main/Crane410PressureDrop.py) (Crane 410 Calculation), [`MPDgetPressureDropCoefficient.py`](https://github.com/ianminatani/1d-pressure-drop-solver/blob/main/MPDgetPressureDropCoefficient.py) (Drop Coefficients)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_iterative["Iterative Flow"]
  node_massflow["Mass Flow Solver<br/>[MPDgetMassFlow.py]"]
  node_coefficients["Drop Coefficients"]
  node_flowresult["Flow Results<br/>[MPDgetMassFlow.py]"]
end

subgraph group_crane["Crane Calculator"]
  node_cranecalc["Crane 410 Calculation"]
  node_dropresult["Pressure Drop"]
end

node_massflow -->|"requests coefficients"| node_coefficients
node_massflow -->|"returns flow"| node_flowresult
node_cranecalc -->|"prints pressure drop"| node_dropresult

click node_massflow "https://github.com/ianminatani/1d-pressure-drop-solver/blob/main/MPDgetMassFlow.py"
click node_coefficients "https://github.com/ianminatani/1d-pressure-drop-solver/blob/main/MPDgetPressureDropCoefficient.py"
click node_flowresult "https://github.com/ianminatani/1d-pressure-drop-solver/blob/main/MPDgetMassFlow.py"
click node_cranecalc "https://github.com/ianminatani/1d-pressure-drop-solver/blob/main/Crane410PressureDrop.py"
click node_dropresult "https://github.com/ianminatani/1d-pressure-drop-solver/blob/main/Crane410PressureDrop.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_massflow,node_coefficients,node_flowresult toneBlue
class node_cranecalc,node_dropresult toneAmber
```

## Components

### Iterative Flow

- [Mass Flow Solver](https://github.com/ianminatani/1d-pressure-drop-solver/blob/main/MPDgetMassFlow.py): `MPDgetMassFlow.py`
- [Drop Coefficients](https://github.com/ianminatani/1d-pressure-drop-solver/blob/main/MPDgetPressureDropCoefficient.py): `MPDgetPressureDropCoefficient.py`
- [Flow Results](https://github.com/ianminatani/1d-pressure-drop-solver/blob/main/MPDgetMassFlow.py): `MPDgetMassFlow.py`

### Crane Calculator

- [Crane 410 Calculation](https://github.com/ianminatani/1d-pressure-drop-solver/blob/main/Crane410PressureDrop.py): `Crane410PressureDrop.py`
- [Pressure Drop](https://github.com/ianminatani/1d-pressure-drop-solver/blob/main/Crane410PressureDrop.py): `Crane410PressureDrop.py`

## Connections

- Mass Flow Solver → Drop Coefficients: requests coefficients (evidence: `MPDgetMassFlow.py`)
- Mass Flow Solver → Flow Results: returns flow (evidence: `MPDgetMassFlow.py`)
- Crane 410 Calculation → Pressure Drop: prints pressure drop (evidence: `Crane410PressureDrop.py`)
