Hi Massimiliano, did you get a look at demos? demo_MBS_motors, case A-1
Please mind that *ChLinkMotorRotationSpeed *includes *by default* the revolute link (if you don't disable it). You can change its behaviour through ::SetSpindleConstraint, but I would recommend you to remove the ChLinkLockRevolute instead. ChLinkMotors are indeed still links (i.e. joints) so please consider that there are two different kind of initialization: - giving just *one *absolute frame <https://api.projectchrono.org/development/classchrono_1_1_ch_link_mate_generic.html#a872f0a5387924a85878f72b7a333a9cc>: this will place the joint frame(s) at that given position and there will be no violation whatsoever - giving the position of the link *relative to both bodies*, like this <https://api.projectchrono.org/development/classchrono_1_1_ch_link_mate_generic.html#aff5d77b53b56cbf948eee07608de045d>or this <https://api.projectchrono.org/development/classchrono_1_1_ch_link_mate_generic.html#aa5c055bacc93ea4d37e71622f2e22c62>: this will require you to place the bodies in a feasible position (i.e. so to not violate joints); this is not strictly required, but not doing it could lead to crash Dario Il giorno lunedì 11 marzo 2024 alle 14:03:21 UTC+1 [email protected] ha scritto: > Hello everyone, I'm new to Project Chrono and I'm trying to rotate a body > around an axis, but so far I have obtained results that are not what I > would have liked. I created a chlinklockrevolute and then a > ChLinkMotorRotationSpeed to which I imposed a constant angle function of > the value of Pi. Although the body rotates around the axis I have chosen, > it does so following a trajectory that appears to be a spiral which moves > it further and further away from the constraint. Where am I wrong? > > Thanks for the help. > -- You received this message because you are subscribed to the Google Groups "ProjectChrono" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/8902c30f-6150-4dd9-b4d6-b59f845e9db8n%40googlegroups.com.
