Save a simulation and then add a new body into it

Asked by Liu Zhiruo on 2020-04-16

Hi all,
Firstly I build a simulation including a soil buffering and I save it in a .gz file.The critical code I use is :

if utils.unbalancedForce()<0.05:
  O.save('buffering.yade.gz')

Secondly I want to add a potential block into the simulation.In the second py file, the critical code I use is :

O.load('/home/liu/buffering.yade.gz')

But the visual window just shows the soil buffering and the potential blocked defined in the second py file is not displayed.
I checked the number of the bodies in the simulation.It truly includes the potential block ,however,which is not shown in the scene.
How to solve it?
Thanks in advance!

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Liu Zhiruo
Solved:
2020-04-23
Last query:
2020-04-23
Last reply:
2020-04-16
Jan Stránský (honzik) said : #1

Hello,

> How to solve it?

provide complete code [1], the block can e.g. be too small to be visible, "inside" another particle, far away from displayed scene...

cheers
Jan

[1] https://www.yade-dem.org/wiki/Howtoask

Liu Zhiruo (luckyliu) said : #2

HI,
THanks for your suggestion.I have solved my problem.