# ahmetaliakkurt/physics_simulations architecture

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

- Interactive diagram: https://gitdiagram.com/ahmetaliakkurt/physics_simulations
- Repository: https://github.com/ahmetaliakkurt/physics_simulations

## Overview

Physics Simulations is a collection of standalone computational physics projects and an offline browser lab. The principal interactive workflow is to open the lab, choose a simulation, and view its live computation and visualization; the README describes shared numerical and rendering utilities. Separate Python and C++ projects cover classical, statistical, quantum, and special-project experiments rather than forming one connected runtime pipeline. App internals are unsampled, so those links reflect documented structure, not inspected call sites.

Main entry points: [`05_physics_lab_app/assets/js/core/app.js`](https://github.com/ahmetaliakkurt/physics_simulations/blob/main/05_physics_lab_app/assets/js/core/app.js) (App Runtime), [`05_physics_lab_app/assets/js/core/math.js`](https://github.com/ahmetaliakkurt/physics_simulations/blob/main/05_physics_lab_app/assets/js/core/math.js) (Numerical Methods), [`05_physics_lab_app/index.html`](https://github.com/ahmetaliakkurt/physics_simulations/blob/main/05_physics_lab_app/index.html) (Browser Entry), [`05_physics_lab_app/assets/js/sims`](https://github.com/ahmetaliakkurt/physics_simulations/tree/main/05_physics_lab_app/assets/js/sims) (Classical Simulations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Browser Lab"]
  node_entry["Browser Entry<br/>[index.html]"]
  node_app["App Runtime<br/>[app.js]"]
  node_math["Numerical Methods<br/>[math.js]"]
  node_plot["Plot Rendering<br/>[plot.js]"]
  node_web_classical["Classical Simulations"]
  node_web_statistical["Statistical Simulations"]
  node_web_quantum["Quantum Simulations"]
  node_web_projects["Project Simulations"]
end

subgraph group_classical["Classical Physics"]
  node_laser["Lens Design<br/>[laser_focus.py]"]
  node_taylor["Taylor Series<br/>[taylor_exps.py]"]
end

subgraph group_statistical["Statistical Physics"]
  node_pendulum_stats["Pendulum Ensemble"]
  node_atom_stats["Atomic Orbitals"]
  node_gas_engine["Gas Engine"]
  node_gas_ensemble["Ensemble Average"]
  node_gas_time["Time Average"]
end

subgraph group_quantum["Quantum Mechanics"]
  node_well_compare["Well Expansion"]
  node_well_expand["Expanding Well"]
  node_quantum_atom["Quantum Orbitals"]
  node_finite_well["Finite Wells<br/>[cont_well_app.py]"]
  node_lattice["Lattice Scattering"]
  node_spin["Stern–Gerlach<br/>[stern_gerlach.py]"]
end

subgraph group_projects["Special Projects"]
  node_evasion["Missile Evasion<br/>[f35_escape.py]"]
  node_sudoku["Sudoku Game"]
  node_pursuit["Pursuit Game<br/>[track_destroy.py]"]
end

node_visitor(("Lab User"))

node_visitor -->|"opens"| node_entry
node_entry -->|"starts"| node_app
node_app -->|"provides simulations"| node_web_classical
node_app -->|"provides simulations"| node_web_statistical
node_app -->|"provides simulations"| node_web_quantum
node_app -->|"provides simulations"| node_web_projects
node_web_classical -.->|"uses numerics"| node_math
node_web_statistical -.->|"uses numerics"| node_math
node_web_quantum -.->|"uses numerics"| node_math
node_web_projects -.->|"uses numerics"| node_math
node_app -.->|"renders via"| node_plot
node_gas_ensemble -.->|"uses engine"| node_gas_engine

click node_entry "https://github.com/ahmetaliakkurt/physics_simulations/blob/main/05_physics_lab_app/index.html"
click node_app "https://github.com/ahmetaliakkurt/physics_simulations/blob/main/05_physics_lab_app/assets/js/core/app.js"
click node_math "https://github.com/ahmetaliakkurt/physics_simulations/blob/main/05_physics_lab_app/assets/js/core/math.js"
click node_plot "https://github.com/ahmetaliakkurt/physics_simulations/blob/main/05_physics_lab_app/assets/js/core/plot.js"
click node_web_classical "https://github.com/ahmetaliakkurt/physics_simulations/tree/main/05_physics_lab_app/assets/js/sims"
click node_web_statistical "https://github.com/ahmetaliakkurt/physics_simulations/tree/main/05_physics_lab_app/assets/js/sims"
click node_web_quantum "https://github.com/ahmetaliakkurt/physics_simulations/tree/main/05_physics_lab_app/assets/js/sims"
click node_web_projects "https://github.com/ahmetaliakkurt/physics_simulations/tree/main/05_physics_lab_app/assets/js/sims"
click node_laser "https://github.com/ahmetaliakkurt/physics_simulations/blob/main/01_classical/laser_focus.py"
click node_taylor "https://github.com/ahmetaliakkurt/physics_simulations/blob/main/01_classical/taylor_exps.py"
click node_pendulum_stats "https://github.com/ahmetaliakkurt/physics_simulations/blob/main/02_statistical/kaotik_pendulum_statistics.py"
click node_atom_stats "https://github.com/ahmetaliakkurt/physics_simulations/blob/main/02_statistical/central_force_field_atom.py"
click node_gas_engine "https://github.com/ahmetaliakkurt/physics_simulations/blob/main/02_statistical/ideal_gas_system/ensemble_physics.cpp"
click node_gas_ensemble "https://github.com/ahmetaliakkurt/physics_simulations/blob/main/02_statistical/ideal_gas_system/ideal_gas_ansamble_average.py"
click node_gas_time "https://github.com/ahmetaliakkurt/physics_simulations/blob/main/02_statistical/ideal_gas_system/ideal_gas_time_average.py"
click node_well_compare "https://github.com/ahmetaliakkurt/physics_simulations/blob/main/03_quantum/adiabatic_inf_well_exp_comp.py"
click node_well_expand "https://github.com/ahmetaliakkurt/physics_simulations/blob/main/03_quantum/adiabatic_inf_well_expension.py"
click node_quantum_atom "https://github.com/ahmetaliakkurt/physics_simulations/blob/main/03_quantum/central_force_field_atom.py"
click node_finite_well "https://github.com/ahmetaliakkurt/physics_simulations/blob/main/03_quantum/cont_well_app.py"
click node_lattice "https://github.com/ahmetaliakkurt/physics_simulations/blob/main/03_quantum/lattice_wavepacket.py"
click node_spin "https://github.com/ahmetaliakkurt/physics_simulations/blob/main/03_quantum/stern_gerlach.py"
click node_evasion "https://github.com/ahmetaliakkurt/physics_simulations/blob/main/04_special_projects/f35_escape.py"
click node_sudoku "https://github.com/ahmetaliakkurt/physics_simulations/blob/main/04_special_projects/sudoku_solver_graph_pygame.py"
click node_pursuit "https://github.com/ahmetaliakkurt/physics_simulations/blob/main/04_special_projects/track_destroy.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_entry,node_app,node_math,node_plot,node_web_classical,node_web_statistical,node_web_quantum,node_web_projects,node_visitor toneBlue
class node_laser,node_taylor toneAmber
class node_pendulum_stats,node_atom_stats,node_gas_engine,node_gas_ensemble,node_gas_time toneMint
class node_well_compare,node_well_expand,node_quantum_atom,node_finite_well,node_lattice,node_spin toneRose
class node_evasion,node_sudoku,node_pursuit toneIndigo
```

## Components

### Browser Lab

- [Browser Entry](https://github.com/ahmetaliakkurt/physics_simulations/blob/main/05_physics_lab_app/index.html): `05_physics_lab_app/index.html`
- [App Runtime](https://github.com/ahmetaliakkurt/physics_simulations/blob/main/05_physics_lab_app/assets/js/core/app.js): `05_physics_lab_app/assets/js/core/app.js`
- [Numerical Methods](https://github.com/ahmetaliakkurt/physics_simulations/blob/main/05_physics_lab_app/assets/js/core/math.js): `05_physics_lab_app/assets/js/core/math.js`
- [Plot Rendering](https://github.com/ahmetaliakkurt/physics_simulations/blob/main/05_physics_lab_app/assets/js/core/plot.js): `05_physics_lab_app/assets/js/core/plot.js`
- [Classical Simulations](https://github.com/ahmetaliakkurt/physics_simulations/tree/main/05_physics_lab_app/assets/js/sims): `05_physics_lab_app/assets/js/sims`
- [Statistical Simulations](https://github.com/ahmetaliakkurt/physics_simulations/tree/main/05_physics_lab_app/assets/js/sims): `05_physics_lab_app/assets/js/sims`
- [Quantum Simulations](https://github.com/ahmetaliakkurt/physics_simulations/tree/main/05_physics_lab_app/assets/js/sims): `05_physics_lab_app/assets/js/sims`
- [Project Simulations](https://github.com/ahmetaliakkurt/physics_simulations/tree/main/05_physics_lab_app/assets/js/sims): `05_physics_lab_app/assets/js/sims`

### Classical Physics

- [Lens Design](https://github.com/ahmetaliakkurt/physics_simulations/blob/main/01_classical/laser_focus.py): `01_classical/laser_focus.py`
- [Taylor Series](https://github.com/ahmetaliakkurt/physics_simulations/blob/main/01_classical/taylor_exps.py): `01_classical/taylor_exps.py`

### Statistical Physics

- [Pendulum Ensemble](https://github.com/ahmetaliakkurt/physics_simulations/blob/main/02_statistical/kaotik_pendulum_statistics.py): `02_statistical/kaotik_pendulum_statistics.py`
- [Atomic Orbitals](https://github.com/ahmetaliakkurt/physics_simulations/blob/main/02_statistical/central_force_field_atom.py): `02_statistical/central_force_field_atom.py`
- [Gas Engine](https://github.com/ahmetaliakkurt/physics_simulations/blob/main/02_statistical/ideal_gas_system/ensemble_physics.cpp): `02_statistical/ideal_gas_system/ensemble_physics.cpp`
- [Ensemble Average](https://github.com/ahmetaliakkurt/physics_simulations/blob/main/02_statistical/ideal_gas_system/ideal_gas_ansamble_average.py): `02_statistical/ideal_gas_system/ideal_gas_ansamble_average.py`
- [Time Average](https://github.com/ahmetaliakkurt/physics_simulations/blob/main/02_statistical/ideal_gas_system/ideal_gas_time_average.py): `02_statistical/ideal_gas_system/ideal_gas_time_average.py`

### Quantum Mechanics

- [Well Expansion](https://github.com/ahmetaliakkurt/physics_simulations/blob/main/03_quantum/adiabatic_inf_well_exp_comp.py): `03_quantum/adiabatic_inf_well_exp_comp.py`
- [Expanding Well](https://github.com/ahmetaliakkurt/physics_simulations/blob/main/03_quantum/adiabatic_inf_well_expension.py): `03_quantum/adiabatic_inf_well_expension.py`
- [Quantum Orbitals](https://github.com/ahmetaliakkurt/physics_simulations/blob/main/03_quantum/central_force_field_atom.py): `03_quantum/central_force_field_atom.py`
- [Finite Wells](https://github.com/ahmetaliakkurt/physics_simulations/blob/main/03_quantum/cont_well_app.py): `03_quantum/cont_well_app.py`
- [Lattice Scattering](https://github.com/ahmetaliakkurt/physics_simulations/blob/main/03_quantum/lattice_wavepacket.py): `03_quantum/lattice_wavepacket.py`
- [Stern–Gerlach](https://github.com/ahmetaliakkurt/physics_simulations/blob/main/03_quantum/stern_gerlach.py): `03_quantum/stern_gerlach.py`

### Special Projects

- [Missile Evasion](https://github.com/ahmetaliakkurt/physics_simulations/blob/main/04_special_projects/f35_escape.py): `04_special_projects/f35_escape.py`
- [Sudoku Game](https://github.com/ahmetaliakkurt/physics_simulations/blob/main/04_special_projects/sudoku_solver_graph_pygame.py): `04_special_projects/sudoku_solver_graph_pygame.py`
- [Pursuit Game](https://github.com/ahmetaliakkurt/physics_simulations/blob/main/04_special_projects/track_destroy.py): `04_special_projects/track_destroy.py`

### Other components

- **Lab User**

## Connections

- Lab User → Browser Entry: opens (evidence: `README.md`)
- Browser Entry → App Runtime: starts (evidence: `README.md`)
- App Runtime → Classical Simulations: provides simulations (evidence: `README.md`)
- App Runtime → Statistical Simulations: provides simulations (evidence: `README.md`)
- App Runtime → Quantum Simulations: provides simulations (evidence: `README.md`)
- App Runtime → Project Simulations: provides simulations (evidence: `README.md`)
- Classical Simulations → Numerical Methods: uses numerics (evidence: `README.md`)
- Statistical Simulations → Numerical Methods: uses numerics (evidence: `README.md`)
- Quantum Simulations → Numerical Methods: uses numerics (evidence: `README.md`)
- Project Simulations → Numerical Methods: uses numerics (evidence: `README.md`)
- App Runtime → Plot Rendering: renders via (evidence: `README.md`)
- Ensemble Average → Gas Engine: uses engine (evidence: `README.md`)
