← Back to team overview

yade-users team mailing list archive

Re: [Question #293216]: Creating Ellipse or Ellipsoid

 

Question #293216 on Yade changed:
https://answers.launchpad.net/yade/+question/293216

Jan Stránský proposed the following answer:
Hi Mohsen,

if you have different question than the original problem, please open a new
question.

your 2) comes from 1). I always use randomDensePack with spheresInCell
parameter, usually with value between 300 and 2000. Then your example
(memoizeDb, too) works OK.

cheers
Jan


2016-05-05 9:17 GMT+02:00 mohsen <question293216@xxxxxxxxxxxxxxxxxxxxx>:

> Question #293216 on Yade changed:
> https://answers.launchpad.net/yade/+question/293216
>
> mohsen posted a new comment:
> Hi Felipe and Jan
> Jan i also have some trouble with making a predicate!
> generally when i using randomDensePack, i encounter some errors or
> warnings that i can not understand their meanings!
> Jan can you help us about "memoizeDb"? I think some errors is because of
> this.
>
> in the following is my simple code and warnings:
>
> #######
> ## construct the predicate first
> pred=pack.inCylinder(centerBottom=(0,0,-.1),centerTop=(0,0,.1),radius=.05)
> ## alternatively: pack.inHyperboloid((0,0,-.1),(0,0,.1),.05,.03)
>
> ## pack the predicate with spheres (will be explained later)
> spheres=pack.randomDensePack(pred,radius=8.5e-3)
>
> ## add spheres to simulation
> O.bodies.append(spheres)
>
> ################
> Warnings:
> WARN
> /build/yadedaily-1.20.0-126-e3271e8~trusty/pkg/dem/SpherePack.cpp:104
> makeCloud: porosity must be >0, changing it for you. It will be ineffective
> if rMean>0.
> /usr/lib/x86_64-linux-gnu/yadedaily/py/yade/pack.py:296: 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)
> /usr/lib/x86_64-linux-gnu/yadedaily/py/yade/pack.py:301: UserWarning:
> Packing's dimension
> (Vector3(0.09220547603362886,0.09204759935856582,0.1700020579236124))
> doesn't fully contain dimension of the predicate (Vector3(0.1,0.1,0.2)).
>   if dimP[0]>dimS[0] or dimP[1]>dimS[1] or dimP[2]>dimS[2]:
> warnings.warn("Packing's dimension (%s) doesn't fully contain dimension of
> the predicate (%s)."%(dimS,dimP))
>
> ############
>
> 2- another problem is that the spheres in generated pack have overlap!!
> How can we avoid this? ( I know that the over lap is removed if we give a
> number to spheresInCell, i.e activating periodic condition. but is there
> any other way to have a aperiodic scene without overlap)
> Is there another method to construct a cylinder filled with spheres with
> no initial overlap?
>
> --
> You received this question notification because your team yade-users is
> an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to     : yade-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-users
> More help   : https://help.launchpad.net/ListHelp
>

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.