JuliaComputing / Multibody.jl

Model and simulate multibody systems in Julia
Other
14 stars 2 forks source link

introduce some intermediate level parameters #151

Closed baggepinnen closed 4 weeks ago

baggepinnen commented 1 month ago

This PR depends on:

Note to self: If one of the errors

 The initial condition for parameter body₊body₊m isn't provided.
car₊body₊m cannot be converted to Float64. Please provide a default value for the symbolic variables.

appear, it might be due to parameters being forwarded straight through a component like BodyShape using the kwargs..., and the default for the parameter in the inner body does not find the corresponding parameter in the ParentScope (BodyShape). By introducing the same parameter in the BodyShape, this is resolved.

It can also happen if pars aren't provided to the ODESystem constructor in the component that defines them.