Opened 12 years ago

Closed 12 years ago

#1835 closed defect (invalid)

"pre(time)" not working

Reported by: julian.wyszynski Owned by: somebody
Priority: high Milestone: 1.9.0
Component: Frontend Version:
Keywords: Cc:

Description (last modified by Martin Sjölund)

Following Model doesn't work.
Is it not possible to use "pre(time)" in Modelica?

  model Model1
   Real Variable1;
  equation
   der(Variable1) = pre(time)*Variable1;
  end Model1;

Change History (1)

comment:1 by Martin Sjölund, 12 years ago

Description: modified (diff)
Resolution: invalid
Status: newclosed

The pre() operator can be applied if the following three conditions are fulfilled simultaneously: (a) variable y is either a subtype of a simple type or is a record component, (b) y is a discrete-time expression (c) the operator is not applied in a function class.

(b) is not fulfilled as time is a continuous-time variable, so you may not use pre(time)

Note: See TracTickets for help on using tickets.