Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in Modelica Mechanics #373

Closed
modelica-trac-importer opened this issue Jan 14, 2017 · 2 comments
Closed

Error in Modelica Mechanics #373

modelica-trac-importer opened this issue Jan 14, 2017 · 2 comments
Assignees
Labels
bug Critical/severe issue L: Mechanics.MultiBody Issue addresses Modelica.Mechanics.MultiBody
Milestone

Comments

@modelica-trac-importer
Copy link

modelica-trac-importer commented Jan 14, 2017

Modified by dietmarw on 1 Jun 2010 08:51 UTC
There seems to be a problem in Modelica.Mechanics.MultiBody.Parts.BodyCylinder

The error is in the calculation of r_CM which is set to

r_CM[3]=Modelica.Math.Vectors.normalize(r)*length/2 

but must be

r_CM[3] = (r + r_shape) / 2;

Reported by erik.aberg on 1 Jun 2010 08:38 UTC
One of our customers suspects that there is a bug in Modelica Mechanics.

Best regards,
Erik Åberg

Original message:

The problem is in Modelica.Mechanics.MultiBody.Parts.BodyCylinder

The error is in the calculation or r_CM which is set to
r_CM[3]=Modelica.Math.Vectors.normalize(r)*length/2

but must be

r_CM[3] = (r + r_shape) / 2;


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

@modelica-trac-importer
Copy link
Author

Modified by dietmarw on 1 Jun 2010 08:51 UTC

@modelica-trac-importer modelica-trac-importer added the L: Mechanics.MultiBody Issue addresses Modelica.Mechanics.MultiBody label Jan 14, 2017
@modelica-trac-importer
Copy link
Author

Comment by otter on 26 Jul 2010 19:35 UTC
Fixed in c1a246c.

The correct formula is:
rCM = r_shape + Modelica.Math.Vectors.normalize(lengthDirection)*length/2

The same error was present in BodyBox and was also corrected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Critical/severe issue L: Mechanics.MultiBody Issue addresses Modelica.Mechanics.MultiBody
Projects
None yet
Development

No branches or pull requests

2 participants