Opened 8 years ago

Last modified 8 years ago

#4116 closed defect

Start values of states are hardly changeable — at Version 1

Reported by: Rüdiger Franke Owned by: Lennart Ochel
Priority: high Milestone: 1.11.0
Component: Backend Version:
Keywords: Cc: Patrick Täuber

Description (last modified by Rüdiger Franke)

The attribute isValueChangeable is true for state variables, even though Modelica insists in initial values, like in the following example:

model IsValueChangeable
  parameter Real x_start = 0;
  Real x(start = x_start, fixed = true);
  Real y;
  Real z;
initial equation
  y = 0;
equation
  der(x) = 1;
  der(y) = 1;
  der(z) = 1;
end IsValueChangeable;

Doesn't this mean that start values of state variables are hardly ever changeable?

See also the level states in Modelica.Fluid.Examples.Tanks.ThreeTanks.

Change History (1)

comment:1 by Rüdiger Franke, 8 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.