# thevectorgod/physics-111-final_project architecture

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

- Interactive diagram: https://gitdiagram.com/thevectorgod/physics-111-final_project
- Repository: https://github.com/thevectorgod/physics-111-final_project

## Overview

RampForce is a desktop tool for planning manual load transport on sliding or wheeled inclined ramps. Users enter and validate load, ramp, resistance, and planning-limit values; the app calculates forces and feasibility, compares proposed and analytical endpoint ramps, and presents plots and explanations. It also supports standard-slope sampling, reference-case comparison, and CSV exports. The excerpts show several calls and imports; some GUI wiring and capabilities are documented in the README but not fully sampled, so those relationships are marked unverified.

Main entry points: [`src/main.py`](https://github.com/thevectorgod/physics-111-final_project/blob/main/src/main.py) (RampForce app), [`src/physics.py`](https://github.com/thevectorgod/physics-111-final_project/blob/main/src/physics.py) (Run calculations), [`src/explain.py`](https://github.com/thevectorgod/physics-111-final_project/blob/main/src/explain.py) (Calculation walkthrough), [`src/datasets.py`](https://github.com/thevectorgod/physics-111-final_project/blob/main/src/datasets.py) (CSV exports)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Desktop interface"]
  node_app["RampForce app<br/>[main.py]"]
end

subgraph group_model["Ramp analysis"]
  node_validation["Input validation<br/>[physics.py]"]
  node_run_physics["Run calculations<br/>[physics.py]"]
  node_feasibility["Feasibility analysis<br/>[physics.py]"]
  node_derivatives["Force and work calculus<br/>[physics.py]"]
  node_sampling["Graph sampling<br/>[physics.py]"]
  node_reference_slopes["Standard slopes<br/>[physics.py]"]
end

subgraph group_presentation["Results and explanation"]
  node_overview["Verdict and overview<br/>[main.py]"]
  node_plots["Comparison plots<br/>[main.py]"]
  node_comparison_table["Ramp comparison table<br/>[main.py]"]
  node_custom_run["Custom-run check<br/>[main.py]"]
  node_walkthrough["Calculation walkthrough<br/>[explain.py]"]
  node_reference_explanation["Verdict wording<br/>[explain.py]"]
end

subgraph group_data["References and exports"]
  node_reference_cases[("Supplied reference cases<br/>[datasets.py]")]
  node_reference_compare["Reference comparison<br/>[datasets.py]"]
  node_csv_exports["CSV exports<br/>[datasets.py]"]
end

node_user(("Planner"))
node_file_system[("Local files")]

node_user -->|"enters parameters"| node_app
node_app -.->|"validates inputs"| node_validation
node_app -.->|"calculates ramps"| node_run_physics
node_app -.->|"analyzes limits"| node_feasibility
node_app -.->|"samples curves"| node_sampling
node_app -.->|"updates results"| node_overview
node_app -.->|"draws comparisons"| node_plots
node_app -->|"updates table"| node_comparison_table
node_app -.->|"checks proposed run"| node_custom_run
node_app -->|"requests steps"| node_walkthrough
node_app -.->|"shows verdict"| node_reference_explanation
node_app -.->|"requests comparison"| node_reference_compare
node_app -.->|"requests exports"| node_csv_exports
node_walkthrough -->|"uses calculations"| node_run_physics
node_walkthrough -->|"uses derivatives"| node_derivatives
node_walkthrough -->|"lists standard slopes"| node_reference_slopes
node_reference_explanation -.->|"formats verdict"| node_feasibility
node_plots -.->|"plots samples"| node_sampling
node_comparison_table -.->|"displays results"| node_run_physics
node_custom_run -.->|"evaluates run"| node_run_physics
node_reference_compare -->|"reads cases"| node_reference_cases
node_reference_compare -->|"calculates reference values"| node_run_physics
node_csv_exports -->|"uses analysis"| node_feasibility
node_csv_exports -->|"calculates export rows"| node_run_physics
node_csv_exports -.->|"writes CSV"| node_file_system

click node_app "https://github.com/thevectorgod/physics-111-final_project/blob/main/src/main.py"
click node_validation "https://github.com/thevectorgod/physics-111-final_project/blob/main/src/physics.py"
click node_run_physics "https://github.com/thevectorgod/physics-111-final_project/blob/main/src/physics.py"
click node_feasibility "https://github.com/thevectorgod/physics-111-final_project/blob/main/src/physics.py"
click node_derivatives "https://github.com/thevectorgod/physics-111-final_project/blob/main/src/physics.py"
click node_sampling "https://github.com/thevectorgod/physics-111-final_project/blob/main/src/physics.py"
click node_reference_slopes "https://github.com/thevectorgod/physics-111-final_project/blob/main/src/physics.py"
click node_overview "https://github.com/thevectorgod/physics-111-final_project/blob/main/src/main.py"
click node_plots "https://github.com/thevectorgod/physics-111-final_project/blob/main/src/main.py"
click node_comparison_table "https://github.com/thevectorgod/physics-111-final_project/blob/main/src/main.py"
click node_custom_run "https://github.com/thevectorgod/physics-111-final_project/blob/main/src/main.py"
click node_walkthrough "https://github.com/thevectorgod/physics-111-final_project/blob/main/src/explain.py"
click node_reference_explanation "https://github.com/thevectorgod/physics-111-final_project/blob/main/src/explain.py"
click node_reference_cases "https://github.com/thevectorgod/physics-111-final_project/blob/main/src/datasets.py"
click node_reference_compare "https://github.com/thevectorgod/physics-111-final_project/blob/main/src/datasets.py"
click node_csv_exports "https://github.com/thevectorgod/physics-111-final_project/blob/main/src/datasets.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_app toneBlue
class node_validation,node_run_physics,node_feasibility,node_derivatives,node_sampling,node_reference_slopes,node_file_system toneAmber
class node_overview,node_plots,node_comparison_table,node_custom_run,node_walkthrough,node_reference_explanation toneMint
class node_reference_cases,node_reference_compare,node_csv_exports toneRose
class node_user toneIndigo
```

## Components

### Desktop interface

- [RampForce app](https://github.com/thevectorgod/physics-111-final_project/blob/main/src/main.py): `src/main.py`

### Ramp analysis

- [Input validation](https://github.com/thevectorgod/physics-111-final_project/blob/main/src/physics.py): `src/physics.py`
- [Run calculations](https://github.com/thevectorgod/physics-111-final_project/blob/main/src/physics.py): `src/physics.py`
- [Feasibility analysis](https://github.com/thevectorgod/physics-111-final_project/blob/main/src/physics.py): `src/physics.py`
- [Force and work calculus](https://github.com/thevectorgod/physics-111-final_project/blob/main/src/physics.py): `src/physics.py`
- [Graph sampling](https://github.com/thevectorgod/physics-111-final_project/blob/main/src/physics.py): `src/physics.py`
- [Standard slopes](https://github.com/thevectorgod/physics-111-final_project/blob/main/src/physics.py): `src/physics.py`

### Results and explanation

- [Verdict and overview](https://github.com/thevectorgod/physics-111-final_project/blob/main/src/main.py): `src/main.py`
- [Comparison plots](https://github.com/thevectorgod/physics-111-final_project/blob/main/src/main.py): `src/main.py`
- [Ramp comparison table](https://github.com/thevectorgod/physics-111-final_project/blob/main/src/main.py): `src/main.py`
- [Custom-run check](https://github.com/thevectorgod/physics-111-final_project/blob/main/src/main.py): `src/main.py`
- [Calculation walkthrough](https://github.com/thevectorgod/physics-111-final_project/blob/main/src/explain.py): `src/explain.py`
- [Verdict wording](https://github.com/thevectorgod/physics-111-final_project/blob/main/src/explain.py): `src/explain.py`

### References and exports

- [Supplied reference cases](https://github.com/thevectorgod/physics-111-final_project/blob/main/src/datasets.py): `src/datasets.py`
- [Reference comparison](https://github.com/thevectorgod/physics-111-final_project/blob/main/src/datasets.py): `src/datasets.py`
- [CSV exports](https://github.com/thevectorgod/physics-111-final_project/blob/main/src/datasets.py): `src/datasets.py`

### Other components

- **Planner**
- **Local files**

## Connections

- Planner → RampForce app: enters parameters (evidence: `README.md`)
- RampForce app → Input validation: validates inputs (evidence: `src/main.py`)
- RampForce app → Run calculations: calculates ramps (evidence: `src/main.py`)
- RampForce app → Feasibility analysis: analyzes limits (evidence: `src/main.py`)
- RampForce app → Graph sampling: samples curves (evidence: `src/main.py`)
- RampForce app → Verdict and overview: updates results (evidence: `src/main.py`)
- RampForce app → Comparison plots: draws comparisons (evidence: `src/main.py`)
- RampForce app → Ramp comparison table: updates table (evidence: `src/main.py`)
- RampForce app → Custom-run check: checks proposed run (evidence: `src/main.py`)
- RampForce app → Calculation walkthrough: requests steps (evidence: `src/main.py`)
- RampForce app → Verdict wording: shows verdict (evidence: `src/main.py`)
- RampForce app → Reference comparison: requests comparison (evidence: `src/main.py`)
- RampForce app → CSV exports: requests exports (evidence: `src/main.py`)
- Calculation walkthrough → Run calculations: uses calculations (evidence: `src/explain.py`)
- Calculation walkthrough → Force and work calculus: uses derivatives (evidence: `src/explain.py`)
- Calculation walkthrough → Standard slopes: lists standard slopes (evidence: `src/explain.py`)
- Verdict wording → Feasibility analysis: formats verdict (evidence: `src/explain.py`)
- Comparison plots → Graph sampling: plots samples (evidence: `src/main.py`)
- Ramp comparison table → Run calculations: displays results (evidence: `src/main.py`)
- Custom-run check → Run calculations: evaluates run (evidence: `src/main.py`)
- Reference comparison → Supplied reference cases: reads cases (evidence: `src/datasets.py`)
- Reference comparison → Run calculations: calculates reference values (evidence: `src/datasets.py`)
- CSV exports → Feasibility analysis: uses analysis (evidence: `src/datasets.py`)
- CSV exports → Run calculations: calculates export rows (evidence: `src/datasets.py`)
- CSV exports → Local files: writes CSV
