How to update volume of cells in PeriodicFlowEnigne
Dear all,
I'd like to use PeriodicFlowEngine to get Volume of Voronoi cell.I run MWE and I get Volume of Voronoi cell successfully in the first time. But the volume is not updated as the pack changes. How to update volume of cells in PeriodicFlowEngine?
Thanks for your any suggestions.
#####MWE#####
from yade import pack,qt
O.periodic=True
O.cell.
0 ,0.2, 0,
0, 0, 0.2)
sp=pack.
radius=5e-3
num=sp.
O.bodies.
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
PeriTriaxContr
NewtonInteg
PeriodicFlo
PyRunner(
]
O.dt=PWaveTimeS
O.run();
qt.View()
def test():
volume=0
flow.
for b in O.bodies:
volume += flow.volume(b.id)
print (volume)
Question information
- Language:
- English Edit question
- Status:
- Invalid
- Assignee:
- No assignee Edit question
- Solved by:
- Chu
- Solved:
- Last query:
- Last reply: