Highest clump position in clump cloud
HIGHEST CLUMP IN CLOUD
Hello Yade mates,
I have made 3 clump clouds, at different heights each one. I'd like to know the position of the highest clump of each cloud at each time step.
To achieve that, I've made a Pyrunner command, as you can read below. I intended to do it by writting different loops.
However, when I run the simulation for a while, and check the Ymax values, their values result the same as prior to the simulation run, they don't vary.
I suppose the problem is related to the first Ymax and HBmax values assigned, but I don't know how to solve it.
Thank you for your advices
Sergio
from yade import pack, qt, plot, ymport, export
#////// MATERIALS \\\\\\
MatBal=
young=
frictionAngle
#////// BOUNDARIES (bx - htot - bz) \\\\\\
O.bodies.
(0,0,0)
#////// SPHERE PACK CREATION \\\\\\\\\\\\\\\\
c1=pack.
((0,0.
])
c2=pack.
((0,0.
((0,0.
])
#////// PROPERTIES \\\\\\
###### Layer 1 ######
capa1=pack.
capa1.makeClump
(-0.1,
[c1,c2]
capa1.toSimulat
len1=len(O.bodies)
HBmax=len(capa1)-1
Ymax1=O.
##### Layer 2 ########
capa2=pack.
capa2.makeClump
(-0.1,
[c1,c2]
capa2.toSimulat
len2=len(O.bodies)
HBmax2=len2
Ymax2=O.
##### Layer 3 #########
capa3=pack.
capa3.makeClump
(-0.1,
[c1,c2]
capa3.toSimulat
len3=len(O.bodies)
HBmax3=len3
Ymax3=O.
#///////////// Layer heights \\\\\\\\\\\\\\\
def alturasMaximasC
HBmax= len1-1
Ymax1=
HBmax2=len2-1
Ymax2=
HBmax3=len3-1
Ymax3=
# Layer heigth 1
for ii in range(0,
if O.bodies[
if Ymax1<O.
Ymax1=
HBmax=ii
# Layer heigth 2
for jj in range(len(
if O.bodies[
if Ymax2<O.
Ymax2=
HBmax2=jj
# Layer heigth 3
for zz in range(len(
if O.bodies[
if Ymax3<O.
Ymax3=
HBmax3=zz
# ///////
O.engines=[
ForceResetter(),
InsertionSortC
[Bo1_
Bo1_
Bo1_Box_Aabb(),
Bo1_
InteractionLoop(
[Ig2_
Ig2_
Ig2_
Ig2_
[Ip2_
[Law2_
),
PyRunner(
iterPeriod=
NewtonIntegrat
]
factor=1
O.dt=factor*
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Sergio
- Solved:
- Last query:
- Last reply: