Software Development
Python for Engineers with NumPy and SciPy
Engineering calculations are only as good as their assumptions, units, and validation. This course teaches NumPy array computation and the SciPy toolbox for interpolation, curve fitting, optimization, and differential equations, applied to process, mechanical, and energy problems rather than textbook examples.
Overview
Practical learning for workplace transfer.
This course exists because of the calculation sheet nobody can defend: a fitted correlation whose data range is unknown, an interpolation applied outside the table it came from, and a mix of bar, psi, and Pa in the same worksheet. Participants learn NumPy arrays as the natural container for measured and simulated engineering data, then work through SciPy for interpolation of rating tables, least-squares fitting of experimental curves with reported confidence, constrained optimization of sizing and operating decisions, and numerical solution of the ordinary differential equations behind transient and control behaviour, with unit consistency enforced throughout.
Prerequisites
An engineering degree or equivalent applied mathematics background, plus basic Python syntax and familiarity with functions and files.
Objectives
- Vectorize engineering calculations with NumPy arrays, broadcasting, and slicing.
- Enforce unit consistency and significant figures across a multi-step calculation.
- Interpolate rating tables and measured curves with the right method for the data.
- Fit models to experimental data and report the uncertainty of the fitted parameters.
- Solve root-finding and constrained optimization problems for sizing and operating decisions.
- Integrate ordinary differential equations to study transient and dynamic system behaviour.
Target audience
- Process and chemical engineers performing design and rating calculations
- Mechanical and rotating equipment engineers
- Electrical and power systems engineers running load and network studies
- R&D, laboratory, and testing engineers analysing experimental data
- Simulation and modeling specialists moving away from closed tools
- Technical graduates being developed into calculation and study roles
Program outline
A clear structure for the learning journey.
Program outline
Outline points are grouped in one designed block instead of being treated as separate module cards.
Module 1: NumPy Arrays as the Engineering Data Structure
Creating, indexing, and slicing arrays of measurements and grid values
Broadcasting, vectorization, and eliminating slow element-by-element loops
Linear algebra for balances, network equations, and coordinate transforms
Loading instrument, historian, and CSV data into arrays and grids
Module 2: Units, Tolerances, and Trustworthy Calculation
Unit systems, conversion layers, and catching a bar and psi mismatch early
Floating point behaviour, tolerances, and convergence criteria
Propagating measurement uncertainty through a calculation chain
Guard clauses and range checks that reject physically impossible inputs
Module 3: Interpolation and Curve Fitting on Measured Data
Linear, spline, and multidimensional interpolation of rating tables
Least-squares and non-linear fitting with curve_fit and residual analysis
Reporting parameter confidence and refusing to extrapolate beyond the data
Smoothing noisy sensor traces without erasing real events
Module 4: Root Finding and Constrained Optimization
Solving implicit equations for flow, pressure drop, and equilibrium states
Single and multi-variable minimization with bounds and constraints
Formulating a sizing or operating problem as an objective function
Diagnosing non-convergence, poor scaling, and bad starting points
Module 5: Differential Equations and Dynamic Behaviour
Setting up an ODE system for tanks, thermal transients, and control loops
Choosing a solver, step control, and dealing with stiff systems
Event detection for trips, thresholds, and phase changes
Validating a simulation against plant or test-rig measurements
Module 6: Signals, Statistics, and Engineering Reports
Resampling, filtering, and frequency analysis of vibration and process signals
Descriptive statistics, outlier handling, and hypothesis tests on test data
Engineering plots that show data, fit, and validity range together
Workshop: building a documented calculation notebook for a real study
Materials provided
- Course workbook, annotated code samples, and reference notes
- Hands-on lab environment and starter repositories
- Exercises, checklists, and reusable code templates
- 4D Certificate of Completion
- Post-course technical guidance
Training Options
Programs can be delivered in-house, online, or in a blended format depending on your team's schedule, location, and learning objectives. When an external certificate or exam is included, certification rules and fees remain under the relevant awarding body's policies, while 4D provides the training and preparation support.
Why choose 4D
4D trainers are engineers before they are programmers, so every method here is tied to a physical quantity, a validity range, and a tolerance rather than a synthetic dataset. Participants work on their own correlations, rating curves, or process calculations, and the course ends with a calculation notebook that states its assumptions, units, and validation checks explicitly.
Related courses
Python Programming Fundamentals
A hands-on introduction to Python for engineers and analysts who need working code rather than tutorial fragments. Participants build fluency with data types, collections, functions, files, and error handling, then assemble a small program that reads real data and produces a usable report.
View courseIntermediate Python and Clean Code Practices
Designed for developers whose Python works but is difficult to change. The course covers dataclasses, generators, decorators, context managers, and type hints, then applies the refactoring moves that turn a nine-hundred-line module into small tested units guarded by black, ruff, and mypy.
View coursePython Automation and Scripting for Work Tasks
Aimed at teams losing hours every week to repetitive file, spreadsheet, and reporting work. Participants automate those tasks with Python: batch file handling, Excel and CSV processing, REST API calls, email alerts, and scheduled jobs that run unattended and report clearly when something fails.
View course