Engineering Computing

I use programming to support engineering calculations, solve numerical problems, and work with data. This collection includes examples in Python and C, with Python libraries such as NumPy, pandas, SciPy, and Matplotlib.

Some of these examples originated from Computer Programming (ME 2221) and its sessional course (ME 2222), as well as Numerical Computation for Mechanical Engineers (ME 3121) and its sessional course (ME 3122). Links to the corresponding coursework details are provided.

The collection covers the following topics:

Selected engineering examples

Shaft sizing · saved output

Criterion Diameter (mm)
0 Goodman 27.269835
1 Gerber 25.853082
2 ASME elliptic 25.768956
3 Soderberg 27.696013

Machine design

Shaft, screw & fastener calculations

Python examples for fatigue design, power-screw sizing, and joint stiffness.

Numerical methods and heat transfer

Numerical methods and heat transfer

Runge-Kutta integration, boundary-value problems and blackbody spectra.

Scientific plotting

Scientific plotting

Contours, surfaces, scatter plots and grouped comparisons.

Exploring data with Pandas

Exploring data with Pandas

Player statistics, grouped tables and salary plotting exercises.