Version_0_22_0 class
Requirements.UsersGuide.ReleaseNotes.Version_0_22_0
ยท source
Version 0.22.0 (Dec. 4, 2026)
Extends Modelica.Icons.ReleaseNotes
Bug fixes from the review of 0.21.1 (issue #40).
- ChecksInFixedWindow_withFFT:
findBaseFrequencysearches the whole interval aroundf_base(the upper end was computed from the lower one);calculateTHDkeeps 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 ofMaxAmplitudeis drawn in icon coordinates when the first limit point is beyondf_max. The results of the examples are unchanged. Internal.SlidingWindow.pushdrops 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
distancePointToPolygontreat 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.CheckPumpingSystemslightly after about 1280 s (no verdict changes). - Examples:
AirCircuitSystem.CheckAirCircuitSystembuilds its observation record at the call site and now translates in Modelon Impact and OpenModelica;AircraftRequirements.TriggerAPUStartSequenceandMaximumCabinDissipatedPowerIncreaseuse their parametersNbMinandP_RoClim(same values);MotorsWithLosses.CheckMotorWithLossessetsevaluationTimeto its stop time; the pipe-node requirement texts print bar and °C; the documented output ofBackupPowerSupply.MainPowerSupplyRequirementsis the one a simulation prints. - Documentation, typos, unused protected variables, redundant imports, the diagram position of the
margininput 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=...)).