

Alex – did you try to reduce the integration time step to some small value, to see if this makes any difference?
Dan
---------------------------------------------
Bernard A. and Frances M. Weideman Professor
NVIDIA CUDA Fellow
Department of Mechanical Engineering
Department of Computer Science
University of Wisconsin - Madison
4150ME, 1513 University Avenue
Madison, WI 53706-1572
---------------------------------------------
From: projec...@googlegroups.com <projec...@googlegroups.com>
On Behalf Of Aleksandr Prokhorov
Sent: Wednesday, November 6, 2024 10:55 AM
To: ProjectChrono <projec...@googlegroups.com>
Subject: [chrono] Link unexpected behavior
Dear CHRONO.
I have started to investigate a CHRONO engine recently.
The problem I am trying to solve is the control of 1-DOF system in the application of the quarter-car model. I have a picture of my model assembly.

The links a Initialized with te next constraints:
wheelAxisLink = chrono_types::make_shared<ChLinkMateSpherical>();
wheelAxisLink->Initialize(wheel, axis, false, wheel->GetPos(), axis->GetPos());
wheelAxisLink->SetConstrainedCoords(true, true, true, true, true, false);
holdBodyRotationLink = chrono_types::make_shared<ChLinkMateSpherical>();
holdBodyRotationLink->Initialize(body, floor, false, body->GetPos(), floor->GetPos());
holdBodyRotationLink->SetConstrainedCoords(false, false, false, true, true, true);
holdBodyTranslationLink = chrono_types::make_shared<ChLinkMateSpherical>();
holdBodyTranslationLink->Initialize(body, axis, false, body->GetPos(), axis->GetPos());
holdBodyTranslationLink->SetConstrainedCoords(true, false, true, true, true, true);
It is working properly. But if the mass of "wheel" is significantly larger than the mass of "body" and the speed of motor rotation is high, the constraints applied for the links are not satisfied anymore.

Could you help with any idea how to fix that issue if any exists?
Also by some reason, the pice of code:
tools::drawSpring(vis.get(), 1, newSystem.GetBodyPos(), newSystem.GetWheelPos(),
ChColor(1, 1, 1), 80, 10, true);
does not make a "spring" visible.
Best regards, Alex
--
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/ced273ee-b083-4f20-bb63-28b997acdd15n%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/projectchrono/42609906-e61e-4c88-83e8-2a78753a3969n%40googlegroups.com.
Is there a screenshot?
To view this discussion visit https://groups.google.com/d/msgid/projectchrono/CAN4%2Bx7UyOmtvOjXNv6RZOe4SLOEZOO2HEiXpAL3i1NEsmsKySA%40mail.gmail.com.

Aleksandr,
--Radu
From: projec...@googlegroups.com <projec...@googlegroups.com>
On Behalf Of Aleksandr Prokhorov
Sent: Thursday, November 7, 2024 7:07 PM
To: Dan Negrut <neg...@wisc.edu>
Cc: Dario Mangoni <dariom...@gmail.com>; ProjectChrono <projec...@googlegroups.com>
Subject: Re: [chrono] Link unexpected behavior
A screenshot of the simulation is below. I expect the spring that I define with the piece of code (1) should be between a gray block and a red-white circle;
(1)
tools::drawSpring(vis.get(), 1, newSystem.GetBodyPos(), newSystem.GetWheelPos(), ChColor(1, 1, 1), 80, 10, true);
But in fact, it does not appear here. May be any body has any Idea how to solve this issue?
Simulation is performed with the Irrlicht visualization system.

Best Regards
Aleksandr Prokhorov
To view this discussion visit https://groups.google.com/d/msgid/projectchrono/CAN4%2Bx7XLPshqEtEDzNaR5n_Bhw-96JoAshcmpKGEN9jBt%3DVe_g%40mail.gmail.com.