← Back to team overview

yade-dev team mailing list archive

Re: [Bug 1175574] Re: spherePacking warning pack.randomDensePack

 

Hi Eugen,


Following [1] it is possible to save created packings in a database. This
> way they will be taken from there if the same packing shall be created
> again.
> For using this you need to set 'memoizeDb' to the name (path) of the
> database.
> Obviously [2] this only works for spheresInCell>0 that is periodic
> packings. If I understand this point right periodic packings are related to
> simulations with periodic boundary conditions?
> Why is it not possible to reload packings in not periodic simulations?
>

>From the source code, it seems that really only periodic packings are
loaded from database.. anyway, spheresInCell parameter means, that the
initial packing is created using periodic boundary conditions [1], *NOT*
necessarilly usable only in simulations with periodic boundary conditions.
Basicly, the periodic packing packing (cube) is created, than copied in
space to cover all needed volume defined by predicate and particles outside
predicate are deleted (this is for illustration, the actual implementation
may differ..). So you can use it for any simulation. To be more precise,
use randomDensePack for non-periodic simulations (even though
randomDensePack itself uses periodic boundary conditions) and
randomPeriPack for periodic simulations.

HTH
Jan

[1] https://yade-dem.org/doc/user.html#dynamic

-- 
You received this bug notification because you are a member of Yade
developers, which is subscribed to Yade.
https://bugs.launchpad.net/bugs/1175574

Title:
  spherePacking warning pack.randomDensePack

Status in Yet Another Dynamic Engine:
  New

Bug description:
  Hi,
  making use of pack.randomDensePack to fill up a predicate gives the following warning:

  WARN  /build/buildd/yade-daily-3+3463+44~precise1/pkg/dem/SpherePack.cpp:107 makeCloud: porosity must be >0, changing it for you. It will be ineffective if rMean>0.
  WARN  /build/buildd/yade-daily-3+3463+44~precise1/pkg/dem/TriaxialCompressionEngine.cpp:110 action: This engine is deprecated, please switch to TriaxialStressController if you expect long term support.
  /usr/lib/yade-daily/py/yade/pack.py:288: 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)
   
  Does this method need an update?
    "This engine is deprecated, please switch to TriaxialStressController if you expect long term support."
  the method works as supposed but the warning is annoying.

  I attached a minimum working example this time ;)

  Thanks, Eugen

To manage notifications about this bug go to:
https://bugs.launchpad.net/yade/+bug/1175574/+subscriptions


References