# Modeling a 2D box pack

Asked by Kieran Fung on 2020-10-11

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:
Needs information
For:
Assignee:
No assignee Edit question
Last query:
2020-10-11
2020-10-12
 Jan Stránský (honzik) said on 2020-10-12: #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