Changes between Initial Version and Version 1 of Ticket #5083
- Timestamp:
- 2018-08-27T12:25:04Z (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #5083 – Description
initial v1 13 13 (-({-bodyBox1.frame_a.t[1], -0.0, -bodyBox1.frame_a.t[3]} * revolute1.e + revolute1.constantTorque.tau_constant)) / ({-0.0, -1.0, -0.0} * revolute1.e) 14 14 }}} 15 which seems to me plain wrong, and causes a division by zero, as {{{revolute1.e={0,0,1} }}}. 15 that would be OK if {{{{0,-1,0}*e <> 0}}}, which is unfortunately not the case here. 16 16 17 17 The old FE instead expands the scalar product in the equation, passing it to the back-end as … … 21 21 which allows the back-end to process the equations correctly and eventually find the [https://libraries.openmodelica.org/branches/master/Modelica_trunk/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim correct result]. This issue currently prevents a lot of MultiBody models to simulate when using the NF. 22 22 23 I see two problems here. The first is that the NF does not expand {{{revolute1.e}}} into its components and does notcompute the scalar product explicitly, as the OF did. If this could be fixed, we should hopefully get most of the MultiBody models to work with the NF.23 I see two problems here. The first is that the NF does not expand {{{revolute1.e}}} into its components and subsequently compute the scalar product explicitly, as the OF did. If this could be fixed, we should hopefully get most of the MultiBody models to work with the NF. 24 24 25 The second is that the back-end solves an equation in a way that I cannot explain and seems to me plain wrong. I'll open a separate ticket on this topic. 25 The second is that the back-end solves an equation in a dubious way, which turns out to be singular. I'm not sure whether it is possible to avoid this behaviour without introducing unnecessary restrictions that could harm the successful symbolic solution of equations in other cases. 26 27 In any case, I guess it will be best to make sure that the NF expands the scalar product as the NF did.