← Back to team overview

yade-users team mailing list archive

Re: [Question #177203]: true 2d biaxial test

 

Question #177203 on Yade changed:
https://answers.launchpad.net/yade/+question/177203

    Status: Answered => Open

ceguo is still having a problem:
Hi,

Finally, I made the code work. After using makeCloud() to generate the
2d periodic packing, I had to set O.cell.hSize = Matrix3() to set a
nonzero 3rd dimension as suggested by Chareyre. The code is like this:

sp = pack.SpherePack()
sp.makeCloud(minCorner=(0,0,0),maxCorner=(2,2,0),rMean=0.03,rRelFuzz=0.25,periodic=True,seed=12345)
sp.toSimulation()
O.cell.hSize = Matrix3(2,0,0, 0,2,0, 0,0,1)
for p in O.bodies:
   p.state.blockedDOFs = 'zXY'

Now my problem is I want to save the packing for later use. After I save
the packing with sp.save() and load the packing with sp.load(), I cannot
set O.cell.hSize now. Also I cannot use ymport.gengeoFile() to read a 2d
periodic packing file generated by LSMGengeo. (I can read it but cannot
set O.cell.hSize and run 2d simulation) How to solve this problem?

Ning

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.