← Back to team overview

yade-dev team mailing list archive

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

 

Hi Eugen,

randomDensePack calls TriaxialTest internally [1], which
calls TriaxialCompressionEngine internally [2], which is deprecated. So, as
the warning says, it should be replaced by TriaxialStressController. I have
no time to do it now, but this information may be useful for other people
willing to fix it.
cheers
Jan

[1]
http://bazaar.launchpad.net/~yade-pkg/yade/git-trunk/view/head:/py/pack/pack.py#L462
[2]
http://bazaar.launchpad.net/~yade-pkg/yade/git-trunk/view/head:/pkg/dem/TriaxialTest.cpp#L276

PS: thanks for attached minimal working example, things are much easier
then :-)


2013/5/2 Eugen Kubowsky <1175574@xxxxxxxxxxxxxxxxxx>

> Public bug reported:
>
> 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
>
> ** Affects: yade
>      Importance: Undecided
>          Status: New
>
> ** Attachment added: "spherePackWarning.py"
>
> https://bugs.launchpad.net/bugs/1175574/+attachment/3662495/+files/spherePackWarning.py
>
> --
> 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
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-dev
> Post to     : yade-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-dev
> More help   : https://help.launchpad.net/ListHelp
>

-- 
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