Luca, Sorry for the late reply. Concave geometries cannot be treated with primitive shapes. To model a hollow cylinder container, you will need to use some approximation.
1. You can use a mesh (that you create in some external authoring tool and export as a Wavefront OBJ file). Note that, unless you are also interested in contact interactions with the outside of this cylindrical container, it is most efficient to only model it as a single surface mesh (of course, making sure the face normal point towards the inside). No matter what, when you create the Chrono collision shape (ChCollisionShapeTriangleMesh<https://api.projectchrono.org/classchrono_1_1_ch_collision_shape_triangle_mesh.html>), make sure to set a non-zero value for the last constructor argument. That represents the radius of a sweeping sphere which provides a “thickness” to the mesh for collision detection purposes and is important for robustness of the numerical collision detection algorithm (use a value that is meaningful for your particular problem; some experimentation may be needed). 2. Alternatively, you can use a collection of boxes arranged in a circle to model the cylindrical container. In fact, a utility function to create such a container is already provided in Chrono: see chrono::utils:: CreateCylindricalContainerFromBoxes<https://api.projectchrono.org/group__chrono__utils.html#gae8bff47b51b917fdc35d0146322553ad>. This is no worse an approximation that using a triangular mesh (after all, they both provide a “faceted” approximation of the cylindrical surface) and you can control the resolution by increasing the number of boxes. --Radu From: [email protected] <[email protected]> On Behalf Of nevio lo stirato Sent: Thursday, July 18, 2024 7:52 PM To: ProjectChrono <[email protected]> Subject: Re: [chrono] Hollow cylinder and other similar geometries Hello, Is there any news? I'm finally going with multicore. Thank you in advance. Lucas Il mar 2 lug 2024, 20:36 Lucas <[email protected]<mailto:[email protected]>> ha scritto: I'm undecided and I'm considering between multicore and granular, but for now I'm using multicore. Since I was considering just the development of the geometry I didn't consider there was a difference for the modules regarding the collision. On Friday, June 28, 2024 at 4:28:36 PM UTC+2 Radu Serban wrote: Please clarify what module in Chrono you are interested in using. Defining collision geometry is different for different modules. --Radu From: [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>> On Behalf Of Lucas Sent: Friday, June 28, 2024 4:22 PM To: ProjectChrono <[email protected]<mailto:[email protected]>> Subject: [chrono] Hollow cylinder and other similar geometries Hi there, I have a question: I need to create a cylindrical container (i.e. a hollow cylinder) but I've noticed that this type of geometry is not present in chrono. I thought of performing a sort of boolean subtraction between an inner and outer cylinder by setting false to the EnableCollision command, however this causes me problems since I would have to use the cylinder as a container and the EnableCollision of the outer cylinder remains set to true. Is there a simple method without resorting to CAD imports to create geometries of this type or similar? Thanks. -- 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]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/57372832-50ee-47ee-8c90-4e9bd32a6d82n%40googlegroups.com<https://urldefense.com/v3/__https:/groups.google.com/d/msgid/projectchrono/57372832-50ee-47ee-8c90-4e9bd32a6d82n*40googlegroups.com?utm_medium=email&utm_source=footer__;JQ!!Mak6IKo!KVm6znbXDxktHyTJNsWSuqJGADExNmMyN4KOKCkgOiiYax_n-0cId8yFsmkAOQor5aKjzVFAHSn4evMxHbMeLqt7$>. -- You received this message because you are subscribed to a topic in the Google Groups "ProjectChrono" group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/projectchrono/0Hd_htvM4mQ/unsubscribe<https://urldefense.com/v3/__https:/groups.google.com/d/topic/projectchrono/0Hd_htvM4mQ/unsubscribe__;!!Mak6IKo!Mml69LuvyoqAz1StcxEIrgR-4RDYCUmJ8AwCJxBp8Yw1nPrYBzZzPVdF6TYxMdi5csTcOqBDrb6VhHDcKofrH4fX$>. To unsubscribe from this group and all its topics, send an email to [email protected]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/95e9bb41-e9dd-4686-8e6d-ea1d33dfd788n%40googlegroups.com<https://urldefense.com/v3/__https:/groups.google.com/d/msgid/projectchrono/95e9bb41-e9dd-4686-8e6d-ea1d33dfd788n*40googlegroups.com?utm_medium=email&utm_source=footer__;JQ!!Mak6IKo!Mml69LuvyoqAz1StcxEIrgR-4RDYCUmJ8AwCJxBp8Yw1nPrYBzZzPVdF6TYxMdi5csTcOqBDrb6VhHDcKoEAXMrP$>. -- 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]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/CA%2B0gwqRNcQQxroX7msmSwov6qWTxuCjubxtR7YXEA-ASx14Xtg%40mail.gmail.com<https://urldefense.com/v3/__https:/groups.google.com/d/msgid/projectchrono/CA*2B0gwqRNcQQxroX7msmSwov6qWTxuCjubxtR7YXEA-ASx14Xtg*40mail.gmail.com?utm_medium=email&utm_source=footer__;JSU!!Mak6IKo!Mml69LuvyoqAz1StcxEIrgR-4RDYCUmJ8AwCJxBp8Yw1nPrYBzZzPVdF6TYxMdi5csTcOqBDrb6VhHDcKpa55r2K$>. -- 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/CH3PPF46CDC2185CCFA8F7157B67ECAE3C4A7B22%40CH3PPF46CDC2185.namprd06.prod.outlook.com.
