News

Congegno 0.1.0, preview 3

A whole electric car in one model, runs compiled without Python in the loop, physical libraries from the Modelica Standard Library, Control, Robotics and Aerospace toolboxes, and Linux on ARM64.

The third preview of Congegno is out, for macOS (Apple Silicon and Intel), Linux (x86_64 and, new, ARM64) and Windows. Free to try, evaluate and learn with; it comes with eighteen examples to start from.

Coming soon

What is new

  • A whole electric car, in one model. The electric car example now laps an oval track in 3D: a 1500 kg rear-drive car, steered by a Pure Pursuit driver that slows for the bend ahead; field-oriented control at 10 kHz; an averaged inverter on a 400 V battery; a permanent-magnet machine in Modelica turning the rear axle through a gearbox; Magic Formula tyres; and a thermal network with a coolant loop taking the losses. On the Fast profile it runs faster than real time.
  • Live colour maps. A field over two signals' plane, with the run's path and its current point drawn on it as the run goes: the drive's efficiency map over the motor's speed and torque, and the d–q current plane. In Signals and, as a new widget, on dashboards.
  • Cameras that follow and orbit. Saved cameras follow a body; Export Video and view video --orbit turn the camera around it.
  • Physical libraries from the Modelica Standard Library, each checked against OpenModelica: electrical machines and power electronics, switched or averaged; complete rotational, translational and thermal libraries; a driveline package with gears, clutches, brakes and tyres; coolant networks and 32 fluid blocks.
  • Compiled runs. On the Accurate profile, code blocks, the robotics and control blocks, zero crossings and FMUs are compiled C++: a run no longer calls back into Python at each step. The auto integrator sees contacts and friction, and the friction examples run 4 to 60 times faster.
  • A Control toolbox: PIDs with Tune…, linearization, LQR, LQI and LQG, Kalman filters and observers, lookup tables of up to 8 inputs, and model predictive control as a block with its own solvers.
  • A Robotics toolbox: arms from Denavit–Hartenberg tables or URDF files, their kinematics and dynamics as compiled blocks, an arm on a spacecraft floating free; mobile robots with planners, localization and SLAM, and rovers that drive in the 3D view.
  • An Aerospace toolbox: the orbital environment, attitude sensors, reaction wheels, magnetorquers and thrusters, and a satellite that detumbles and points nadir down.

Changelog

Runs and integrators

  • Accurate: Congegno's own systems on Drake are compiled C++, with no call back into Python at each step.
  • The auto integrator counts contacts and friction, and sends models that bear or slide to an implicit integrator.
  • Implicit integrators refresh the Jacobian when Newton struggles and at a mechanism's events.
  • Chronos counts Jacobians, Newton iterations and rejected steps, and suggests the integrator to switch to.
  • A run's progress shows its phases, with an estimate from your machine, in the bar, the Runs pane, studies and Chronos. Stop works in every phase.

Physical libraries

  • Electrical: analog components and semiconductors; DC, induction and synchronous machines; three-phase blocks; power electronics, switched or averaged.
  • Mechanical: complete rotational and translational libraries; a driveline package with gears, clutches, brakes, tyres and an engine with its torque map.
  • Thermal: a complete library, and coolant networks.
  • Fluids: 32 blocks for pipes, valves, pumps, vessels and boundaries; each circuit has its medium, set by one Fluid Properties block.
  • Events in physical networks: switches, diodes and stops on both profiles.
  • Rigid groups: bodies joined by gears, racks, wheels or differentials take their starting values once, and Congegno says when one you wrote disagrees.
  • Table parameters: friction curves, gear losses and torque maps are edited in the Inspector, with no recompile.

Control

  • Linear blocks, Transport Delay and PIDs with Tune…; operating points and Model › Linearize…; LQR, LQI and LQG.
  • Kalman, Extended and Unscented Kalman filters, and the Luenberger observer.
  • Lookup tables from 1-D up to 8 inputs: Prelookup, Direct and Dynamic, with data from fields, the workspace or files.
  • Model predictive control, linear or adaptive: an active-set solver for small problems, ADMM for large ones, chosen by auto; soft limits on outputs.
  • New examples EX-CTL-10 to 13.

Robotics

  • Arms from Denavit–Hartenberg tables or URDF files (File › Import › URDF…), and a catalogue of arms.
  • Kinematics, Jacobians, dynamics and inverse kinematics as compiled blocks; an arm on a free-floating spacecraft (EX-ROB-07).
  • Unicycle, differential drive, bicycle and Ackermann models, with Pure Pursuit.
  • Occupancy grids and planners: D*, PRM and RRT.
  • Range-bearing sensor, odometry, EKF localization, particle filter and EKF SLAM; a rover that localizes, plans and follows (EX-ROB-08). The rovers drive in the 3D view.

Aerospace

  • Rotations, the orbital environment (Sun, Moon, eclipse, magnetic field, atmosphere, gravity with J2) and attitude sensors.
  • Reaction wheels at three levels of detail, magnetorquers, a control moment gyro and thrusters.
  • A satellite that detumbles and points nadir down (EX-SPC-02).

Electric car, maps and cameras

  • EX-MPH-03, the whole electric car, on its oval track in 3D.
  • Live colour maps in Signals and on dashboards; congegno.colormap computes a field from your own models.
  • Saved cameras follow a body; Export Video and view video --orbit turn around it, and a Scene's follow can turn the 3D view the same way during playback.

Editor and app

  • C and C++ files open in the editor, with comments in green.
  • Save is in the editor's toolbar, and unsaved changes show on the tab and in the header.
  • A model's parts can be given roles: a Controller is checked while you edit it, and gets its own interface.
  • An FMU that fails to start says why, in the model's own words, and every parameter reaches its FMU.
  • A run that fails counts as an error and says so in the header; it is never played back at 0 s.
  • Run Settings › Keep the profile copies a template with its profile on every system.
  • A script named <model>_<role>.py beside a model belongs to it, and is renamed with it.
  • Tabs close with the same box in every layout; blocks can also be yellow, white or black.
  • About shows the release's version, and the check for updates works on macOS.
  • Fixed: the 3D view drew bodies black after another scene had been shown.

Known limits

  • Not notarized on macOS, not signed on Windows: see each system's install steps.
  • The Linux ARM64 build was cross-built and has not run before this release.
  • Some fluid examples of the Modelica Standard Library are not yet rebuilt as blocks; one temperature measurement with the IF97 water medium does not start.

Download

  • macOS, Apple Silicon: .dmg, macOS 15 or later
  • macOS, Intel: .dmg, macOS 13 or later
  • Linux, x86_64: AppImage, glibc 2.34 or later
  • Linux, ARM64: AppImage, glibc 2.34 or later; new, built for ARM64 but not yet run on it
  • Windows 10/11: .exe, 64-bit, 8 GB of memory or more

Each system's steps are in the download, and every file, its SHA-256 checksum and the full release notes are on GitHub. It is a preview: expect rough edges, and tell us about them (in the app, Help › Report a Problem…).

← All newsRSS feed