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

On Tuesday, November 15, 2022 at 5:21:59 PM UTC-6 Jack Stephenson wrote:

> 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:
>
>
>
> On Monday, November 14, 2022 at 10:56:51 PM UTC-7 Ruochun Zhang wrote:
>
>> 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
>>
>> On Mon, Nov 14, 2022 at 9:53 PM Jack Stephenson <[email protected]> 
>> wrote:
>>
>>> Yes it is.
>>>
>>> On Monday, November 14, 2022 at 6:19:52 PM UTC-7 Dan Negrut wrote:
>>>
>>>> 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 <(608)%20772-0914>
>>>>
>>>> http://sbel.wisc.edu/
>>>>
>>>> http://projectchrono.org/ 
>>>>
>>>> -------------------------------------------------
>>>>
>>>>  
>>>>
>>>> *From:* [email protected] <[email protected]> *On 
>>>> Behalf Of *Jack Stephenson
>>>> *Sent:* Monday, November 14, 2022 5:10 PM
>>>> *To:* ProjectChrono <[email protected]>
>>>> *Subject:* [chrono] How to apply different types of motions for 
>>>> different intervals
>>>>
>>>>  
>>>>
>>>> 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.
>>>>
>>>> -- 
>>>> 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/aa8cb2c5-03e9-4291-a313-8d546de45562n%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/projectchrono/aa8cb2c5-03e9-4291-a313-8d546de45562n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> -- 
>>> 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/760a5944-5800-4752-9095-cd6965d1a8e1n%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/projectchrono/760a5944-5800-4752-9095-cd6965d1a8e1n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>> -- 
>> Ruochun Zhang
>> Email: [email protected]
>> Email: [email protected]
>> Tel: 832-353-5111 <(832)%20353-5111>
>>
>

-- 
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/ce8bbe7a-c130-4b30-bbc5-e23c948ebc80n%40googlegroups.com.

Reply via email to