You can use callback mechanisms to intercept this type of information and 
process it however you want.  Look at 
demo_MBS_callbackSMC<https://github.com/projectchrono/chrono/blob/main/src/demos/mbs/demo_MBS_collisionSMC.cpp>
 and 
demo_MBS_callbackNSC<https://github.com/projectchrono/chrono/blob/main/src/demos/mbs/demo_MBS_callbackNSC.cpp>.
 Note that, depending on the contact formulation, some information may not be 
available.

--Radu

From: [email protected] <[email protected]> On Behalf 
Of Yaqing Wang
Sent: Thursday, April 11, 2024 3:21 PM
To: ProjectChrono <[email protected]>
Subject: [chrono] Contact between two objects

Hi,

I wonder if Chrono has a function to let me get the contact information of two 
specific objects. Like there are three objects A, B, and C, and they contact 
each other. I want to know the contact force, position, and normal direction to 
the contact surface of the collision between A and B only. If more, relative 
velocity and friction.

I am using "ChBody->GetContactForce()" but it seems to give the sum of all 
contact forces.

Thanks,
--
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]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/projectchrono/010b05bb-2b53-47c3-9788-b118c457d0c4n%40googlegroups.com<https://urldefense.com/v3/__https:/groups.google.com/d/msgid/projectchrono/010b05bb-2b53-47c3-9788-b118c457d0c4n*40googlegroups.com?utm_medium=email&utm_source=footer__;JQ!!Mak6IKo!ICpN-0h8-kbF-w0yyOw5W-GMpjmEqG441QS8NI8Hvxwj3qm4W8XP4Ih7dkFVS2D-30yE2GNDVAJ433RGtkkaWQ$>.

-- 
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/PH0PR06MB8237EDBF32BC9FC79B8DE311A7052%40PH0PR06MB8237.namprd06.prod.outlook.com.

Reply via email to