Opened 10 years ago

#3272 new defect

VehicleInterfaces.Examples.FrontWheelDriveManualVehicle generates bad results

Reported by: Adrian Pop Owned by: somebody
Priority: high Milestone: Future
Component: Backend Version: trunk
Keywords: Cc: Willi Braun, Lennart Ochel

Description

For example variable driveline.finalDrive.phi_b is always 0.
Maybe the back-end guys can have a look.
Not sure this is an initialization issue or something else.

If you compile OMC with:

> export GITLIBRARIES=Yes

you will get VehicleInterfaces 1.2.2 with OpenModelica.

Then you can run this script:

loadModel(Modelica); getErrorString();
loadModel(VehicleInterfaces"); getErrorString();
simulate(VehicleInterfaces.Examples.FrontWheelDriveManualVehicle); getErrorString();
val(driveline.finalDrive.phi_b, 0);
val(driveline.finalDrive.phi_b, 1);
val(driveline.finalDrive.phi_b, 2);
val(driveline.finalDrive.phi_b, 3);
val(driveline.finalDrive.phi_b, 4);
val(driveline.finalDrive.phi_b, 5);
val(driveline.finalDrive.phi_b, 6);
val(driveline.finalDrive.phi_b, 7);
val(driveline.finalDrive.phi_b, 8);
val(driveline.finalDrive.phi_b, 9);
val(driveline.finalDrive.phi_b, 10);

Change History (0)

Note: See TracTickets for help on using tickets.