Appendix A — Python Code Reference

This appendix collects the Python functions used throughout the book to generate figures and numerical examples. All code runs inside the project’s pixi environment. To reproduce any figure, run pixi run render from the project root.

A.1 Spring Force Functions

A.2 Beam Deflection Functions

A.3 Stress-Strain Functions

A.4 Griffith Fracture

A.5 Seismic Wave Speeds