Hi Mohammad,

I think that *demo_GPU_mixer.cpp* demo does exactly what you needed. While 
you are looking into this demo, I just want to mention one thing to avoid 
confusion: in terms of controlling the mesh motion in C::GPU, the *Transform 
*call before *AddMesh *should only be used to "align" the mesh with its CoM 
before the simulation starts, so that when the mesh is loaded it is 
expressed in its centroid and principal frame; it should not be used to set 
the initial location of the mesh. Instead, like in the demo, use 
*ApplyMeshMotion 
*to control the mesh motion throughout the simulation.

Hope it helps!
Ruochun

On Saturday, September 3, 2022 at 10:58:19 AM UTC-5 [email protected] 
wrote:

> Hello there, 
>
> I am trying to perform a simulation using the gpu module where I want to 
> import a cylindrical screw (picture attached) into a bed on granular media 
> and then have the screw spin on top of the bed and then obtain the 
> forces/torques on the screw. 
>
> I am not sure about what would be the best way to import the screw in a 
> way that it's set on the bed at the start of the simulation. Also, I am not 
> sure how I can impose a type of motion that would force the screw to spin 
> on top of that bed since I am importing it as an .obj file. Finally, due to 
> the shape of the screw, I assume that when the screw moves it will tend to 
> turn to the left/right. Is there a way to restrict the motion of the screw 
> to be just straight while spinning? I was wondering if there are any demos 
> regarding this or if someone has done something similar before. Any help 
> will be appreciated. 
>
> Thank you so much in advance, 
>
>
>

-- 
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/80d7d0a9-d876-4da8-b3c1-084100b3e9d0n%40googlegroups.com.

Reply via email to