Translation and rotation engines
hi,
I am a new user of yade and i am going to model a box in which some particles deposit. then I delete particles upper than a predefined elevation and add some fine particles. then I delete these fines upper than that elevation too. after that, I add a plate on top and define a velocity up to a specific load. set the velocity of the plate to zero (fix place) and then let sidewalls to rotate around the Y axis with a fixed angVel.
here is my problem,
when I use "plate.state.vel" it says that "Nonetype object has no attribute state"
and when I use rotationengine and translationengine it shows an error and do not proceed.
as I am not so experienced in running yade, changing the script in many ways made me frustrated. I will be so grateful if anyone helps me.
furthermore, It sometimes stops running with this error
"segmentation fault (core dumped)" what is the reason
here is my script
overburden=10
from yade import pack,plot,qt
idmat=O.
O.bodies.
O.bodies.
O.bodies.
O.bodies.
LW=O.bodies[-1]
O.bodies.
RW=O.bodies[-1]
sp=pack.
sp.makeCloud(
sp.toSimulation
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
GravityEngine(
NewtonIntegrat
qt.SnapshotEng
PyRunner(
PyRunner(
]
O.dt=1e-6
def checkUnbalanced():
if O.iter<500000: return
if utils.unbalance
for b in O.bodies:
if isinstance(
if (b.state.
fines=
fines.
fines.
O.engines=
checker.
def addfines():
if O.iter<650000: return
if utils.unbalance
for b in O.bodies:
if isinstance(
if (b.state.
posi=O.
m=5
while m in range(len(
b=O.bodies[m]
try:
if isinstance(
posi2=
if posi2>=posi: posi=posi2
m=m+1
except: m=m+1
O.bodies.
global plate
plate=O.bodies[-1]
O.engines=
checker.
O.materials[
for i in O.interactions: i.phys.
def shearing():
if abs(O.forces.
transEngine.
O.engines=
checker.
def stopShearing():
if O.bodies[
O.pause()
utils.
print 'Finished'
def unbalancedData():
plot.addData(
plot.plots=
plot.plot()
Gl1_Sphere.
qt.View()
rr=yade.
rr.shape=True
O.saveTmp()
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask m.asd for more information if necessary.