Error after pressing the "Play" button
Hi everyone,
I am using Ubuntu 18.04, and Yade 2019-08-
I use the Triaxial code by Bruno Chareyre [1] to run triaxial simulation on my specimen and only made the following changes in [1]:
num_spheres=20000,
targetPorosity = 0.4
young=200000000
poisson=1
mn,mx=Vector3(
sigmaIso=-500000
particleDensity
O.materials.
from yade import pack
sp=pack.
clumps=False
volume = (mx[0]-
sp.makeCloud(
O.bodies.
triax.goal1 = sigmaIso
triax.goal2 = sigmaIso
triax.goal3 = sigmaIso
f unb<stabilityTh
triax.goal1 = sigmaIso
triax.goal2 = rate
triax.goal3 = sigmaIso
[1] https:/
*******
The code can be run up to opening 3 windows (plot, show3D,remote) and I get the "END" message on the screen successfully. My problem is that when I press the "Play" button, nothing happens and then I get the following error:
============ RECORD AND PLOT DATA ============
/home/ehsan/
The 'verts' kwarg was deprecated in Matplotlib 3.0 and will be removed in 3.2. Use 'marker' instead.
scatter=
************** END **************
Analysis has been taken for 987.977 seconds or 16.466283333333333 minutes
[[ ^L clears screen, ^U kills line. F12 controller, F11 3D view (press "h" in 3D view for help), F10 both, F9 generator, F8 plot. ]]
Unhandled exception in thread started by <function liveUpdate at 0x7f3808480730>
-------
ValueError Traceback (most recent call last)
~/yade/
512 for ax in axes:
513 try:
--> 514 ax.relim() # recompute axes limits
515 ax.autoscale_view()
516 except RuntimeError: pass # happens if data are being updated and have not the same dimension at the very moment
~/.local/
2049 for line in self.lines:
2050 if not visible_only or line.get_visible():
-> 2051 self._update_
2052
2053 for p in self.patches:
~/.local/
1922 Figures out the data limit of the given line, updating self.dataLim.
1923 """
-> 1924 path = line.get_path()
1925 if path.vertices.size == 0:
1926 return
~/.local/
1025 """
1026 if self._invalidy or self._invalidx:
-> 1027 self.recache()
1028 return self._path
1029
~/.local/
677 y = self._y
678
--> 679 self._xy = np.column_
680 self._x, self._y = self._xy.T # views
681
<__array_function__ internals> in broadcast_
~/.local/
262 args = [np.array(_m, copy=False, subok=subok) for _m in args]
263
--> 264 shape = _broadcast_
265
266 if all(array.shape == shape for array in args):
~/.local/
189 # use the old-iterator because np.nditer does not handle size 0 arrays
190 # consistently
--> 191 b = np.broadcast(
192 # unfortunately, it cannot handle 32 or more arguments directly
193 for pos in range(32, len(args), 31):
ValueError: shape mismatch: objects cannot be broadcast to a single shape
In [1]:
Thank you for your help
Bests,
Ehsan
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 ehsan benabbas for more information if necessary.