-
Notifications
You must be signed in to change notification settings - Fork 4
WIP: add more components #1
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
Conversation
The spring and body in the example are a part of Multibody as well. https://build.openmodelica.org/Documentation/Modelica.Mechanics.MultiBody.Forces.Spring.html
You can define a singleton with some overloads. |
ModelingToolkit = "961ee093-0014-501f-94e3-6117800e7a78" | ||
ModelingToolkitStandardLibrary = "16a59e39-deab-5bd0-87e4-056b12336739" | ||
Rotations = "6038ab10-8711-5258-84ad-4b1120ba62dc" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remember compat
superseded by |
Current problems to be resolved:
Translational
to components fromMultibody
since MTK errors when connectors of different types are used inconnect
.The example in
runtest.jl
tries to implementwhere
Spring
is a 2D component withFlange
connectors whereasBody
is a multibody component withFrame
connectors.World
component is a hard-coded constant. This component is required for all models, and a new model-compiler pass that propagates the world component to all other components is required to run before the standard MTK passes. Some equations in multibody components refer to the world component, we need to figure out a way to defer the definition of these equations until the world component is known.