Hi Gianni, - can you please share the CMakeCache that is found in your build folder? - what the "Dettagli" panel returns when the "Run simulation" button is pressed? - can you please try to remove the motors in Solidworks and do them manually in Chrono?
There is something wrong, but it's difficult to tell what. Il giorno domenica 30 giugno 2024 alle 16:07:37 UTC+2 [email protected] ha scritto: > [image: Screenshot 2024-06-30 145040.png] > Buongiorno Dario, > thank you again for your availability. At the beginning of the message you > can find a clearer image of my solidworks CAD: > > 1. I created "Sistema di coordinate 1" with the function *Reference > Geometry>Coordinate System* by choosing the origin point of the > coordinate system of the "Engine" component. As shown in the image, it is > aligned with the global reference frame. The only offset is the fact that > it is shifted along the Z-axis with respect to where the two rotating faces > are in contact. > > 2. I implemented your suggestion but still "Arm" does not rotate. The > other constraints between "Engine" and "Arm" are the "Concentric" one and a > zero offset imposed along the z-axis. In this way, all the other degrees of > freedom with the exception of rotation around the Z-axis should be blocked. > I have also tried to comment these links and rerun the simulation, and the > arm detaches from the rest of the body as it should be. > > 3. I tried the "Run simulation" button and I got the error message related > to Irrlicht in the figure even though the compile run in MSVS 2022 does not > show any problem. > > 4. I send you both the CMakeLists and the CPP code in case it helps. > Basically, they have been created by merging the codes solid_import_cpp > and demo_MCORE_Cratering. Let me know if you need anything else. > > Gianni > Il giorno domenica 30 giugno 2024 alle 12:27:57 UTC+2 [email protected] > ha scritto: > >> 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 [email protected] >> 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/6aa20c99-7cb6-49f2-a4b2-e1c4d376dc2an%40googlegroups.com.
