Version_0_22_0 class

Requirements.UsersGuide.ReleaseNotes.Version_0_22_0  ยท source

Icon of Version_0_22_0

Version 0.22.0 (Dec. 4, 2026)

Extends Modelica.Icons.ReleaseNotes

Bug fixes from the review of 0.21.1 (issue #40).

  • ChecksInFixedWindow_withFFT: findBaseFrequency searches the whole interval around f_base (the upper end was computed from the lower one); calculateTHD keeps every harmonic's search window inside the spectrum and returns 0 (or a huge value) instead of dividing by a zero base amplitude; the icon curve of MaxAmplitude is drawn in icon coordinates when the first limit point is beyond f_max. The results of the examples are unchanged.
  • Internal.SlidingWindow.push drops the oldest element when the buffer is full (it kept counting past the buffer before), and the sliding-window checks count their durations from there.
  • Utilities.isInsidePolygon and distancePointToPolygon treat every point on the boundary as inside, as documented (some edges and vertices gave outside before).
  • The function LogicalFunctions.PropertyToBoolean gains the input undefined (default false, today's result), like the block of the same name.
  • Interfaces.PartialRequirement writes its initial equations one per variable (same values), which OpenModelica 1.27.1 translates without internal errors. In OpenModelica the generated equation order changes, which moves Examples.SimplePumpingSystem.CheckPumpingSystem slightly after about 1280 s (no verdict changes).
  • Examples: AirCircuitSystem.CheckAirCircuitSystem builds its observation record at the call site and now translates in Modelon Impact and OpenModelica; AircraftRequirements.TriggerAPUStartSequence and MaximumCabinDissipatedPowerIncrease use their parameters NbMin and P_RoClim (same values); MotorsWithLosses.CheckMotorWithLosses sets evaluationTime to its stop time; the pipe-node requirement texts print bar and °C; the documented output of BackupPowerSupply.MainPowerSupplyRequirements is the one a simulation prints.
  • Documentation, typos, unused protected variables, redundant imports, the diagram position of the margin input and 48 connection lines of the elementary examples are tidied.

Not backward compatible. Examples.Elementary.ChecksInFixedWindow_withFFT.MaxTotalHamonicDistortion1 and ...2 are renamed MaxTotalHarmonicDistortion1 and ...2. Removed because nothing used them: Types.Event, Internal.CSV.getRows and getTimeRange, and the functions set_u, prime235Factorization and getLastName of ChecksInFixedWindow_withFFT. Models of every earlier release are converted by Resources/Scripts/Conversion/ConvertFromRequirements_0.21.1.mos: conversion(from(version={"0.7.1", ..., "0.21.1"}, script=...)).