Gianni, If you are interested in collisions of your internal components with the inside of the box, then utils::CreateBoxContainer<https://api.projectchrono.org/group__chrono__utils.html#ga5a4915221a0bb565bf7bf06239545c57> allows creating a closed box (i.e. with 6 walls); see its last argument (optional, default: false). No need to create a separate body for the “lid” and connect it through a weld joint (which would only add additional states and constraints).
Otherwise, the easiest way is to simply create one solid box and ignore collisions with any of the internal components by using collision families (set the box in one collision family and all internal components in a different one, then disable any collisions between the two families). See ChCollisionModel::SetFamily<https://api.projectchrono.org/classchrono_1_1_ch_collision_model.html#ab591335fd235fb5590e7204f4b7ad5bf> and ChCollisionModel::DisallowCollisionWith<https://api.projectchrono.org/classchrono_1_1_ch_collision_model.html#a93ece48505bc18dce4fb53645f61b2bb>. Of course, all of this assumes your internal components carry collision geometry. Otherwise, you do not need to do anything special. --Radu From: [email protected] <[email protected]> On Behalf Of Gianni Curti Sent: Thursday, July 11, 2024 10:16 AM To: ProjectChrono <[email protected]> Subject: [chrono] Creating hollow closed box in Multicore Hi, I am trying to create a hollow closed box in Multicore since I need to simulate the movements of some internal components but I do not want any interaction with the external environment. I saw there is a command to create a container, thus I was thinking to decleare another box and use it as a "lid" to close it by putting LinkLock constraints. Is there a simpler procedure? Thank you for your kindness! 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]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/77e16914-2654-4f12-8f9b-b1f5a1ca0c94n%40googlegroups.com<https://urldefense.com/v3/__https:/groups.google.com/d/msgid/projectchrono/77e16914-2654-4f12-8f9b-b1f5a1ca0c94n*40googlegroups.com?utm_medium=email&utm_source=footer__;JQ!!Mak6IKo!M0cfaIrQix2JA3O-No0YeW9SAuzDKu9mlIvRGUhRKgQa5H2ZPx-P_KxR78E9B9JMuUXbTyTDhX8RYb-lCGgP$>. -- 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/CH3PPF46CDC218554433476A849AF64A7D4A7A72%40CH3PPF46CDC2185.namprd06.prod.outlook.com.
