New question #703209 on Yade: https://answers.launchpad.net/yade/+question/703209
Now I need to simulate a box with a height of 30m, and the particles at the bottom 15m and the upper 15m need to use different materials. At present, I use the following code to complete it, but it seems to be wrong. 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. _______________________________________________ Mailing list: https://launchpad.net/~yade-users Post to : [email protected] Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp

