# ahmetensarcfd/yplus-studio architecture

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

- Interactive diagram: https://gitdiagram.com/ahmetensarcfd/yplus-studio
- Repository: https://github.com/ahmetensarcfd/yplus-studio

## Overview

yPlus Studio is an offline CFD setup desktop app: an engineer selects a ready-made scenario or enters flow conditions, then receives wall-resolution calculations and solver recommendations. The README describes linked and independent modes, engineering-property context, and PDF export. The Python host loads the single HTML application into WebView2, with an Edge fallback. The HTML implementation was not sampled, so its documented capabilities are represented as components sharing index.html; internal call relationships beyond those stated in the README are not inferred.

Main entry points: [`index.html`](https://github.com/ahmetensarcfd/yplus-studio/blob/main/index.html) (Flow inputs), [`app.py`](https://github.com/ahmetensarcfd/yplus-studio/blob/main/app.py) (Desktop host)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_desktop["Desktop shell"]
  node_host["Desktop host<br/>[app.py]"]
  node_browser["WebView2 / Edge"]
  node_appui["HTML application<br/>[index.html]"]
end

subgraph group_case["Case setup"]
  node_mode["Working modes<br/>[index.html]"]
  node_scenarios["Scenario catalog<br/>[index.html]"]
  node_inputs["Flow inputs<br/>[index.html]"]
end

subgraph group_analysis["CFD analysis"]
  node_properties["Fluid properties<br/>[index.html]"]
  node_wall["Wall resolution<br/>[index.html]"]
  node_layers["Inflation layers<br/>[index.html]"]
  node_dimensionless["Dimensionless context<br/>[index.html]"]
  node_model["Turbulence advisor<br/>[index.html]"]
  node_schemes["Scheme advisor<br/>[index.html]"]
  node_report["Summary report<br/>[index.html]"]
  node_pdf["PDF export<br/>[index.html]"]
end

node_engineer(("Engineer"))

node_engineer -->|"launches"| node_host
node_host -->|"renders in"| node_browser
node_host -->|"loads"| node_appui
node_engineer -->|"selects case"| node_scenarios
node_engineer -->|"enters flow"| node_inputs
node_scenarios -->|"fills inputs"| node_inputs
node_mode -->|"links or separates"| node_inputs
node_inputs -->|"calculates"| node_wall
node_inputs -->|"uses conditions"| node_properties
node_inputs -->|"evaluates"| node_dimensionless
node_inputs -->|"designs"| node_layers
node_inputs -->|"informs"| node_model
node_inputs -->|"informs"| node_schemes
node_wall -->|"summarized in"| node_report
node_model -->|"summarized in"| node_report
node_schemes -->|"summarized in"| node_report
node_report -->|"exports as"| node_pdf

click node_host "https://github.com/ahmetensarcfd/yplus-studio/blob/main/app.py"
click node_appui "https://github.com/ahmetensarcfd/yplus-studio/blob/main/index.html"
click node_mode "https://github.com/ahmetensarcfd/yplus-studio/blob/main/index.html"
click node_scenarios "https://github.com/ahmetensarcfd/yplus-studio/blob/main/index.html"
click node_inputs "https://github.com/ahmetensarcfd/yplus-studio/blob/main/index.html"
click node_properties "https://github.com/ahmetensarcfd/yplus-studio/blob/main/index.html"
click node_wall "https://github.com/ahmetensarcfd/yplus-studio/blob/main/index.html"
click node_layers "https://github.com/ahmetensarcfd/yplus-studio/blob/main/index.html"
click node_dimensionless "https://github.com/ahmetensarcfd/yplus-studio/blob/main/index.html"
click node_model "https://github.com/ahmetensarcfd/yplus-studio/blob/main/index.html"
click node_schemes "https://github.com/ahmetensarcfd/yplus-studio/blob/main/index.html"
click node_report "https://github.com/ahmetensarcfd/yplus-studio/blob/main/index.html"
click node_pdf "https://github.com/ahmetensarcfd/yplus-studio/blob/main/index.html"

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_host,node_browser,node_appui toneBlue
class node_mode,node_scenarios,node_inputs toneAmber
class node_properties,node_wall,node_layers,node_dimensionless,node_model,node_schemes,node_report,node_pdf toneMint
class node_engineer toneIndigo
```

## Components

### Desktop shell

- [Desktop host](https://github.com/ahmetensarcfd/yplus-studio/blob/main/app.py): `app.py`
- **WebView2 / Edge**
- [HTML application](https://github.com/ahmetensarcfd/yplus-studio/blob/main/index.html): `index.html`

### Case setup

- [Working modes](https://github.com/ahmetensarcfd/yplus-studio/blob/main/index.html): `index.html`
- [Scenario catalog](https://github.com/ahmetensarcfd/yplus-studio/blob/main/index.html): `index.html`
- [Flow inputs](https://github.com/ahmetensarcfd/yplus-studio/blob/main/index.html): `index.html`

### CFD analysis

- [Fluid properties](https://github.com/ahmetensarcfd/yplus-studio/blob/main/index.html): `index.html`
- [Wall resolution](https://github.com/ahmetensarcfd/yplus-studio/blob/main/index.html): `index.html`
- [Inflation layers](https://github.com/ahmetensarcfd/yplus-studio/blob/main/index.html): `index.html`
- [Dimensionless context](https://github.com/ahmetensarcfd/yplus-studio/blob/main/index.html): `index.html`
- [Turbulence advisor](https://github.com/ahmetensarcfd/yplus-studio/blob/main/index.html): `index.html`
- [Scheme advisor](https://github.com/ahmetensarcfd/yplus-studio/blob/main/index.html): `index.html`
- [Summary report](https://github.com/ahmetensarcfd/yplus-studio/blob/main/index.html): `index.html`
- [PDF export](https://github.com/ahmetensarcfd/yplus-studio/blob/main/index.html): `index.html`

### Other components

- **Engineer**

## Connections

- Engineer → Desktop host: launches (evidence: `README.md`)
- Desktop host → WebView2 / Edge: renders in (evidence: `app.py`)
- Desktop host → HTML application: loads (evidence: `app.py`)
- Engineer → Scenario catalog: selects case (evidence: `README.md`)
- Engineer → Flow inputs: enters flow (evidence: `README.md`)
- Scenario catalog → Flow inputs: fills inputs (evidence: `README.md`)
- Working modes → Flow inputs: links or separates (evidence: `README.md`)
- Flow inputs → Wall resolution: calculates (evidence: `README.md`)
- Flow inputs → Fluid properties: uses conditions (evidence: `README.md`)
- Flow inputs → Dimensionless context: evaluates (evidence: `README.md`)
- Flow inputs → Inflation layers: designs (evidence: `README.md`)
- Flow inputs → Turbulence advisor: informs (evidence: `README.md`)
- Flow inputs → Scheme advisor: informs (evidence: `README.md`)
- Wall resolution → Summary report: summarized in (evidence: `README.md`)
- Turbulence advisor → Summary report: summarized in (evidence: `README.md`)
- Scheme advisor → Summary report: summarized in (evidence: `README.md`)
- Summary report → PDF export: exports as (evidence: `README.md`)
