Ciao Gianni,
motor frames are defined in SolidWorks through *Reference 
Geometry>Coordinate System* entities.
As any other link in Chrono, the Z axis of the Coordinate System is taken 
as the revolute axis. No additional change is made at the code level.

   1. your "Sistema di coordinate", the one that you selected by clicking 
   on "Select Marker" where is placed exactly? I assume it should be placed 
   along the rotation axis, with the Z axis oriented in the proper direction, 
   but I don't see it.
   The one that you posted is not the motor marker and has an offset with 
   respect to the rotation axis that there shouldn't be
   2. I see that you selected "Motor guide constraint". This means that the 
   Chrono motor will add also the 5 constraints to avoid the two pieces to 
   move away one from the other.
   This is reasonable *only if you did not put any other Solidworks link 
   between 'engine' and 'arm'*. I recommend you to untick this checkbox, 
   link the two bodies through SolidWorks links and use the Chrono motor only 
   for the rotation degree of freedom.
   3. did you try to run the model directly in Solidworks through the "Run 
   simulation" button? At least you can check if the model is fine.
   4. the undefined command "ImportSolidworksSystemCpp" suggests that 
   something is wrong with your CMake: when you said that you "copy-pasted all 
   the headers and commands from the import template" did you also modified 
   your CMake script accordingly? Can you please share it?

Dario



Il giorno sabato 29 giugno 2024 alle 13:34:18 UTC+2 eldest...@gmail.com ha 
scritto:

> Good morning,
>
> my name is Gianni, a grad master student and I need Project Chrono to 
> perform analysis for my thesis.
> For my project, I need to import a CAD assembly from Solidworks, assign to 
> a rotating arm a predefined angular speed, and simulate its interaction 
> with a particle bed generated as shown in the code "demo_MCORE_Cratering" 
> with the Multicore module. For the simulation visualization, I want to use 
> OpenGL. Plus, I am currently using the latest versions of Chrono (v9.0) and 
> Solidworks add-in (released in May 2024).
> Therefore, I have some questions regarding the Import procedure:
>
> 1) First, I tried the import procedure in Irrlicht following the baseline 
> template given by the SolidWorks add-in. I created a simple motor rotating 
> at a constant rate directly with the Solidworks add-in, however, even 
> though the simulations runs smoothly without errors, the arm does not 
> rotate. I applied the constraints in the assembly in order to leave the 
> rotating arm as the only degree of freedom (i.e. I blocked all the other 
> rotations for the other components).
> I leave this image as reference:
> [image: Screenshot 2024-06-29 131735.png]
> All the bodies share the same reference system which coincides with the 
> global one. The blue element in the figure is the one which should rotate 
> about the Z-axis. The "Engine" component is the grey cylinder attached to 
> the arm. 
>
> This is the output of the conversion in C++ for the motor.
> [image: Screenshot 2024-06-29 132300.png]
>
> 2) Furthermore, when I tried to import the CAD in the Multicore 
> environment, I get the error that the command "ImportSolidworksSystemCpp" 
> is not defined. This happens even though I copy-pasted all the headers and 
> commands from the import template. Could you please help me?
>
> Thank you in advance for your help!
>
> Gianni
>
>

-- 
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 projectchrono+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/projectchrono/e74e2687-3e7a-45d1-a7f6-0b5c9320fe8fn%40googlegroups.com.

Reply via email to