Prescribing Kinematics for a ChBody at the Next Timestep

39 views
Skip to first unread message

Matt Tuman

unread,
Jul 11, 2025, 4:28:13 PMJul 11
to ProjectChrono
Hi All,

I'm working on a simulation where I need to prescribe the kinematics (position, velocity, and acceleration) of a ChBody one timestep ahead, rather than at the current time. I understand that SetPos(), SetVel(), and related methods can be used to prescribe the current position and velocity of a body. However, I'm looking for functionality more similar to the rheonomic constraints like ChLinkMotor classes that use time-dependent functions to define motion.

My questions are the following:

  1. Is there currently a way to specify kinematics of a ChBody at the next time step? I have been unable to find it thus far.

  2.   If this functionality doesn’t exist, do you have any recommendations for how to implement it? Would extending an existing ChLinkMotor or using a custom constraint be appropriate?  


Thanks!
Matt

Radu Serban

unread,
Jul 12, 2025, 2:46:09 AMJul 12
to ProjectChrono

Hi Matt,

 

Look at ChLinkMotionImposed and demos such as demo_MBS_imposed_motion and demo_ROBOT_Industrial that use it.

 

--Radu

--
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 projectchron...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/projectchrono/08fd8eda-f072-4a46-a770-d8436ed51710n%40googlegroups.com.

Matt Tuman

unread,
Jul 15, 2025, 11:37:45 AMJul 15
to Radu Serban, ProjectChrono
Thank you very much!

On Jul 11, 2025, at 11:46 PM, 'Radu Serban' via ProjectChrono <projec...@googlegroups.com> wrote:


You received this message because you are subscribed to a topic in the Google Groups "ProjectChrono" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/projectchrono/GhBw-4wo0SU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to projectchron...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/projectchrono/CH3PPF46CDC2185ED56777D5DCE92B49A42A74AA%40CH3PPF46CDC2185.namprd06.prod.outlook.com.
Reply all
Reply to author
Forward
0 new messages