Python 3 - randomDensePack
Hi all,
This is a really silly question but I am banging my head in the wall :(
After an update in Yade, I am now migrating my codes to Python 3. So far so good.
When I use the function randomDensePack with pack.gtsSurface, it works fine. It is possible to see that the pack is dense due to Triaxial test.
However, when I use randomDensePack with pack.inSphere the pack I get is not dense
It seems to be a simple solution, perhaps due to changes in Python 3 (my guess).
=======
#Forca normal lei de contato coesao e atrito
from yade import plot
from yade import pack
from yade import utils
from yade import bodiesHandling
import math
import random
O.materials.
O.materials.
#######
size=1
if size==1:
rag=0.00238
#++++++
rad=0.0003
r=rag
# Spheres
ag=O.bodies.append(
pack.randomDen
(pack.
)
if size==1:
n = 0 #number of spheres to exclude randomically
if size==2:
n = 96 #number of spheres to exclude randomically
if size==3:
n = 620 #number of spheres to exclude randomically
if size==4:
n = 1905 #number of spheres to exclude randomically
#######
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
GlobalStiffne
NewtonIntegra
]
from yade import qt
qt.View()
qt.Controller()
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: