Hi, would you mind dropping the entire PyChrono script, top to bottom, that 
demonstrates the problem?

NOTE: this is a public forum, remove any sensitive information/data.

Thank you,
Dan
---------------------------------------------
Bernard A. and Frances M. Weideman Professor
NVIDIA CUDA Fellow
Department of Mechanical Engineering
Department of Computer Science
University of Wisconsin - Madison
4150ME, 1513 University Avenue
Madison, WI 53706-1572
608 772 0914
http://sbel.wisc.edu/
http://projectchrono.org/
---------------------------------------------

From: [email protected] <[email protected]> On Behalf 
Of Zaftrox
Sent: Sunday, August 24, 2025 4:04 PM
To: ProjectChrono <[email protected]>
Subject: [chrono] Question about the ChParticleCloud, Crash when collisions are 
enabled

Hi, i wanted to create a particlecloud to handle a bunch of cylindrical objects 
in pychrono. However, when i setup the particlecloud then enable the 
collisions, it crashs immediately.

Here's the snippet :

# Particles cloud :
particles = chrono.ChParticleCloud()
particles.SetMass(simMat["ParticleMass"])
particles.SetInertiaXX(chrono.ChVector3d( simMat["ParticleInertia"],  
simMat["ParticleInertia"],  simMat["ParticleInertia"]))

# Collision shape/model :
colModel = chrono.ChCollisionModel()
colModel.Clear()
cylShape = chrono.ChCollisionShapeCylinder(material, .01, .002)
colModel.AddShape(cylShape)
particles.AddCollisionModel(colModel)
particles.AddCollisionShape(cylShape)

visShape = chrono.ChVisualShapeCylinder(.01, .002)
frame = chrono.ChFramed(chrono.ChVector3d(0,0,0), 
chrono.QuatFromAngleAxis(chrono.CH_PI/2, chrono.ChVector3d(1,0,0)))
particles.AddVisualShape(visShape, frame)

# addition loop :
for i in range(20):
    possys = chrono.ChCoordsysd(
        chrono.ChVector3d(random.uniform(-.3, .3), random.uniform(-.3, .3), 0),
        chrono.QuatFromAngleAxis(-chrono.CH_PI/2, chrono.ChVector3d(1,0,0))
    )
    particles.AddParticle(possys)
#particles.EnableCollision(True)
system.Add(particles)
--
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 visit 
https://groups.google.com/d/msgid/projectchrono/a2929f89-b15a-42f5-a807-c7e7d02ec0edn%40googlegroups.com<https://urldefense.com/v3/__https:/groups.google.com/d/msgid/projectchrono/a2929f89-b15a-42f5-a807-c7e7d02ec0edn*40googlegroups.com?utm_medium=email&utm_source=footer__;JQ!!Mak6IKo!O70Z-enwv3qPCNU5GsB0940X-7u5DtlNMuTw3zW-RVU8aTz_03LgUXyioYkelAHDYjGP2VlV_AMEqe82eWY$>.

-- 
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 visit 
https://groups.google.com/d/msgid/projectchrono/DM8PR06MB770370EA7C5FA77CB3F0A60BB13EA%40DM8PR06MB7703.namprd06.prod.outlook.com.

Reply via email to