4D Training & Consultancy

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.

4 daysIn-house, online, or customized deliveryCorporate teams and professional groupsLevel: Intermediate

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.

Speak to 4D

Plan the right training or consultancy path for your team.

Share a few details and 4D will help route your inquiry toward corporate training, consultancy, assessment, Phoenix-enabled support, or a tailored program.