error in applying constant displacement using state.vel.
Hi all,
I'm trying to compress a cloud of spheres in a cylinder to a specific porosity. First I create the cloud in a cylinder shape, then I create a cylinder facet around the spheres. Then I create top and bottom disks to compress the spheres. The problem is that when I try to move the disks with constant velocity using state.vel = (x,y,z), I get this error: AttributeError: 'list' object has no attribute 'state'. My code is copied below. Please let me know if anyone can solve this issue.
Thanks
Othman
-------
from yade import pack
# material parameters
O.materials.
# Spheres
sp=pack.
sp.makeCloud(
##### cylinder extraction #####
pred=pack.
spheres=
spheres.
yade.qt.View()
# facets to apply confinement
facets=
O.bodies.
#creating disks to apply compression
d1=geom.
d2=geom.
disk1= O.bodies.append(d1)
disk2= O.bodies.append(d2)
disk1.state.
disk2.state.
#######
O.dt=.5*
O.engines=[
ForceResetter(),
InsertionSortC
Bo1_Sphere_
Bo1_Facet_Aabb()
]),
InteractionLoop(
[
Ig2_
Ig2_
],
[
Ip2_
Ip2_
],
[
Law2_
],
),
NewtonIntegrat
PyRunner(
]
def P():
print ('porosity = ', utils.porosity())
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Othman Sh
- Solved:
- Last query:
- Last reply: