mass after simulation
I have the following code, but I want to calculate the mass and porosity of the particles left in the cylinder after the deposition of the material.
Can someone help me with the function I should use? or how can I build the code for this function.
Thanks
postscript: the algorithm comments are in Spanish
#######
# Algorithm
#######
from yade import pack
#Altura de caida del material
hc=0
#centro
x=0
y=0
z=0
radius=.5
#EQUIPO
#coordenadas centro
x=0
y=0
z=0
#coordenadas extension
f=0.45
a=0.50
h=1
#estrutura del equipo de pluviacion
O.bodies.
pred=pack.
sphere=
O.bodies.
f=geom.
O.bodies.append(f)
O.engines=[
ForceResetter(),
InsertionSortC
Bo1_
Bo1_
Bo1_Wall_Aabb()
]),
InteractionLoop(
# handle sphere+sphere and facet+sphere collisions
[Ig2_
[Ip2_
[Law2_
),
#GravityEngine
NewtonIntegrat
PyRunner(
]
O.dt=PWaveTimeS
def checkUnbalanced():
if unbalancedForce
Vtotal=
print "Porosidad calculada por Yade=", utils.porosity(
mass=sum(
print "Masa del especimen=", (mass)
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 Estefany Carmona Alvarez for more information if necessary.