modelica / ModelicaStandardLibrary

Free (standard conforming) library to model mechanical (1D/3D), electrical (analog, digital, machines), magnetic, thermal, fluid, control systems and hierarchical state machines. Also numerical functions and functions for strings, files and streams are included.
https://doc.modelica.org
BSD 3-Clause "New" or "Revised" License
481 stars 169 forks source link

Add PlanarMultiBody to MSL? #464

Open modelica-trac-importer opened 7 years ago

modelica-trac-importer commented 7 years ago

Reported by Volker Beuter on 2 Dec 2010 16:26 UTC The PlanarMultiBody package developed at DLR-RM and already presented at the Modelica2008 conference was intended to be included into the MSL some day. This could be done with the 3.3 release. As soon as I have some Dymola 7 license again I may do some testing.


Migrated-From: https://trac.modelica.org/Modelica/ticket/464

modelica-trac-importer commented 7 years ago

Modified by dietmarw on 3 Dec 2010 13:22 UTC

modelica-trac-importer commented 7 years ago

Modified by dietmarw on 25 Jul 2012 16:23 UTC

modelica-trac-importer commented 7 years ago

Comment by beutlich on 29 Apr 2014 06:33 UTC @dietmarw: Should Milestone be set back to undecided?

modelica-trac-importer commented 7 years ago

Changelog removed by beutlich on 29 Apr 2014 06:33 UTC

modelica-trac-importer commented 7 years ago

Modified by beutlich on 29 Apr 2014 06:33 UTC

modelica-trac-importer commented 7 years ago

Comment by dietmarw on 29 Apr 2014 06:47 UTC It's not on me to decide this but the map-lib group should discuss this.

modelica-trac-importer commented 7 years ago

Modified by beutlich on 5 May 2014 12:25 UTC

modelica-trac-importer commented 7 years ago

Comment by dzimmer on 11 Jun 2014 15:32 UTC The planar mechanical library is available on github:

https://github.com/dzimmer/PlanarMechanics

We support its inclusion into the MSL and welcome a discussion about it.

modelica-trac-importer commented 7 years ago

Comment by beutlich on 11 Jun 2014 20:52 UTC Dirk, are we really speaking about the same library? The PlanarMultiBody was presented 2008 in Bielefeld and e.g. contains contact elements and JointRR. Your library PlanarMechanics was presented 2012 in Fürstenfeldbruck and was focused on teaching and simplification of MultiBody.

modelica-trac-importer commented 7 years ago

Comment by dzimmer on 12 Jun 2014 08:54 UTC Oh indeed, you are right. My mistake.

It is good that you mention that because we plan to integrate the contributions from the Bielefeld version into our own but sofar did not have time for it.

But this definitly should not be forgotten. For the moment however, I refrain from opening a new ticket since the goal of having a planar mechanical librariy in the MSL is the same.

modelica-trac-importer commented 7 years ago

Modified by otter on 7 Oct 2014 15:42 UTC

modelica-trac-importer commented 7 years ago

Comment by otter on 19 Nov 2014 17:36 UTC The latest version of the PlanarMechanics library is available from here: https://github.com/DLR-SR/PlanarMechanics

modelica-trac-importer commented 7 years ago

Comment by otter on 19 Nov 2014 18:15 UTC I evaluated the PlanarMechanics library: I like it and recommend to include this library in the next version of the Modelica Standard Library (MSL). There are two attachments to this ticket containing the evaluation (EvaluationModelicaLibraryCandidate_PlanarMechanics_otter.pdf) and the style check result (PlanarMechanics_StyleCheckLog.html).

The following issues should be fixed before inclusion in the MSL

The following recommendation are a "matter of style" and it is up to the library authors whether to follow the suggestions below

modelica-trac-importer commented 7 years ago

Comment by johan on 21 Nov 2014 05:45 UTC I have evaluated the library and my conclusion is somewhat different than Martins. The discussion touches on more generic aspects of what should be included in MSL. There are two documents attached to this comment:

EvaluationModelicaLibraryCandidate_PlanarMechanics_Johan_Andreasson.pdf - formal evaluation document.

Feedback_Johan_Andreasson.pdf - My feedback to the library developers, including generic comments, detailed suggestions and some open questions.

modelica-trac-importer commented 7 years ago

Comment by beutlich on 21 Nov 2014 08:20 UTC I can only repeat myself on the two different planar libraries:

The PlanarMultiBody was presented 2008 in Bielefeld and e.g. contains contact elements and JointRR. Dirk's library PlanarMechanics was presented 2012 in Fürstenfeldbruck and was focused on teaching and simplification of MultiBody.

modelica-trac-importer commented 7 years ago

Comment by franciscus.vanderlinden on 26 Nov 2014 11:55 UTC I have looked through the comments of otter:

Replying to [comment:12 otter]:

  • Style check with Dymola gives several (minor) issues with missing description string (PlanarMechanics_StyleCheckLog.html). This needs to be fixed.
  • Check with Dymola "pedantic mode" gives 18 errors (all: "the annotation 'revisions' appeared multiple times."). This needs to be fixed.

This is fixed by now by tbeu on Github.

Replying to [comment:12 otter]:

  • Issues with PlanarMechanics.Parts.Body: Parameter "I" is unclear from the documentation. It is stated "Inertia of the Body". From the equations it is clear that the Inertia is with respect to "frame_a". Therefore the documentation string should be changed to "Inertia of the body with respect to the origin of frame_a along the z-axis of frame_a".

This is fixed by now by me Github.

Replying to [comment:12 otter]:

Parameter "g" (local gravity acting on the mass) is questionable. It seems not practical to define at every mass a separate gravity acceleration. If there is a good reason for this parameter, explain it in the documentation, but move it in an "Advanced" tab so that a user does not see it at once. If there is no good reason for this parameter, remove it.

I have moved this to the Advanced tab. However, I would like to keep the parameter to accomodate the possibility to include multiple Planar mechanism in a different orientation.

Replying to [comment:12 otter]:

  • The MultiBody package has "Parts" and "Forces" sub-libraries. In the PlanarMechanics library there is only one package "Parts", that contains both. Maybe it would be better to also use Parts and Forces sub-libraries in PlanarMechanics (I have no strong opinion, but just recognized this).

I would like to link to the discussion on GitHub: Github. Summary: I would keep it this way, it is the same was as in Modelica.Rotational.

modelica-trac-importer commented 7 years ago

Comment by leo.gall on 27 Nov 2014 09:31 UTC General comments about inclusion

Long story short: I think this is a great library, but I don't know if it needs to be in MSL.

Comments on implementation

(Review based on PlanarMechanics 1.3.0, download date 2014-11-19, used in Dymola 2015)

modelica-trac-importer commented 7 years ago

Comment by dietmarw on 19 Dec 2014 07:01 UTC Ticket retargeted after milestone closed

AHaumer commented 6 years ago

I've also used the PlanarMechanics, it is definitvely usefull fpr certain applications. I support the idea of including PlanarMechanics in the MSL.

AHaumer commented 6 years ago

@dzimmer: If you create a pull request, it could be included within short.

HansOlsson commented 6 years ago

Just to be clear: We are currently working on the 3.2.3 release of Modelica Standard Library, and the proposal is to include Planar in 3.3, right?

dietmarw commented 6 years ago

Also I would avoid adding it now one week before we start the beta testing. The next major would be the better point in time to include it if still relevant.