randomDensePack showing errors

Asked by yogesh

Hi,
I am new to yade. I tried to generate a sphere packing using randomDensePack but it is giving warning and my laptop hangs thereafter. Can somebody Please help me with it?

Code:
from yade import pack
pred=pack.inCylinder(centerBottom=(0,0,-.1),centerTop=(0,0,.1),radius=.05)
spheres=pack.randomDensePack(pred,spheresInCell=2000,radius=3.5e-3)
O.bodies.append(spheres)

Error:
No suitable packing in database found, running PERIODIC compression
/usr/lib/python2.7/dist-packages/yade/pack.py:293: FutureWarning: The default behavior will change; specify returnSpherePack=True for the new behavior, and False to get rid of this warning (your code will break in the future, however). The returned SpherePack object can be added to the simulation using SpherePack.toSimulation()
  warnings.warn('The default behavior will change; specify returnSpherePack=True for the new behavior, and False to get rid of this warning (your code will break in the future, however). The returned SpherePack object can be added to the simulation using SpherePack.toSimulation()',category=FutureWarning)

Also what I am trying is to replace the cubical model of "periodic triaxial test simulation"i.e. the last example of https://yade-dem.org/doc/tutorial-examples.html with a cylindrical one. Could anyone guide me with how to achieve this?

Thanking you in advance

Question information

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

Hello,

> I am new to yade. I tried to generate a sphere packing using
> randomDensePack but it is giving warning and my laptop hangs thereafter.
> Can somebody Please help me with it?
>

could you please be more specific on "hang" definition? :-) most likely it
is creating the packing, seemingly doing nothing..

>
> Code:
> from yade import pack
> pred=pack.inCylinder(centerBottom=(0,0,-.1),centerTop=(0,0,.1),radius=.05)
> spheres=pack.randomDensePack(pred,spheresInCell=2000,radius=3.5e-3)
> O.bodies.append(spheres)
>
> Error:
> No suitable packing in database found, running PERIODIC compression
> /usr/lib/python2.7/dist-packages/yade/pack.py:293: FutureWarning: The
> default behavior will change; specify returnSpherePack=True for the new
> behavior, and False to get rid of this warning (your code will break in the
> future, however). The returned SpherePack object can be added to the
> simulation using SpherePack.toSimulation()
> warnings.warn('The default behavior will change; specify
> returnSpherePack=True for the new behavior, and False to get rid of this
> warning (your code will break in the future, however). The returned
> SpherePack object can be added to the simulation using
> SpherePack.toSimulation()',category=FutureWarning)
>
>
To get rid of this warning (as it says), specify returnSpherePack=False to
randomDensePack, i.e.

spheres=pack.randomDensePack(pred,spheresInCell=2000,radius=3.5e-3,returnSpherePack=False)

you can also specify True, but then you will have to change
O.bodies.append(spheres) command.. not important now :-)

> Also what I am trying is to replace the cubical model of "periodic
> triaxial test simulation"i.e. the last example of
> https://yade-dem.org/doc/tutorial-examples.html with a cylindrical one.
> Could anyone guide me with how to achieve this?
>
>
The example is meant to be periodic, so the periodicity and cylindrical
shape does not fit together (unless in very special case). I don't use
triaxial engines very often, so others may be helpful here. It would be
also good to know what you want to simulate (i.e. if you are just playing
now leaning yade or trying to start some serious simulation).

cheers
Jan

Revision history for this message
yogesh (yogicxl) said :
#2

Hey Jan,
Thanks for the reply.
In very crude terms what I want to do is simulate a soil test. Basically I have soil sample in a cylindrical container. I want first want to apply pressure over it from all the directions, then release the pressure from y axis (or the non lateral surface), then release it. This has to be done periodically, and outputs like one in the example are to be plotted.
It would be really great if you could suggest me how am I to go about this, because I have very little idea about yade.

Thanks,

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

Hello,

> In very crude terms what I want to do is simulate a soil test. Basically I
> have soil sample in a cylindrical container. I want first want to apply
> pressure over it from all the directions, then release the pressure from y
> axis (or the non lateral surface), then release it. This has to be done
> periodically, and outputs like one in the example are to be plotted.
>

ok, by periodically do you mean repeatedly? Because periodicity in the
context of mentioned example is that the sample is periodic spatially using
periodic contact detection..

> It would be really great if you could suggest me how am I to go about
> this, because I have very little idea about yade.
>

is this the only example you want use yade for, or do you plan to use it
more often?

cheers
Jan

Revision history for this message
yogesh (yogicxl) said :
#4

Hey,

I plan to use it more often. Actually it is a part of my project, and intially I am supposed to model this. And I basically i am new to both yade and the subject, so the terms I am using may not be precise.

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

Hello,

in the case you will use Yade not only once, I would suggest to read
 Introduction, Tutorial and User's manual from yade main page [1]. As an
introduction to DEM itself, you can read also DEM formulation.

cheers
Jan

[1] https://yade-dem.org

2014-05-02 15:16 GMT+02:00 yogesh <email address hidden>:

> Question #248039 on Yade changed:
> https://answers.launchpad.net/yade/+question/248039
>
> Status: Answered => Open
>
> yogesh is still having a problem:
> Hey,
>
> I plan to use it more often. Actually it is a part of my project, and
> intially I am supposed to model this. And I basically i am new to both
> yade and the subject, so the terms I am using may not be precise.
>
> --
> You received this question notification because you are a member of
> yade-users, which is an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp
>

Can you help with this problem?

Provide an answer of your own, or ask yogesh for more information if necessary.

To post a message you must log in.