how to set the shape of a rigid boundary as a rectangle

Asked by ting

Hi everyone:

I am new to Yade and python and I am trying to simulate a rigid rectangle plate and moving it as a blade. I found I can simulate a rigid boundary as a triangle as following:
O.bodies.append(facet([(0,0,0),(2,0,1),(0,0,1)]))
But I found it cannot form a rectangle by adding one more point.
Can someone tell me how to modify it or using other approach?
Thank you so much and wish have a good day!

Regards,
Ting

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Jérôme Duriez
Solved:
Last query:
Last reply:
Revision history for this message
Best Jérôme Duriez (jduriez) said :
#1

Hi,

This "facet" function creates a body with a "Facet" shape which is necessarily a triangle [1]. You may however define a second adjacent "facet" so that you would eventually have a rectangle (made of two YADE bodies).

Or, maybe more simply, you may use other shapes, such as (infinite) Walls [2], or Boxes [3].
Bodies with such shape can also be easily created with built-in functions [4,5]

[1] https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.Facet
[2] https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.Wall
[3] https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.Box
[4] https://yade-dem.org/doc/yade.utils.html#yade.utils.wall
[5] https://yade-dem.org/doc/yade.utils.html#yade.utils.box

Revision history for this message
ting (ting1994) said :
#2

Thanks Jérôme Duriez, that solved my question.