Hi Matt,

Look at 
ChLinkMotionImposed<https://api.projectchrono.org/classchrono_1_1_ch_link_motion_imposed.html>
 and demos such as 
demo_MBS_imposed_motion<https://github.com/projectchrono/chrono/blob/main/src/demos/mbs/demo_MBS_imposed_motion.cpp>
 and 
demo_ROBOT_Industrial<https://github.com/projectchrono/chrono/blob/main/src/demos/robot/industrial/demo_ROBOT_Industrial.cpp>
 that use it.

--Radu

From: projectchrono@googlegroups.com <projectchrono@googlegroups.com> On Behalf 
Of Matt Tuman
Sent: Friday, July 11, 2025 10:28 PM
To: ProjectChrono <projectchrono@googlegroups.com>
Subject: [chrono] Prescribing Kinematics for a ChBody at the Next Timestep

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
--
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 
projectchrono+unsubscr...@googlegroups.com<mailto:projectchrono+unsubscr...@googlegroups.com>.
To view this discussion visit 
https://groups.google.com/d/msgid/projectchrono/08fd8eda-f072-4a46-a770-d8436ed51710n%40googlegroups.com<https://urldefense.com/v3/__https:/groups.google.com/d/msgid/projectchrono/08fd8eda-f072-4a46-a770-d8436ed51710n*40googlegroups.com?utm_medium=email&utm_source=footer__;JQ!!Mak6IKo!JwPrBGjHPFfNSABeshmQHG_wNRwMH6wDI7NPS32QneanU6KwLQxBBer_wg93u-cUID1XZ1KlrOm_lP0$>.

-- 
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 projectchrono+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/projectchrono/CH3PPF46CDC2185ED56777D5DCE92B49A42A74AA%40CH3PPF46CDC2185.namprd06.prod.outlook.com.

Reply via email to