Model and simulate dynamic systems: block diagrams, control and motors.
Draw a model as blocks and wires, press Run, and see how the system behaves over time. Datum Sim is for control, mechanical, electrical, process and mechatronics engineers, researchers and students. It is free and open source (MIT), Windows first, installs in seconds and updates itself.
- Block diagrams: 84 blocks (sources, math, transfer functions, state space, PID, delays, discontinuities, lookup tables, scopes, discrete control, motors and drives). Wires find their own way around the blocks; move their segments, branch from them and name the signals they carry. Notes, block colours and Find (Ctrl+F) on the diagram.
- Discrete control: discrete transfer function, state space, integrator and PID, rate transition; the diagram can colour every block by its sample time.
- Motors: DC (permanent-magnet, separately excited, shunt, series, compound), induction (squirrel-cage, double-cage, wound-rotor), synchronous (permanent-magnet, reluctance, wound-field with dampers), switched reluctance, BLDC and stepper motors, with typical values for low, medium and high voltage ratings.
- Drives: three-phase source, inverter (average or switched), DC link, PWM, Clarke and Park transforms, encoder, current sensor; worked examples from a direct-on-line start to field-oriented control.
- Subsystems: group blocks into one, open them, nest them; give them a mask (parameters of their own, help, typical ratings) and keep them in My blocks, your own library. Goto/From tags send signals without wires.
- Five solvers: from fixed-step Euler to variable-step and stiff; the variable-step solvers find switching times exactly.
- Live scopes with two measuring cursors, step-response marks, comparison of earlier runs, stacked plots and PNG or SVG pictures; a probe reads any wire after a run. Parameter sweeps, and results as CSV for Datum Plot.
- Analysis from the built-in Python engine: Bode plots and stability margins, step responses, poles and zeros, rise time, overshoot and settling time.
- Checked: the solvers, main blocks and motors are tested against known answers. See the verification records for 0.1.0, the motors and discrete control.
Run models without the window, from scripts, batch files and build servers, or drive them from Python. Both use the app's own engine. The command line datum-sim-cli is installed next to the app; Help › Automation shows the commands for the open model.
datum-sim-cli run motor.dsim --set Kp=120 --stop 5 --out speed.csv
datum-sim-cli sweep motor.dsim --var Kp --values 50,100,150 --out runs
datum-sim-cli check motor.dsim # exit code 1 when the model has errors# pip install "git+https://github.com/Edgar-Mendonca/Datum-Sim#subdirectory=py"
import datum_sim as ds
m = ds.open("motor.dsim")
m.set(Kp=120) # model variables
m.set_param("PID", "D", 5) # block parameters, by name or path
r = m.run(stop=5) # NumPy arrays: r.t, r["Speed"]npm ci
npm run build:ui
cargo test --workspace
python -m pip install -r py/requirements.txt && python -m unittest discover -s py/tests # after cargo test: the Python API uses the command line it builds
npx tauri dev # run the appDatum Sim is part of Datum, a family of free and open-source desktop tools for engineers, scientists, researchers and analysts. Its design guide is FAMILY.md; this repo's memory and roadmap are in docs/MEMORY.md.
Licence: MIT. Third-party notices: NOTICE.
Product and file-format names are trademarks of their owners and are used only to describe file compatibility.
Free, open-source desktop tools for engineers, scientists, researchers and analysts: edgar-mendonca.github.io/Datum. MIT licence; see NOTICE for third-party code and data.
| App | What it is for | Latest | ||
|---|---|---|---|---|
| Datum Plan | Plan, schedule, track and report projects. For project managers, planners, engineers and contractors. | Download · Repo | ||
| Datum Plot | Analyse data and make publication-ready graphs. For scientists, researchers, lab teams and students. | Download · Repo | ||
| Datum Atlas | Choose materials with property charts and selection indices. For design and materials engineers, and students. | Download · Repo | ||
| Datum Sim | Model and simulate dynamic systems: block diagrams, control and motors. For control, mechanical, electrical, process and mechatronics engineers. | Download · Repo | ||
| Datum Calc | Engineering calculations with real units, readable maths, checks and a printable calc sheet. For every engineer who writes calculations. | Download · Repo | ||
| Datum Mesh | Finite-element analysis: stresses, deflections and temperatures in parts and frames, with a verification report. For mechanical, structural and process engineers. | Download · Repo | ||
| Datum Pipe | Pipe stress analysis: displacements, support and nozzle loads, code stresses and an automatic isometric. For piping, stress and plant engineers. | Download · Repo |

