Getting black windows when using O.wait after first O.run().

Asked by Ataollah Nateghi

Hello
I want to simulate a cylinder filled with spherical particles . After reaching to specific unbal force, cylindrical confining wall is going to move upward with specific velocity. I am going to look to the height of the particles after several steps with different material properties.I have two O.run() in my code each with specific number of cycles. I am using O.wait() after first one then I save the results for first step. After changing the list of engines the second O.run() comes in .
However I cannot see plots and yade windows for cycles before O.wait. Only thing I can see are two black windows. After finishing cycles in first O.run() everything becomes normal and I can see plots and Yade windows.
I am wondering is it something normal? And how can I fix it? Can virtual machine be the source of problem?
I am using Yade 1.20 in Ubuntu Virtual Machine.
Thanks in advance for your help.
Ataollah

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Jan Stránský
Solved:
Last query:
Last reply:
Revision history for this message
Best Jan Stránský (honzik) said :
#1

Hi Ataollah,
yes, it is normal. O.wait (or O.run(...,True) ) simply waits (including controller, plots, 3d view..) until the specified number of steps is computed, then returns ("unfreezing" all windows).
There are ways how to get rid of this, but it needs some code restructuralization. **Personally** I don'd do that. For not very long simulations it does not matter and for long simulations where I am interested in up-to-date results, I use some workaround (using external programs, i.e. saving vtk and plot date periodically and using gnuplot and paraview) :-)
cheers
Jan

Revision history for this message
Ataollah Nateghi (anateghi) said :
#2

Thanks Jan Stránský, that solved my question.