Abnormal increase in memory usage
Hi all:
I want to use many scenes in single simulations, so I used O.switchToScene() to achieve it, and used O.run(nsteps, True) to calculate for every step in a loop.
My question is that the memory usage will increase by about 3MB after every "O.run(nsteps, True) " code, because there are so many scenes and cycleindex , after executing "O.run(nsteps, True) " code many times, then Yade crashes .
Here are some part of my code:
.....
def shear2D(param)
swap = psutil.
O.switchToS
ns = int(min(max(1e5 * numpy.max(
dstrain = utils.Matrix3(
Omega(
print(
print(u'used swap_1:', swap.used / 1024.0 / 1024.0 / 1024.0)
O.run(ns, True)
print(
print(u'used swap_2:', swap.used / 1024.0 / 1024.0 / 1024.0)
Omega(
deformation = Omega()
st_1 = utils.getStress
s_1 = st_1[0]
s_1 = .5 * (s_1 + s_1.transpose())
stress_dem = [s_1[0, 0], s_1[0, 1], s_1[1, 1], s_1[2, 2]] # deformed stress
.....
# the loop likes followings
for i in scenesID:
I'm sure that the memory increases only relating to " O.run(ns, True)" by checking every each line of code,therefore I want to know the reason and how to fix it.
THANK YOU!!!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Robert Caulk
- Solved:
- Last query:
- Last reply: