the box on top and the box below can be a part of each other

Asked by veerawat

Do you have a way that the box on top and the box below can be a part of each other , so that I can use the command ?

this is the code of the box :

downx,downy = .5,.5
topx,topy = .15,.15
t = 0.05

boxdown = box((0,0,0),(downx,downy,t),wire=True,fixed=True)

boxtop = box((0,0,1+t),(topx,topy,1),wire=True,fixed=True)

Boxids=O.bodies.append((boxtop,boxdown))

Question information

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

Hello,

please be more specific:
- what does "be a part of each other" mean?
- what does "the command" mean?

the answer for current formulation is: just create the boxes such that they are a part of each other.

cheers
Jan

Revision history for this message
veerawat (suesan) said :
#2

dear jan,

yes ,it is sir.

Revision history for this message
veerawat (suesan) said :
#3

how can i create the boxes such that they are a part of each other ?

Revision history for this message
Jan Stránský (honzik) said :
#4

instant replay:
what does "be a part of each other" mean?

Please try to answer questions if they are asked. They are asked because some information is not clear and often it is not much meaningful to continue discussion without answering them.

E.g. in this case, the answer is still the same:
Box is defined by center, extents and orientation [1].
Set center, extents and orientation of the two boxes such that they are a part of each other.
(but you are using boxes already you should know this, so probably it is not the good answer.. but we don't know without providing the required information)

cheers
Jan

[1] https://yade-dem.org/doc/yade.utils.html#yade.utils.box

Revision history for this message
Best Jan Stránský (honzik) said :
#6

> it means i wanะ to make the top box fix with below box like this pic

you can clump them [2,3] to make them behave like one rigid body

> I have a one question

please open a new question for a new topic [1] (one reason is that this is quite a basic question, which probably will be relevant to many people, and it would be pity if it is hidden inside completely unrelated topic).

cheers
Jan

[1] https://www.yade-dem.org/wiki/Howtoask
[2] https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.BodyContainer.appendClumped
[3] https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.BodyContainer.clump

Revision history for this message
veerawat (suesan) said :
#7

Thanks Jan Stránský, that solved my question.