yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #28339
Re: [Question #703209]: How to use different materials in one simulation?
Question #703209 on Yade changed:
https://answers.launchpad.net/yade/+question/703209
Status: Needs information => Open
孙灿 gave more information on the question:
#Material constants(1)
Density1 = 1836
FrictionAngle1 = 5
PoissonRatio1 = 0.4
Young1 = 5e8
Damp = 0.5
AvgRadius1 = 0.05
N_particles = 10000
#Wall constants
WDensity = 0
WFrictionAngle = 0.0
WPoissonRatio = 0.1
WYoung = 50e9
SphereMat = O.materials.append(FrictMat(young = Young, poisson = PoissonRatio, frictionAngle = radians(FrictionAngle), density = Density))
SphereMat1 = O.materials.append(FrictMat(young = Young1, poisson = PoissonRatio1, frictionAngle = radians(FrictionAngle1), density = Density1))
WallMat = O.materials.append(FrictMat(young = WYoung, poisson = WPoissonRatio, frictionAngle = radians(WFrictionAngle)))
O.bodies.append(geom.facetBox((0.05, 9,15), (0.1, 9, 15), wallMask=63,material=WallMat))
sp = pack.SpherePack()
sp.makeCloud(Vector3(0.05,0,0),Vector3(0.05,18,15), rMean=0.05, rRelFuzz=0)
sp.toSimulation(material = SphereMat)
sp.makeCloud(Vector3(0.05,0,15),Vector3(0.05,18,30), rMean=0.05, rRelFuzz=0)
sp.toSimulation(material = SphereMat1)
--
You received this question notification because your team yade-users is
an answer contact for Yade.