yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #07938
Re: [Question #232941]: Capillary pressure between two particles
Question #232941 on Yade changed:
https://answers.launchpad.net/yade/+question/232941
Christian Jakob proposed the following answer:
Sorry for my totally dump suggestion in the last post.
I checked out your script today and recognized, that you tried to plot a vector b0displ over iteration number.
Small workaround to fix that:
def addPlotData():
d0 = O.bodies[0].state.displ()
d1 = O.bodies[1].state.displ()
plot.addData(i=O.iter,b0displ=d0[2],b1displ=d1[2])
But you will get zero all the time, because meniscii is not created. So
this you can do by changing these lines:
r = 1e-4 #particle radius
h = 1e-6 #praticle distance
#create two sphere paticles#
O.bodies.append([
utils.sphere(center=(0,0,0),radius=r,fixed=False),
utils.sphere((0,0,2*r-h),r)
])
hih,
c
--
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.