How to apply different types of motions for different intervals

46 views
Skip to first unread message

Jack Stephenson

unread,
Nov 14, 2022, 6:10:10 PM11/14/22
to ProjectChrono
I am trying to apply different types of motions on a mesh object at different intervals, and however, the program would eventually crash after a certain point. I keep getting the following message:

"No available contact pair slots for body [X] and body [Y]"
Where X and Y are the numbers representing sphere bodies.

I also tried running the sim where I only had one mesh motion being applied, and I got a new error: "Sphere [X] is touching 12 spheres already and we just found another!"

For reference, I'm applying motion to a cube.

Dan Negrut

unread,
Nov 14, 2022, 8:19:52 PM11/14/22
to Jack Stephenson, ProjectChrono

Is this Chrono used to do granular dynamics on the GPU?

Dan

 

-------------------------------------------------

Bernard A. and Frances M. Weideman Professor

NVIDIA CUDA Fellow

Director, Wisconsin Applied Computing Center

Department of Mechanical Engineering

Department of Computer Science

University of Wisconsin - Madison

4150ME, 1513 University Avenue

Madison, WI 53706-1572

608 772 0914

http://sbel.wisc.edu/

http://projectchrono.org/

-------------------------------------------------

--
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 on the web visit https://groups.google.com/d/msgid/projectchrono/aa8cb2c5-03e9-4291-a313-8d546de45562n%40googlegroups.com.

Jack Stephenson

unread,
Nov 14, 2022, 10:53:52 PM11/14/22
to ProjectChrono
Yes it is.

Ruochun Zhang

unread,
Nov 15, 2022, 12:56:51 AM11/15/22
to Jack Stephenson, ProjectChrono
Hi Jack,

The most common cause is that the simulation de-stabilized and the resulting chaotic dynamics will eventually lead to a "no available contact slots" error. Typically, this can be identified if you visualize the simulation, and the physics won't look right.

Usually reducing time step sizes will resolve the problem. 

Thank you,
Ruochun



--

Jack Stephenson

unread,
Nov 15, 2022, 6:21:59 PM11/15/22
to ProjectChrono
Thank you, and I'm also trying to apply mesh motion to a mesh object at two different intervals. And I'm not sure if I'm applying it correctly. I tried doing ApplyMeshMotion and used two different if statements. This is the segment of code where I tried doing the ApplyMeshMotion thing:
Screenshot (2142).png

Ruochun Zhang

unread,
Nov 16, 2022, 9:14:12 PM11/16/22
to ProjectChrono
Hi Jack,

I don't see any problem with the snippet. Do note that in both cases you are showing here, the linear position and angular rotation of your mesh 0 are explicitly set as being the same as cube_body. Therefore, the velocity and angular velocity you defined, especially your custom mesh_lin_vel, will not have any significant effect in determining how the mesh moves. Unless your cube_body is also controlled by you to be moving at mesh_lin_vel of course.

Thank you,
Ruochun
Reply all
Reply to author
Forward
0 new messages