Hollow cylinder and other similar geometries

117 views
Skip to first unread message

Lucas

unread,
Jun 28, 2024, 10:22:18 AM6/28/24
to ProjectChrono
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.

Radu Serban

unread,
Jun 28, 2024, 10:28:36 AM6/28/24
to ProjectChrono

Please clarify what module in Chrono you are interested in using.  Defining collision geometry is different for different modules.

--Radu

--
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 projectchron...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/57372832-50ee-47ee-8c90-4e9bd32a6d82n%40googlegroups.com.

Message has been deleted
Message has been deleted

Lucas

unread,
Jul 2, 2024, 12:46:23 PM7/2/24
to ProjectChrono
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.

Lucas

unread,
Jul 2, 2024, 12:46:26 PM7/2/24
to ProjectChrono

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:

nevio lo stirato

unread,
Jul 18, 2024, 1:51:58 PM7/18/24
to ProjectChrono
Hello, Is there any news? I'm finally going with multicore.
Thank you in advance. 
Lucas

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.
To unsubscribe from this group and all its topics, send an email to projectchron...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/95e9bb41-e9dd-4686-8e6d-ea1d33dfd788n%40googlegroups.com.

Radu Serban

unread,
Aug 1, 2024, 6:29:48 AM8/1/24
to ProjectChrono

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), 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.  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

Reply all
Reply to author
Forward
0 new messages