Modeling a 2D box pack

Asked by Kieran Fung

I'm altering my colleague's code of a 3D cylinder model that utilizes sp.makeCloud. As a beginner user, I understand that it is "simple" code such that it only simulates randomly generated particles that fall and settle in the cylinder.

I'm trying to pivot the workspace into a simplified 2D problem.

The problem: when I change the geometry of the cylinder body from Cylinder=O.bodies.append(geom.facetCylinder((.5,.5,1),.5,2,wallMask=2|4,segmentsNumber=64, material = Mat1)) to box = O.bodies.append(geom.facetBox((0.5,0.5,0.5),(0.5,0.5,0.5), wallMask = 31, material = Mat1)), a new body is not generated.

The "show 3D" window has not generated a sphere cloud nor the new geometry.

I figured switching from a cylinder to a box should be simple, but identifying the issue has become a challenge. Once I complete this step of switching body geometry, I hope to move onto constraining axes to trick Yade into a 2D simulation.

I'll share code if requested but I understand this forum is intended for asking problems, not code vomiting :)

Let me know if there's anything I should consider to move forward. Thanks!

- Kieran (the struggling first year)

Question information

Language:
English Edit question
Status:
Expired
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jan Stránský (honzik) said :
#1

Hello,

> I'll share code if requested

yes please [1], a preferable way to solve a specific problem is to discus a specific code.
Now we have no clue where the problem could be (or we can merely guess)..

> I understand this forum is intended for asking problems, not code vomiting :)

no, this forum is intended for **solving** problems.
Code vomiting is a good point, therefore the code should be a MWE [1], where M=minimal.

cheers
Jan

[1] https://www.yade-dem.org/wiki/Howtoask

Revision history for this message
Launchpad Janitor (janitor) said :
#2

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.