Problems with psdSizes and psdCumm in makeCloud function
Dear all,
I used the makeCloud function to generate spheres according to psdSizes and psdCumm, and replaced some of the spheres with polyhedra.
The psd parameters I used are: psdSizes=
size ratio (%)
0-0.01 0
0.01-0.015 50
0.015-0.025 50
But I found that the size of all the generated balls is below 0.015. What is the reason?In addition, there are the following warnings when generating the sphere: The size distribution has been scaled down, how to solve this?
Below is my MWS.
Thanks in advance.
Jie
#######
from yade import polyhedra_
import numpy as np
import math
import random
#Material
m = FrictMat(
n = PolyhedraMat(
O.materials.
#Dimensions
meanSize = 0.05
wallThickness = 0.5*meanSize
distanceToCentre = 0.05
lengthOfBase =0.25
heightOfBase = 0.6
#------
#Make Cloud
sp=pack.
mn,mx=Vector3(
sp.makeCloud(
for center,radius in sp:
if radius<0.015:
t = sphere(
if radius >0.015 and radius < 0.025:
t.state.pos = center # sets polyhedron position according to sphere position
#count numbers
countSPs=0
for b in O.bodies:
if isinstance(
countSPs=
print("number of PotentialBlocks = ", countSPs)
countPol=0
for b in O.bodies:
if isinstance(
countPol=
print("number of Polyhedra = ", countPol)
from yade import qt
v=qt.View()
v.sceneRadius=10.0
v.ortho=True # I activate orthotropic projection, to make visual comparisons easier
O.saveTmp()
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask weijie for more information if necessary.