Opened 7 years ago

Last modified 3 years ago

#4471 assigned defect

Support IdealizedContact Library

Reported by: Oliver Lenord Owned by: Adrian Pop
Priority: high Milestone:
Component: Third-Party Libraries Version: v1.11.0
Keywords: IdealizedContact, library coverage Cc:

Description

Simulating IdealizedContact.Examples.Example1 throws the following error message below.

The IdealizedContact library is not listed under libray coverage.

Are there any plans to support the idealized contact library in the future?

[3] 13:49:45 Übersetzung Fehler
[IdealizedContact: 16883:5-16919:11]: Class specialization violation: .Modelica.Icons.TypeString is a type, not a connector.

[4] 13:49:45 Übersetzung Fehler
Error occurred while flattening model IdealizedContact.Examples.Example1

Change History (13)

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

I added the library to the coverage suite. I guess the fix needed would be to allow:

model M
  type T
    extends String;
  end T;
  connector C = output T;
  C c;
end M;

(And to check the restrictions on connectors elsewhere?)

comment:2 by Martin Sjölund, 7 years ago

Milestone: Future1.12.0
Status: newaccepted

comment:3 by Martin Sjölund, 7 years ago

Some problems fixed with 564c405. Seems to be backend issues due to modifications on outer elements in the library though. I'll see what the coverage suite says after these changes.

comment:4 by Francesco Casella, 7 years ago

Milestone: 1.12.01.13.0

Milestone moved to 1.13.0 due to 1.12.0 already being released.

comment:5 by Martin Sjölund, 7 years ago

1.12.0 and the master pass the frontend, but most examples fail in the backend: https://libraries.openmodelica.org/branches/master/IdealizedContact/IdealizedContact.html

in reply to:  5 comment:6 by francesco.cavenago@…, 7 years ago

Replying to sjoelund.se:

1.12.0 and the master pass the frontend, but most examples fail in the backend: https://libraries.openmodelica.org/branches/master/IdealizedContact/IdealizedContact.html

just an information, are you going to fix this problem in the next release?

thank you

comment:7 by Martin Sjölund, 7 years ago

Owner: changed from Martin Sjölund to Adrian Pop
Status: acceptedassigned

@adrpo: Will we fix this? It seems related to equalityConstraint / overconstrained connectors which I don't understand at all.

in reply to:  7 comment:8 by francesco.cavenago@…, 7 years ago

Replying to sjoelund.se:

@adrpo: Will we fix this? It seems related to equalityConstraint / overconstrained connectors which I don't understand at all.

It seems to me that in the class IdealizedContact.ContactSurfaces.SphericalContactSurface there is an unnecessary connection:

connect(shape.frame_a, contact_a.frame) annotation (Line(
points={{-10,22},{-10,8},{100,8}},
color={95,95,95},
pattern=LinePattern.None,
thickness=0.5,
smooth=Smooth.None));

If commented, the problem of an overdetermined system seems to be fixed (at least for example 1, where only spherical contacts are involved) and the simulation starts. Also in other classes of IdealizedContact.ContactSurfaces there is this problem. However, the simulation of the examples with other types of surface does not work because OMEdit can not handle "replaceable" keyword in the declaration in the class IdealizedContact.ContactBlock.Contact.

comment:9 by Francesco Casella, 6 years ago

Milestone: 1.13.01.14.0

Rescheduled to 1.14.0 after 1.13.0 releasee

comment:10 by Francesco Casella, 5 years ago

Milestone: 1.14.01.16.0

Releasing 1.14.0 which is stable and has many improvements w.r.t. 1.13.2. This issue is rescheduled to 1.16.0

comment:11 by Francesco Casella, 4 years ago

Milestone: 1.16.01.17.0

Retargeted to 1.17.0 after 1.16.0 release

comment:12 by Francesco Casella, 4 years ago

Milestone: 1.17.01.18.0

Retargeted to 1.18.0 because of 1.17.0 timed release.

comment:13 by Francesco Casella, 3 years ago

Milestone: 1.18.0

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.