problem of pyRunner()
hello
i have defined a function named energysb() to culculate the linear kinetic energy of polyhedra and sphere seperately when the number of iterations is k*3000 , where k=1,2,3,..., but it turn out to be that the calculation occured when the iter number more than 10000,i do not know where is wrong, can you give me some advice?
below is part of my code:
O.load(
O.engines = [
ForceResett
InsertionSo
Interaction
),
# GravityEngine(
NewtonInteg
PyRunner(
PyRunner(
qt.
PyRunner(
]
def energysb():
plke=0
slke=0
for b in O.bodies:
if b.id>18:
if isinstance(
else:
with open('spEnergyC
by the way,there exist about 70000 sphere particles and 300 polyhedra particles in my simulation.
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 lip for more information if necessary.