Can we create a rigid body using only particles, rather than importing a gts surface.

Asked by A Dinesh

I am implementing Discrete element method using pure python. Here I would like to know whether we can create bodies only with particles rather than facets or planes. Because I want to model my complete simulation using particles. If some software did this then kindly refer me to such. If any paer describes this then kindly refer such a paper. Thank you.

Question information

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

As said in the US: yes, we can.

You can play with the dynamic attribute [1] of spherical particles so that they won't move, and assemble them in the shape of your rigid body (that will not move in addition to be rigid)

Also, you can use clumps that are rigid particles made of distinct particles. The clumps as a whole can move. Search for "clumps" in the documentation (see [2] for a very first example) and the examples.

In case I did not really answer your question, please try to be more specific.

Jerome

[1]: https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.Body.dynamic
[2]: https://yade-dem.org/doc/yade.wrapper.html?highlight=clump#yade.wrapper.BodyContainer.addToClump

Revision history for this message
A Dinesh (adepu-dinesh-a) said :
#2

Thank you sir,

Actually my concern is, in almost every example of yade, every rigid body is modelled only with surfaces. Can we redo all those examples using only particles. Do we get efficient results doing so.
What are the challenges in doing so?

Revision history for this message
Jérôme Duriez (jduriez) said :
#3

What kind of specific examples do you have in mind ?

Revision history for this message
A Dinesh (adepu-dinesh-a) said :
#4

A ball made up of spheres, bouncing in a box, which is also made of
spheres.
Bullet made up of spheres hitting a concrete wall composed of spheres.
On Sat, 11 Jun 2016 at 3:13 AM, Jérôme Duriez <
<email address hidden>> wrote:

> Your question #295158 on Yade changed:
> https://answers.launchpad.net/yade/+question/295158
>
> Jérôme Duriez requested more information:
> What kind of specific examples do you have in mind ?
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/yade/+question/295158
>
> You received this question notification because you asked the question.
>

Revision history for this message
Jérôme Duriez (jduriez) said :
#5

As for your first example, getting a box made of spheres should be quite easy using "predicates", see for instance
https://yade-dem.org/doc/user.html#boolean-operations-on-predicates
and the previous paragraphs.

This predicate method should allow you to get particles assemblies conforming a wide variety of shapes and address hopefully any situation you want.

Revision history for this message
Bruno Chareyre (bruno-chareyre) said :
#6

> A ball made up of spheres, bouncing in a box, which is also made of
spheres. Bullet made up of spheres hitting a concrete wall composed of spheres.

Yes of course, you can dot that. Why not?
Could you clarify your question?
Bruno

Revision history for this message
A Dinesh (adepu-dinesh-a) said :
#7

Sir, I want to create a hopper. Then visualize the sand falling through it. In YADE hopper is made of facets, and the force interaction law, insertion sort collider, and many things are different if we create the same hopper with particles.

1) As jérôme Duriez explained that we could create a model using spheres. After such creation, Should we apply the force law between sand particles and hopper's spherical particles?

This is another question:
As I am trying to write my own code to implement DEM, please suggest me which visualization tool kit should I use to visualize the spheres, Box, and rigid bodies as they move with time? Thank you sir.

Revision history for this message
Marcus Moravia (mgmoravia) said :
#8

Dear Dinesh,

I suggest open a new topic for new questions (https://yade-dem.org/wiki/Howtoask). In spite of that, I answered your questions below.

1) "As Jérôme Duriez explained that we could create a model using spheres. After such creation, should we apply the force law between sand particles and hopper's spherical particles?"
You should handle sphere+sphere collisions. Thus, you will need to set collision geometry, collision physics and contact law to apply forces.

2) "This is another question:
As I am trying to write my own code to implement DEM, please suggest me which visualization tool kit should I use to visualize the spheres, Box, and rigid bodies as they move with time? Thank you sir."
You may use the Primary View directly from Yade.

Cheers,
Marcus.

Revision history for this message
Best Anton Gladky (gladky-anton) said :
#9

2016-06-13 19:22 GMT+02:00 A Dinesh <email address hidden>:
> As I am trying to write my own code to implement DEM, please suggest me which visualization tool kit should I use to visualize the spheres, Box, and rigid bodies as they move with time? Thank you sir.

That is what that I would strongly not recommend to do. There are many
open source DEM codes, which you can use as a basis, if YADE is not
suitable for your needs (just google it). Many thousands of man-hours were
spent by many people polishing programs, trying to do them bug-free.
Writing the new code from the scratch is not always a good idea.

Regards

Anton

Revision history for this message
A Dinesh (adepu-dinesh-a) said :
#10

Thanks Anton Gladky, that solved my question.