Setting Initial speed for vehicles

50 views
Skip to first unread message

Prabasgarage

unread,
Apr 24, 2024, 4:46:07 AM4/24/24
to ProjectChrono
Dear community,

I am trying to set initial speed of a vehicle to 40mph. Is there a way to set initial speed of the vehicle in chrono? 

Thanks,
Prabanjan

dr.ratz...@gmail.com

unread,
Apr 25, 2024, 6:22:20 AM4/25/24
to ProjectChrono
Hi,

our vehicle models have a member function 'void SetInitFwdVel(double fwdVel)'. If you for example use
double forward_velocity = 40.0 * 0.44704; // convert mph into m/s
HMMW myCar;
...
myCar.SetInitFwdVel(forward_velocity);
...
myCar.Initialize();

The initial velocity is set now, but the vehicle need some time to reach steady state yet.
Reply all
Reply to author
Forward
0 new messages