Opened 7 years ago

Closed 4 years ago

Last modified 4 years ago

#2356 closed enhancement (wontfix)

Improved support for fixed start attributes

Reported by: jakesson Owned by: Christian Andersson
Priority: major Milestone: Never
Component: FMI/Export Version: trunk
Keywords: Cc:

Description

In our current implementation of the FMU export, a model:

model M
  Real x(start=2,fixed=true);
equation
 der(x) = -x;
end M;

results in the scalar variable declaration

                <ScalarVariable name="x" valueReference="1" variability="continuous" causality="internal" alias="noAlias">
                        <Real relativeQuantity="false" start="2.0" fixed="true" />
                </ScalarVariable>

As described in #2355, this is not according to the spec, since the value of x will be 2 after initialization regardless of what value is set by the user prior to initialization. The reason is that there is an initial equation:

initial equation
  x = 2;

that is compiled into the FMU. In order to enable users to set the fixed start value of x, we need to introduce a functionality in the runtime system to support this.

Change History (7)

comment:1 Changed 7 years ago by jakesson

Milestone: 1.9.x1.10.x

comment:2 Changed 7 years ago by jakesson

Milestone: 1.10.xPyFMI-1.3.x

comment:3 Changed 7 years ago by jakesson

Milestone: PyFMI-1.3.x

comment:4 Changed 6 years ago by Tove Bergdahl

Owner: set to Christian Andersson
Status: newassigned

comment:5 Changed 6 years ago by Christian Andersson

Milestone: Pending

Not sure when and what really needs to be done here. Moving to pending for now.

comment:6 Changed 4 years ago by Tove Bergdahl

Resolution: wontfix
Status: assignedclosed

User can add a parameter for the start value instead.

comment:7 Changed 4 years ago by Jesper Mattsson

Milestone: PendingNever
Note: See TracTickets for help on using tickets.