Opened 12 years ago

Last modified 11 years ago

#2243 closed defect

reinit() statements do not appear in the xml produced by dumpXMLDAE — at Initial Version

Reported by: Matthew Klenk <klenk@…> Owned by: probably noone
Priority: normal Milestone: 1.9.1
Component: Backend Version: 1.9.0Beta
Keywords: Cc: Lennart Ochel

Description

In the attached model, a whenEquation tag is generated for the bounce_time, but not for the reinit() statement.
---
package BB

model Ball

Real y;
Real vy;
Real ay;

equation

der(y) = vy;
der(vy) = ay;

end Ball;
model BouncingBall

parameter Real e(start = 0.9);
Ball b1(y.start = 5, vy.start = 0);
Real bounce_time(start=0);

equation

b1.ay = -9.8;

when b1.y <= 0 and b1.vy <= 0 then

bounce_time = time;
reinit(b1.vy, -e * pre(b1.vy));

end when;

end BouncingBall;

end BB;

Change History (1)

by Matthew Klenk <klenk@…>, 12 years ago

Attachment: bouncing_ball.mo added

file containing the package and model used to generate the error.

Note: See TracTickets for help on using tickets.