I want to create a wall in the shape of a trapeze but I do not know how to make it in YADE

Asked by Noelia Valderrama

Hello everyone, I have at the moment advanced with this script:

#Script to random pack)
from yade import qt
import random
from yade import pack
qt.View()

pred=pack.inAlignedBox((0,0,0),(2.62,6,2.8))
spheres=pack.randomDensePack(pred,spheresInCell=2000,radius=.2,rRelFuzz=.5) #
O.bodies.append(spheres)

But I do not know how to make the first part flat, to make it a trapeze. of 2.62 meters of major base, 1.62 of smaller base, 2.8m of height and 6m of width.

Thank you for your contributions.

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Aníbal Sánchez Numa
Solved:
Last query:
Last reply:
Revision history for this message
Best Aníbal Sánchez Numa (anibal-b) said :
#2

You can use GTS... So you design the volume in an external software and then you import it into Yade...Look [1]

[1] https://github.com/yade/trunk/blob/master/examples/stl-gts/gts-stl.py

Revision history for this message
Noelia Valderrama (nvalderrama) said :
#3

Thanks Aníbal Sánchez Numa, that solved my question.