Equations of motion with weld constraints (SOLVED)
Posted: Wed Aug 26, 2020 6:05 am
Hello,
I'm trying to understand how the equations of motion is established when weld constraints are implemented. The model I used is in the attached file. I applied the theories from the documentation of SImbody Matter Subsystem in this link
https://simbody.github.io/simbody-3.6-d ... ystem.html
and calculated these four following terms
What am I missing here? I suspect that cor was not correct but am not sure.
Thank you in advance!
I'm trying to understand how the equations of motion is established when weld constraints are implemented. The model I used is in the attached file. I applied the theories from the documentation of SImbody Matter Subsystem in this link
https://simbody.github.io/simbody-3.6-d ... ystem.html
and calculated these four following terms
- Mdu = Mass matrix * generalized acceleration (M * UDot)
- cor = Centrifugal and Coriolis forces by the method
calcResidualForceIgnoringConstraints(state, Vector(0), Vector_<SpatialVec>(0), Vector(0), cor)
- gra = Gravity by the method
multiplyBySystemJacobianTranspose(state, model.getGravityForce().getBodyForces(state), gra)
- genConstr = Generalized constraint forces, calculated by the method multiplyByGTranspose https://simbody.github.io/simbody-3.6-d ... e2cd7efb50
What am I missing here? I suspect that cor was not correct but am not sure.
Thank you in advance!