# mehulbansal1207/mcdermott-buckling architecture

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

- Interactive diagram: https://gitdiagram.com/mehulbansal1207/mcdermott-buckling
- Repository: https://github.com/mehulbansal1207/mcdermott-buckling

## Overview

Buckling Input Service is a FastAPI prototype that translates Excel buckling-engineering workflows into browser pages and APIs. Engineers enter or update Length, Geometry, Friction, Stiffness, PT, and Route data; generate SOOS; then run Update Input to assemble the summary, profiles, and charts. Stress-strain calculations and Geometry material interpolation support the engineering inputs. The graph reflects documented capabilities and sampled wiring; some browser-to-API interactions and unsampled service details are not shown as verified calls.

Main entry points: [`app/main.py`](https://github.com/mehulbansal1207/mcdermott-buckling/blob/main/app/main.py) (FastAPI app), [`app/schemas`](https://github.com/mehulbansal1207/mcdermott-buckling/tree/main/app/schemas) (API schemas), [`app/services/geometry.py`](https://github.com/mehulbansal1207/mcdermott-buckling/blob/main/app/services/geometry.py) (Geometry properties), [`app/services/soos.py`](https://github.com/mehulbansal1207/mcdermott-buckling/blob/main/app/services/soos.py) (SOOS generation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Application entry"]
  node_app["FastAPI app<br/>[main.py]"]
  node_length_ui["Length page<br/>[length.js]"]
  node_geometry_ui["Geometry page<br/>[geometry.js]"]
  node_friction_ui["Friction page<br/>[friction.js]"]
  node_stiffness_ui["Stiffness page<br/>[stiffness.js]"]
  node_pt_ui["PT page<br/>[pt.js]"]
  node_route_ui["Route page<br/>[route.js]"]
  node_soos_ui["SOOS page<br/>[soos.js]"]
  node_input_ui["Input page<br/>[input.js]"]
  node_stress_ui["Stress-strain page<br/>[stress_strain.js]"]
end

subgraph group_engineering["Engineering inputs"]
  node_length["Length mesh<br/>[length.py]"]
  node_geometry["Geometry properties<br/>[geometry.py]"]
  node_friction["Friction zones<br/>[friction.py]"]
  node_stiffness["Stiffness zones<br/>[stiffness.py]"]
  node_pt["PT profiles<br/>[pt.py]"]
  node_route["Route inputs<br/>[route.py]"]
  node_stress["Stress-strain<br/>[stress_strain.py]"]
end

subgraph group_analysis["Analysis workflows"]
  node_soos["SOOS generation<br/>[soos.py]"]
  node_input["Input summary<br/>[input.py]"]
end

subgraph group_contracts["Request contracts"]
  node_schemas["API schemas"]
end

node_engineer(("Engineer"))

node_engineer -.->|"uses pages"| node_app
node_app -->|"routes requests"| node_length
node_app -->|"routes requests"| node_geometry
node_app -->|"routes requests"| node_friction
node_app -->|"routes requests"| node_stiffness
node_app -->|"routes requests"| node_pt
node_app -->|"routes requests"| node_route
node_app -->|"routes requests"| node_soos
node_app -->|"routes requests"| node_input
node_app -->|"routes requests"| node_stress
node_length_ui -.->|"submits inputs"| node_app
node_geometry_ui -.->|"submits inputs"| node_app
node_friction_ui -.->|"submits inputs"| node_app
node_stiffness_ui -.->|"submits inputs"| node_app
node_pt_ui -.->|"submits inputs"| node_app
node_route_ui -.->|"submits inputs"| node_app
node_soos_ui -.->|"submits inputs"| node_app
node_input_ui -.->|"submits inputs"| node_app
node_stress_ui -.->|"submits inputs"| node_app
node_app -->|"validates requests"| node_schemas
node_length -->|"uses mesh models"| node_schemas
node_geometry -->|"uses geometry models"| node_schemas
node_friction -->|"uses friction models"| node_schemas
node_stiffness -->|"uses stiffness models"| node_schemas
node_soos -->|"uses SOOS models"| node_schemas
node_input -->|"uses input models"| node_schemas
node_stress -->|"uses curve models"| node_schemas
node_input_ui -.->|"requests update"| node_input
node_soos_ui -.->|"requests generation"| node_soos
node_geometry_ui -.->|"requests calculation"| node_geometry

click node_app "https://github.com/mehulbansal1207/mcdermott-buckling/blob/main/app/main.py"
click node_length "https://github.com/mehulbansal1207/mcdermott-buckling/blob/main/app/services/length.py"
click node_geometry "https://github.com/mehulbansal1207/mcdermott-buckling/blob/main/app/services/geometry.py"
click node_friction "https://github.com/mehulbansal1207/mcdermott-buckling/blob/main/app/services/friction.py"
click node_stiffness "https://github.com/mehulbansal1207/mcdermott-buckling/blob/main/app/services/stiffness.py"
click node_pt "https://github.com/mehulbansal1207/mcdermott-buckling/blob/main/app/services/pt.py"
click node_route "https://github.com/mehulbansal1207/mcdermott-buckling/blob/main/app/services/route.py"
click node_stress "https://github.com/mehulbansal1207/mcdermott-buckling/blob/main/app/services/stress_strain.py"
click node_soos "https://github.com/mehulbansal1207/mcdermott-buckling/blob/main/app/services/soos.py"
click node_input "https://github.com/mehulbansal1207/mcdermott-buckling/blob/main/app/services/input.py"
click node_schemas "https://github.com/mehulbansal1207/mcdermott-buckling/tree/main/app/schemas"
click node_length_ui "https://github.com/mehulbansal1207/mcdermott-buckling/blob/main/app/static/length.js"
click node_geometry_ui "https://github.com/mehulbansal1207/mcdermott-buckling/blob/main/app/static/geometry.js"
click node_friction_ui "https://github.com/mehulbansal1207/mcdermott-buckling/blob/main/app/static/friction.js"
click node_stiffness_ui "https://github.com/mehulbansal1207/mcdermott-buckling/blob/main/app/static/stiffness.js"
click node_pt_ui "https://github.com/mehulbansal1207/mcdermott-buckling/blob/main/app/static/pt.js"
click node_route_ui "https://github.com/mehulbansal1207/mcdermott-buckling/blob/main/app/static/route.js"
click node_soos_ui "https://github.com/mehulbansal1207/mcdermott-buckling/blob/main/app/static/soos.js"
click node_input_ui "https://github.com/mehulbansal1207/mcdermott-buckling/blob/main/app/static/input.js"
click node_stress_ui "https://github.com/mehulbansal1207/mcdermott-buckling/blob/main/app/static/stress_strain.js"

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_app,node_length_ui,node_geometry_ui,node_friction_ui,node_stiffness_ui,node_pt_ui,node_route_ui,node_soos_ui,node_input_ui,node_stress_ui toneBlue
class node_length,node_geometry,node_friction,node_stiffness,node_pt,node_route,node_stress toneAmber
class node_soos,node_input toneMint
class node_schemas toneRose
class node_engineer toneIndigo
```

## Components

### Application entry

- [FastAPI app](https://github.com/mehulbansal1207/mcdermott-buckling/blob/main/app/main.py): `app/main.py`
- [Length page](https://github.com/mehulbansal1207/mcdermott-buckling/blob/main/app/static/length.js): `app/static/length.js`
- [Geometry page](https://github.com/mehulbansal1207/mcdermott-buckling/blob/main/app/static/geometry.js): `app/static/geometry.js`
- [Friction page](https://github.com/mehulbansal1207/mcdermott-buckling/blob/main/app/static/friction.js): `app/static/friction.js`
- [Stiffness page](https://github.com/mehulbansal1207/mcdermott-buckling/blob/main/app/static/stiffness.js): `app/static/stiffness.js`
- [PT page](https://github.com/mehulbansal1207/mcdermott-buckling/blob/main/app/static/pt.js): `app/static/pt.js`
- [Route page](https://github.com/mehulbansal1207/mcdermott-buckling/blob/main/app/static/route.js): `app/static/route.js`
- [SOOS page](https://github.com/mehulbansal1207/mcdermott-buckling/blob/main/app/static/soos.js): `app/static/soos.js`
- [Input page](https://github.com/mehulbansal1207/mcdermott-buckling/blob/main/app/static/input.js): `app/static/input.js`
- [Stress-strain page](https://github.com/mehulbansal1207/mcdermott-buckling/blob/main/app/static/stress_strain.js): `app/static/stress_strain.js`

### Engineering inputs

- [Length mesh](https://github.com/mehulbansal1207/mcdermott-buckling/blob/main/app/services/length.py): `app/services/length.py`
- [Geometry properties](https://github.com/mehulbansal1207/mcdermott-buckling/blob/main/app/services/geometry.py): `app/services/geometry.py`
- [Friction zones](https://github.com/mehulbansal1207/mcdermott-buckling/blob/main/app/services/friction.py): `app/services/friction.py`
- [Stiffness zones](https://github.com/mehulbansal1207/mcdermott-buckling/blob/main/app/services/stiffness.py): `app/services/stiffness.py`
- [PT profiles](https://github.com/mehulbansal1207/mcdermott-buckling/blob/main/app/services/pt.py): `app/services/pt.py`
- [Route inputs](https://github.com/mehulbansal1207/mcdermott-buckling/blob/main/app/services/route.py): `app/services/route.py`
- [Stress-strain](https://github.com/mehulbansal1207/mcdermott-buckling/blob/main/app/services/stress_strain.py): `app/services/stress_strain.py`

### Analysis workflows

- [SOOS generation](https://github.com/mehulbansal1207/mcdermott-buckling/blob/main/app/services/soos.py): `app/services/soos.py`
- [Input summary](https://github.com/mehulbansal1207/mcdermott-buckling/blob/main/app/services/input.py): `app/services/input.py`

### Request contracts

- [API schemas](https://github.com/mehulbansal1207/mcdermott-buckling/tree/main/app/schemas): `app/schemas`

### Other components

- **Engineer**

## Connections

- Engineer → FastAPI app: uses pages
- FastAPI app → Length mesh: routes requests (evidence: `app/main.py`)
- FastAPI app → Geometry properties: routes requests (evidence: `app/main.py`)
- FastAPI app → Friction zones: routes requests (evidence: `app/main.py`)
- FastAPI app → Stiffness zones: routes requests (evidence: `app/main.py`)
- FastAPI app → PT profiles: routes requests (evidence: `app/main.py`)
- FastAPI app → Route inputs: routes requests (evidence: `app/main.py`)
- FastAPI app → SOOS generation: routes requests (evidence: `app/main.py`)
- FastAPI app → Input summary: routes requests (evidence: `app/main.py`)
- FastAPI app → Stress-strain: routes requests (evidence: `app/main.py`)
- Length page → FastAPI app: submits inputs
- Geometry page → FastAPI app: submits inputs
- Friction page → FastAPI app: submits inputs
- Stiffness page → FastAPI app: submits inputs
- PT page → FastAPI app: submits inputs
- Route page → FastAPI app: submits inputs
- SOOS page → FastAPI app: submits inputs
- Input page → FastAPI app: submits inputs
- Stress-strain page → FastAPI app: submits inputs
- FastAPI app → API schemas: validates requests
- Length mesh → API schemas: uses mesh models (evidence: `app/services/length.py`)
- Geometry properties → API schemas: uses geometry models (evidence: `app/services/geometry.py`)
- Friction zones → API schemas: uses friction models (evidence: `app/services/friction.py`)
- Stiffness zones → API schemas: uses stiffness models (evidence: `app/services/stiffness.py`)
- SOOS generation → API schemas: uses SOOS models (evidence: `app/services/soos.py`)
- Input summary → API schemas: uses input models (evidence: `app/services/input.py`)
- Stress-strain → API schemas: uses curve models (evidence: `app/services/stress_strain.py`)
- Input page → Input summary: requests update
- SOOS page → SOOS generation: requests generation
- Geometry page → Geometry properties: requests calculation
