yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #24836
Re: [Question #695126]: Cylinder powder compaction
Question #695126 on Yade changed:
https://answers.launchpad.net/yade/+question/695126
Mithushan Soundaranathan posted a new comment:
Here is my code:
from __future__ import print_function
sigmaIso=-1e5
#import matplotlib
#matplotlib.use('Agg')
# generate loose packing
from yade import pack, qt, plot
from yade import utils
sample_material=CohFrictMat(
young=4e9
,poisson=1
,density=1400
,frictionAngle=radians(30)
,isCohesive=True
,normalCohesion=1e8*1.2
,shearCohesion=.4e8*1.2
,momentRotationLaw=True
,label='sample_mat')
O.materials.append(sample_material)
#DATOS PROBETA
radius_tablet = 0.015 #1.5 cm
height_tablet = 0.02 #2 cm
radius_particle = 0.001 #1 mm
radius_std = 0.0005 #0.5 mm
# randomDensePack packing
#pred = pack.inCylinder((0,0,0),(0,0,height_tablet),radius=radius_tablet)
#assembly = pack.randomDensePack(pred,radius=radius_particle,rRelFuzz=0,returnSpherePack=True)
#assembly.toSimulation(material='sample_mat')
sp = pack.SpherePack()
sp.makeCloud((0,0,0),(2.1,2.1,2.1),rMean=.1,num=500)
#cyl = pack.inCylinder((1,1,0),(1,1,2),1)
#sp = pack.filterSpherePack(cyl,sp,True,material=sample_material)
sp.toSimulation(material=sample_material)
id_wall = O.materials.append(FrictMat(density=10000,young=1e11,poisson=.5,frictionAngle=atan(0.5),label="wallmat"))
O.materials[id_wall]
### WALLS
O.bodies.append(yade.geom.facetCylinder((1,1,1),radius=1.6,height=3,segmentsNumber=20,wallMask=6,material=id_wall))
O.bodies.append(yade.geom.facetBox((1,1,1),(3,3,3)))
--
You received this question notification because your team yade-users is
an answer contact for Yade.