Changes between Initial Version and Version 1 of Ticket #1835


Ignore:
Timestamp:
2012-09-25T09:20:12Z (12 years ago)
Author:
Martin Sjölund
Comment:

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)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1835

    • Property Resolutioninvalid
    • Property Status newclosed
  • Ticket #1835 – Description

    initial v1  
    11Following Model doesn't work.
    22Is it not possible to use "pre(time)" in Modelica?
    3 
     3{{{
    44  model Model1
    55   Real Variable1;
     
    77   der(Variable1) = pre(time)*Variable1;
    88  end Model1;
     9}}}