change in volume of meniscus as a function of capillary pressure
Hello all,
I hope you all well. I have a simple question.
I am wondering whether I can simulate the change in volume of meniscus as a function of capillary pressure.
It seems like I can change the capillary pressure in the loop but the interaction between the spheres are not updated.
Here is my script:
from yade import plot, geom
r = 3e-6 #particle radius of clay, meter
h = 1e-6 #praticle distance, meter
#create two sphere paticles#
O.bodies.append([
utils.
utils.
])
#define engines#
O.engines=[
ForceResetter(), #0
InsertionSor
InteractionLoop(
[
[
[
),
Law2_
NewtonIntegr
PyRunner(
]
O.trackEnergy = True
capillary.
O.run(1,True)
capillary.
#define the force on the sphere#
def change_capillary():
global cur_capillary,
count = 0
while (count<1):
cur_capillary = capillary.
i = O.interactions[0,1]
delta_V = i.phys.vMeniscus
i.phys.isBroken = True
O.engines = O.engines[
count = count + 1
print cur_capillary,
if cur_capillary < 9000:
O.pause()
O.dt=0.
O.run()
Any helps are appreciated.
Sincerely,
Seungcheol
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Christian Jakob
- Solved:
- Last query:
- Last reply: