How mahidahmed/timbersim works
TimberSim is a Flask application for exploring timber-supply logistics through discrete-event simulation. Users configure a single- or multi-sawmill run; the web application coordinates simulation replications, gathers site and mill performance metrics, and presents results in dashboards and PDF reports. The simulation models truck movements, logging-site loading, sawmill scale and crane operations, breakdowns, and diversions. The README also describes mapping and regional data. The graph reflects documented and indexed relationships; unsampled routes and implementation details are not inferred.
Main entry points: app.py Flask routes · sawmill_model.py Simulation model · run_replication.py Replication runner · sawmill_utilities.py Result aggregation
Components 10
Web application
- Flask routes
app.py - Web pages
templates
Simulation domain
- Simulation model
sawmill_model.py - Supply-chain entities
entities.py - Travel metrics
global_variables.py
Results and reporting
- Replication runner
run_replication.py - Result aggregation
sawmill_utilities.py - PDF reporting
app.py
Simulation inputs
- Timber and map data
data
Other components
- Browser user
Connections 10
- Browser user → Flask routes: configures runs
README.md - Flask routes → Web pages: renders pages
app.py - Flask routes → Replication runner: runs replications
app.py - Flask routes → Result aggregation: aggregates results
app.py - Replication runner → Simulation model: creates and runs
run_replication.py - Simulation model → Supply-chain entities: instantiates entities
sawmill_model.py - Simulation model → Result aggregation: combines metrics
sawmill_model.py - Replication runner → Travel metrics: reads travel metrics
run_replication.py - Flask routes → PDF reporting: generates reports
README.md - Flask routes → Timber and map data: loads simulation data