modelModelThatRequiresScalarization

Index reduction not possible if arrays are not expanded (results in infinite looping during index reduction)

Extends from Modelica.Icons.Example.

Information

If this model is processed without expanding its arrays, index reduction will not terminate and an infinite loop occurs. Typically, this loop is terminated after reaching some limit. Either a tool prints an error and explains the situation or the model is again processed with arrays expanded. For details, see the discussion of Model 2 in

Martin Otter and Hilding Elmqvist (2025): Resizable Arrays in Object-Oriented Modeling. International Modelica & FMI Conference 2025.

Parameters

TypeNameDefaultDescription
Real[3]n{1, 2, 3}

Components

TypeNameDefaultDescription
Reals
Real[3]r

Revisions

  • 2025-05-02 by Martin Otter (DLR-FK): Initial version.

Copyright © 2025 Deutsches Zentrum für Luft- und Raumfahr e.V. - Institute of Vehicle Concepts .(DLR-FK)